diff options
| author | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 20:48:29 +0200 |
|---|---|---|
| committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 20:48:29 +0200 |
| commit | 7103016b8d0af10d3a9c0f0f4158b845cde09ba0 (patch) | |
| tree | d6186caf4ad156aa5d379955aab341bfb361bfda | |
| parent | 73d0978098c0b359e7980c4f7aa9d59e75f3c8e5 (diff) | |
| download | ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.tar.gz ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.tar.bz2 ldjam48-7103016b8d0af10d3a9c0f0f4158b845cde09ba0.zip | |
Card
| -rw-r--r-- | .import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.md5 | 3 | ||||
| -rw-r--r-- | .import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex | bin | 0 -> 114 bytes | |||
| -rw-r--r-- | components/card/card.gd | 21 | ||||
| -rw-r--r-- | default_env.tres | 1 | ||||
| -rw-r--r-- | project.godot | 14 | ||||
| -rw-r--r-- | textures/colors/light_blue.png | bin | 0 -> 547 bytes | |||
| -rw-r--r-- | textures/colors/light_blue.png.import | 34 | ||||
| -rw-r--r-- | textures/colors/light_blue.xcf | bin | 0 -> 685 bytes |
8 files changed, 71 insertions, 2 deletions
diff --git a/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.md5 b/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.md5 new file mode 100644 index 0000000..dc1088e --- /dev/null +++ b/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.md5 @@ -0,0 +1,3 @@ +source_md5="e60421dadf5dadc72469f9ecb94e3258" +dest_md5="0617ce744b60b4b57ca2027093d88ebe" + diff --git a/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex b/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex Binary files differnew file mode 100644 index 0000000..3e53d28 --- /dev/null +++ b/.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex diff --git a/components/card/card.gd b/components/card/card.gd new file mode 100644 index 0000000..692d433 --- /dev/null +++ b/components/card/card.gd @@ -0,0 +1,21 @@ +extends Sprite +class_name Card + +export var width = 100 +export var height = 50 + +onready var color = preload("res://textures/colors/light_blue.png") + +var card + +# Called when the node enters the scene tree for the first time. +func _ready(): + card = Sprite.new() + card.scale = Vector2(width, height) + card.texture = color + add_child(card) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/default_env.tres b/default_env.tres index 09682a5..1f86193 100644 --- a/default_env.tres +++ b/default_env.tres @@ -8,7 +8,6 @@ background_sky = SubResource( 1 ) background_color = Color( 0.305882, 0.164706, 0.164706, 1 ) background_energy = 0.0 background_canvas_max_layer = 1 -glow_enabled = true glow_blend_mode = 0 glow_bicubic_upscale = true adjustment_brightness = 0.36 diff --git a/project.godot b/project.godot index 763b0a3..4d91ce7 100644 --- a/project.godot +++ b/project.godot @@ -19,11 +19,21 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://components/CameraTrackFollower.gd" }, { +"base": "Sprite", +"class": "Card", +"language": "GDScript", +"path": "res://components/card/card.gd" +}, { "base": "", "class": "GitAPI", "language": "NativeScript", "path": "res://git_api.gdns" }, { +"base": "CanvasLayer", +"class": "Introduction", +"language": "GDScript", +"path": "res://scenes/introduction/introduction.gd" +}, { "base": "Node2D", "class": "Level", "language": "GDScript", @@ -42,7 +52,9 @@ _global_script_classes=[ { _global_script_class_icons={ "ButtonTest": "", "CameraTrackFollower": "", +"Card": "", "GitAPI": "", +"Introduction": "", "Level": "", "PathRenderer": "", "TextReveal": "" @@ -63,7 +75,6 @@ Settings="*res://components/Settings.gd" window/size/width=1280 window/size/height=720 -window/size/fullscreen=true mouse_cursor/custom_image="res://textures/icons/cursor.png" window/stretch/mode="2d" window/stretch/aspect="keep" @@ -106,4 +117,5 @@ quality/intended_usage/framebuffer_allocation=0 quality/intended_usage/framebuffer_allocation.mobile=0 vram_compression/import_etc=true vram_compression/import_etc2=false +environment/default_clear_color=Color( 0.00392157, 0.176471, 0.329412, 1 ) environment/default_environment="res://default_env.tres" diff --git a/textures/colors/light_blue.png b/textures/colors/light_blue.png Binary files differnew file mode 100644 index 0000000..7f571cc --- /dev/null +++ b/textures/colors/light_blue.png diff --git a/textures/colors/light_blue.png.import b/textures/colors/light_blue.png.import new file mode 100644 index 0000000..4dd85bd --- /dev/null +++ b/textures/colors/light_blue.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/colors/light_blue.png" +dest_files=[ "res://.import/light_blue.png-645c4b3f148d6489c3208794b1ff51bf.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/textures/colors/light_blue.xcf b/textures/colors/light_blue.xcf Binary files differnew file mode 100644 index 0000000..556f961 --- /dev/null +++ b/textures/colors/light_blue.xcf |
