From 92a1ca351859c48595f6916c91effa87ee524221 Mon Sep 17 00:00:00 2001 From: Chris Bradfield Date: Wed, 13 Dec 2017 15:37:01 -0800 Subject: [PATCH] Adjust mob direction due to PathFollow2D change --- Main.gd | 4 ++-- Main.tscn | 2 +- art/House In a Forest Loop.ogg.import | 4 ++++ art/enemyFlyingAlt_1.png.import | 4 ++++ art/enemyFlyingAlt_2.png.import | 4 ++++ art/enemySwimming_1.png.import | 4 ++++ art/enemySwimming_2.png.import | 4 ++++ art/enemyWalking_1.png.import | 4 ++++ art/enemyWalking_2.png.import | 4 ++++ art/gameover.wav.import | 4 ++++ art/playerGrey_up1.png.import | 4 ++++ art/playerGrey_up2.png.import | 4 ++++ art/playerGrey_walk1.png.import | 4 ++++ art/playerGrey_walk2.png.import | 4 ++++ art/set3_tiles.png.import | 4 ++++ icon.png.import | 4 ++++ 16 files changed, 59 insertions(+), 3 deletions(-) diff --git a/Main.gd b/Main.gd index 029c716..0cf18c1 100644 --- a/Main.gd +++ b/Main.gd @@ -26,10 +26,10 @@ func _on_MobTimer_timeout(): $MobPath/MobSpawnLocation.set_offset(randi()) var mob = Mob.instance() add_child(mob) - var direction = $MobPath/MobSpawnLocation.rotation + var direction = $MobPath/MobSpawnLocation.rotation + PI/2 mob.position = $MobPath/MobSpawnLocation.position # add some randomness to the direction - direction += rand_range(-PI/4, PI/4) + #direction += rand_range(-PI/4, PI/4) mob.rotation = direction mob.set_linear_velocity(Vector2(rand_range(mob.MIN_SPEED, mob.MAX_SPEED), 0).rotated(direction)) diff --git a/Main.tscn b/Main.tscn index 8b52aec..a97520e 100644 --- a/Main.tscn +++ b/Main.tscn @@ -87,7 +87,7 @@ curve = SubResource( 1 ) [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"] position = Vector2( 1.70602, 3.56798 ) -rotation = 1.57017 +rotation = -0.000630111 offset = 0.0 h_offset = 0.0 v_offset = 0.0 diff --git a/art/House In a Forest Loop.ogg.import b/art/House In a Forest Loop.ogg.import index ad28732..02be234 100644 --- a/art/House In a Forest Loop.ogg.import +++ b/art/House In a Forest Loop.ogg.import @@ -4,6 +4,10 @@ importer="ogg_vorbis" type="AudioStreamOGGVorbis" path="res://.import/House In a Forest Loop.ogg-1a6a72ae843ad792b7039931227e8d50.oggstr" +[deps] + +source_md5="c395b0cc351a71713417cf862282849f" + [params] loop=true diff --git a/art/enemyFlyingAlt_1.png.import b/art/enemyFlyingAlt_1.png.import index e4727a0..bd43330 100644 --- a/art/enemyFlyingAlt_1.png.import +++ b/art/enemyFlyingAlt_1.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemyFlyingAlt_1.png-559f599b16c69b112c1b53f6332e9489.stex" +[deps] + +source_md5="64d9fdc23f76112a64a283673e3fd8dd" + [params] compress/mode=0 diff --git a/art/enemyFlyingAlt_2.png.import b/art/enemyFlyingAlt_2.png.import index f582fb1..802e4f6 100644 --- a/art/enemyFlyingAlt_2.png.import +++ b/art/enemyFlyingAlt_2.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemyFlyingAlt_2.png-31dc7310eda6e1b721224f3cd932c076.stex" +[deps] + +source_md5="5281b0d2b947deb09cbf95ecf9628ae7" + [params] compress/mode=0 diff --git a/art/enemySwimming_1.png.import b/art/enemySwimming_1.png.import index cf62c2f..fc3e93d 100644 --- a/art/enemySwimming_1.png.import +++ b/art/enemySwimming_1.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemySwimming_1.png-dd0e11759dc3d624c8a704f6e98a3d80.stex" +[deps] + +source_md5="5e557d1bd564dd553650de1c38746ed9" + [params] compress/mode=0 diff --git a/art/enemySwimming_2.png.import b/art/enemySwimming_2.png.import index 8d4d01b..a8474ea 100644 --- a/art/enemySwimming_2.png.import +++ b/art/enemySwimming_2.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemySwimming_2.png-4c0cbc0732264c4ea3290340bd4a0a62.stex" +[deps] + +source_md5="d04b001ba2f4ac6884fdbe44b55fa656" + [params] compress/mode=0 diff --git a/art/enemyWalking_1.png.import b/art/enemyWalking_1.png.import index 71b815e..f5fdba9 100644 --- a/art/enemyWalking_1.png.import +++ b/art/enemyWalking_1.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemyWalking_1.png-5af6eedbe61b701677d490ffdc1e6471.stex" +[deps] + +source_md5="0e417b74e72f5d8f4aca0e557a735643" + [params] compress/mode=0 diff --git a/art/enemyWalking_2.png.import b/art/enemyWalking_2.png.import index b066b7b..d3791bf 100644 --- a/art/enemyWalking_2.png.import +++ b/art/enemyWalking_2.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/enemyWalking_2.png-67c480ed60c35e95f5acb0436246b935.stex" +[deps] + +source_md5="838f40a8b77a0cb387dc5e5aff6bd8d5" + [params] compress/mode=0 diff --git a/art/gameover.wav.import b/art/gameover.wav.import index 8698b3b..6c6c4ab 100644 --- a/art/gameover.wav.import +++ b/art/gameover.wav.import @@ -4,6 +4,10 @@ importer="wav" type="AudioStreamSample" path="res://.import/gameover.wav-98c95c744b35280048c2bd093cf8a356.sample" +[deps] + +source_md5="fe94a3a7558cff917a5500a1298fdcac" + [params] force/8_bit=false diff --git a/art/playerGrey_up1.png.import b/art/playerGrey_up1.png.import index 7cc6531..97cbd23 100644 --- a/art/playerGrey_up1.png.import +++ b/art/playerGrey_up1.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/playerGrey_up1.png-6bd114d0a6beac91f48e3a7314d44564.stex" +[deps] + +source_md5="f84241d41055080a3393c9a8619f172b" + [params] compress/mode=0 diff --git a/art/playerGrey_up2.png.import b/art/playerGrey_up2.png.import index 740fb10..3d7d9a5 100644 --- a/art/playerGrey_up2.png.import +++ b/art/playerGrey_up2.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/playerGrey_up2.png-d6aba85f5f2675ebc7045efa7552ee79.stex" +[deps] + +source_md5="57618c302a312d248705c7f045978765" + [params] compress/mode=0 diff --git a/art/playerGrey_walk1.png.import b/art/playerGrey_walk1.png.import index 64bac5f..6c70041 100644 --- a/art/playerGrey_walk1.png.import +++ b/art/playerGrey_walk1.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/playerGrey_walk1.png-c4773fe7a7bf85d7ab732eb4458c2742.stex" +[deps] + +source_md5="7892ed98ba910fbda0d37266127e96bb" + [params] compress/mode=0 diff --git a/art/playerGrey_walk2.png.import b/art/playerGrey_walk2.png.import index 6ff7bde..2e2a532 100644 --- a/art/playerGrey_walk2.png.import +++ b/art/playerGrey_walk2.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/playerGrey_walk2.png-34d2d916366100182d08037c51884043.stex" +[deps] + +source_md5="9fc73e1224a6b16d8fb5d0f667e3aed2" + [params] compress/mode=0 diff --git a/art/set3_tiles.png.import b/art/set3_tiles.png.import index 3518e4b..7bbd770 100644 --- a/art/set3_tiles.png.import +++ b/art/set3_tiles.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/set3_tiles.png-7dd06b1fc0bcfaa06e9dd732f61382a2.stex" +[deps] + +source_md5="eef34d896b231438a2d97707c0ab06a2" + [params] compress/mode=0 diff --git a/icon.png.import b/icon.png.import index 42e94a3..b5d423d 100644 --- a/icon.png.import +++ b/icon.png.import @@ -4,6 +4,10 @@ importer="texture" type="StreamTexture" path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +[deps] + +source_md5="7b0d811088c13a3b6d79f9895b9f2935" + [params] compress/mode=0