diff options
19 files changed, 121 insertions, 7 deletions
diff --git a/.import/arrow.png-908e8202b5a23591d5a4a292886921be.md5 b/.import/arrow.png-908e8202b5a23591d5a4a292886921be.md5 new file mode 100644 index 0000000..94c639a --- /dev/null +++ b/.import/arrow.png-908e8202b5a23591d5a4a292886921be.md5 @@ -0,0 +1,3 @@ +source_md5="789ffcde3ae599c75c75c369ce3c134d" +dest_md5="db1805a0e32450b06625a21d0771cd96" + diff --git a/.import/arrow.png-908e8202b5a23591d5a4a292886921be.stex b/.import/arrow.png-908e8202b5a23591d5a4a292886921be.stex Binary files differnew file mode 100644 index 0000000..8cb1415 --- /dev/null +++ b/.import/arrow.png-908e8202b5a23591d5a4a292886921be.stex diff --git a/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.md5 b/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.md5 new file mode 100644 index 0000000..2c432b8 --- /dev/null +++ b/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.md5 @@ -0,0 +1,3 @@ +source_md5="cf2eea98a2efd9c62035dfc43201a3a0" +dest_md5="910a5618e97d24c72d95aee0b39a41cd" + diff --git a/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.stex b/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.stex Binary files differnew file mode 100644 index 0000000..ade8a0d --- /dev/null +++ b/.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.stex diff --git a/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.md5 b/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.md5 index 4bca1ac..962b998 100644 --- a/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.md5 +++ b/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.md5 @@ -1,3 +1,3 @@ -source_md5="e01789d0e73c663472c347b1c6419316" -dest_md5="3d32309becd3db90483520706a3b97f3" +source_md5="13b0e70b221da12087a0581550bd68cd" +dest_md5="8c625b78be44eaef72d61edbca11958f" diff --git a/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.stex b/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.stex Binary files differindex 9280446..c687082 100644 --- a/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.stex +++ b/.import/bullet.png-fcc9b6edffdc3d7ef5fea596f59b4f40.stex diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index 29f72d7..ca3e0eb 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -7,6 +7,7 @@ onready var _path_renderer : PathRenderer = $PathRenderer onready var _health_bar = $Camera2D/healthbar onready var _last_camera_location : Vector2 = $Camera2D.position const _levels = [ + preload("res://scenes/levels/hearts_introduce.tscn"), preload("res://scenes/levels/typeracer.tscn"), preload("res://scenes/levels/reactiontest.tscn"), preload("res://scenes/levels/pixel/PixelDefender.tscn"), diff --git a/scenes/levels/hearts_introduce.gd b/scenes/levels/hearts_introduce.gd new file mode 100644 index 0000000..c770ab5 --- /dev/null +++ b/scenes/levels/hearts_introduce.gd @@ -0,0 +1,8 @@ +extends Level + +func start(): + .start() + $Label.visible = true + $Sprite.visible = true + yield(get_tree().create_timer(2.0), "timeout") + finish_level() diff --git a/scenes/levels/hearts_introduce.tscn b/scenes/levels/hearts_introduce.tscn new file mode 100644 index 0000000..a1a3698 --- /dev/null +++ b/scenes/levels/hearts_introduce.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://scenes/levels/hearts_introduce.gd" type="Script" id=1] +[ext_resource path="res://textures/icons/arrow.png" type="Texture" id=2] +[ext_resource path="res://textures/icons/arrow2.png" type="Texture" id=3] + +[sub_resource type="AnimatedTexture" id=1] +frames = 2 +frame_0/texture = ExtResource( 2 ) +frame_1/texture = ExtResource( 3 ) +frame_1/delay_sec = 0.0 + +[node name="Node2D" type="Node2D"] +script = ExtResource( 1 ) + +[node name="Sprite" type="Sprite" parent="."] +visible = false +position = Vector2( -337.617, -202.397 ) +scale = Vector2( 3.095, 3.095 ) +texture = SubResource( 1 ) + +[node name="Label" type="Label" parent="."] +visible = false +margin_left = -279.387 +margin_top = -196.326 +margin_right = 188.613 +margin_bottom = -164.326 +text = "As you can see, you have 10 lives" +__meta__ = { +"_edit_use_anchors_": false +} diff --git a/scenes/levels/reactiontest.tscn b/scenes/levels/reactiontest.tscn index fc85dbc..ca24bc7 100644 --- a/scenes/levels/reactiontest.tscn +++ b/scenes/levels/reactiontest.tscn @@ -62,10 +62,10 @@ text = "9" fixed_width = 30 [node name="TimerLabel" type="Label" parent="."] -margin_left = -625.51 -margin_top = -296.265 -margin_right = -501.51 -margin_bottom = -215.265 +margin_left = -511.088 +margin_top = -285.67 +margin_right = -387.088 +margin_bottom = -204.67 theme = ExtResource( 3 ) __meta__ = { "_edit_use_anchors_": false diff --git a/textures/bullet.png b/textures/bullet.png Binary files differindex 8de2bbb..34fab52 100644 --- a/textures/bullet.png +++ b/textures/bullet.png diff --git a/textures/bullet.png.import b/textures/bullet.png.import index ccb3b03..7f099c3 100644 --- a/textures/bullet.png.import +++ b/textures/bullet.png.import @@ -20,7 +20,7 @@ compress/hdr_mode=0 compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 -flags/filter=true +flags/filter=false flags/mipmaps=false flags/anisotropic=false flags/srgb=2 diff --git a/textures/bullet.xcf b/textures/bullet.xcf Binary files differnew file mode 100644 index 0000000..1ef5782 --- /dev/null +++ b/textures/bullet.xcf diff --git a/textures/icons/arrow.png b/textures/icons/arrow.png Binary files differnew file mode 100644 index 0000000..42d8d1d --- /dev/null +++ b/textures/icons/arrow.png diff --git a/textures/icons/arrow.png.import b/textures/icons/arrow.png.import new file mode 100644 index 0000000..3ddda28 --- /dev/null +++ b/textures/icons/arrow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/arrow.png-908e8202b5a23591d5a4a292886921be.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/icons/arrow.png" +dest_files=[ "res://.import/arrow.png-908e8202b5a23591d5a4a292886921be.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=false +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/icons/arrow.xcf b/textures/icons/arrow.xcf Binary files differnew file mode 100644 index 0000000..2b109d6 --- /dev/null +++ b/textures/icons/arrow.xcf diff --git a/textures/icons/arrow2.png b/textures/icons/arrow2.png Binary files differnew file mode 100644 index 0000000..3bdf39f --- /dev/null +++ b/textures/icons/arrow2.png diff --git a/textures/icons/arrow2.png.import b/textures/icons/arrow2.png.import new file mode 100644 index 0000000..fc1e7e9 --- /dev/null +++ b/textures/icons/arrow2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/icons/arrow2.png" +dest_files=[ "res://.import/arrow2.png-1df0267ba58be0868e258bbb4da3790a.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=false +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/icons/arrow2.xcf b/textures/icons/arrow2.xcf Binary files differnew file mode 100644 index 0000000..269a4d4 --- /dev/null +++ b/textures/icons/arrow2.xcf |