Skip to content

Commit

Permalink
Turns counter. Closes#18
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Apr 23, 2015
1 parent 1159f43 commit e746557
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 51 deletions.
Binary file added gfx/turn_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 60 additions & 49 deletions scenes/main.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<resource_file type="PackedScene" subresource_count="18" version="1.1" version_name="Godot Engine v1.1.beta1.custom_build">
<resource_file type="PackedScene" subresource_count="19" version="1.1" version_name="Godot Engine v1.1.beta1.custom_build">
<ext_resource path="res://scripts/level_holder.gd" type="Script"></ext_resource>
<ext_resource path="res://gfx/menuGrid.png" type="Texture"></ext_resource>
<ext_resource path="res://audio/samples.xml" type="SampleLibrary"></ext_resource>
<ext_resource path="res://gfx/flower.png" type="Texture"></ext_resource>
<ext_resource path="res://audio/music_2.ogg" type="AudioStream"></ext_resource>
<ext_resource path="res://gfx/bomb.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/radioactive.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/artefact.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/menuGrid.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/theme.xml" type="Theme"></ext_resource>
<ext_resource path="res://scripts/level_holder.gd" type="Script"></ext_resource>
<ext_resource path="res://gfx/return.png" type="Texture"></ext_resource>
<ext_resource path="res://scenes/popup.xml" type="PackedScene"></ext_resource>
<ext_resource path="res://gfx/btn_left.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/bomb.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/theme.xml" type="Theme"></ext_resource>
<ext_resource path="res://gfx/btn_down.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/btn_up.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/btn_right.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/flower.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/btn_bomb.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/artefact.png" type="Texture"></ext_resource>
<ext_resource path="res://scenes/popup.xml" type="PackedScene"></ext_resource>
<ext_resource path="res://gfx/btn_right.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/return.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/btn_up.png" type="Texture"></ext_resource>
<ext_resource path="res://gfx/turn_icon.png" type="Texture"></ext_resource>
<ext_resource path="res://scenes/player.xml" type="PackedScene"></ext_resource>
<main_resource>
<dictionary name="_bundled" shared="false">
<string> "names" </string>
<string_array len="126">
<string_array len="127">
<string> "world" </string>
<string> "Node2D" </string>
<string> "_import_path" </string>
Expand Down Expand Up @@ -106,6 +107,7 @@
<string> "box" </string>
<string> "flower" </string>
<string> "artefact" </string>
<string> "turns" </string>
<string> "popup" </string>
<string> "Control" </string>
<string> "touch_buttons" </string>
Expand Down Expand Up @@ -153,9 +155,9 @@
<string> "conn_count" </string>
<int> 2 </int>
<string> "node_count" </string>
<int> 29 </int>
<int> 32 </int>
<string> "variants" </string>
<array len="68" shared="false">
<array len="74" shared="false">
<node_path> "" </node_path>
<bool> True </bool>
<real> 1 </real>
Expand All @@ -170,7 +172,7 @@
<string> "Script" </string>
<dictionary shared="false">
<string> "current" </string>
<int> 2 </int>
<int> 0 </int>
<string> "sources" </string>
<array len="8" shared="false">
<string> "res://scripts/level_holder.gd" </string>
Expand All @@ -190,7 +192,7 @@
<string> "snap_rotation_step" </string>
<real> 0.261799 </real>
<string> "zoom" </string>
<real> 0.735091 </real>
<real> 5.162309 </real>
<string> "snap_step" </string>
<vector2> 64, 64 </vector2>
<string> "snap_relative" </string>
Expand All @@ -204,7 +206,7 @@
<string> "snap_offset" </string>
<vector2> 0, 0 </vector2>
<string> "ofs" </string>
<vector2> -492.088, -204.036 </vector2>
<vector2> -94.7986, 5.63989 </vector2>
<string> "snap_rotation" </string>
<bool> False </bool>
</dictionary>
Expand Down Expand Up @@ -334,16 +336,16 @@
<bool> False </bool>
<string> "snap_rotation_step" </string>
<real> 0.261799 </real>
<string> "snap_step" </string>
<vector2> 64, 64 </vector2>
<string> "snap_relative" </string>
<bool> False </bool>
<string> "zoom" </string>
<real> 4.204739 </real>
<string> "snap_step" </string>
<vector2> 64, 64 </vector2>
<string> "snap_grid" </string>
<bool> True </bool>
<string> "snap_rotation_offset" </string>
<real> 0 </real>
<string> "snap_grid" </string>
<bool> True </bool>
<string> "snap_show_grid" </string>
<bool> True </bool>
<string> "snap_offset" </string>
Expand All @@ -355,6 +357,10 @@
</dictionary>
<string> "3D" </string>
<dictionary shared="false">
<string> "fov" </string>
<real> 45 </real>
<string> "zfar" </string>
<real> 500 </real>
<string> "viewports" </string>
<array len="4" shared="false">
<dictionary shared="false">
Expand Down Expand Up @@ -422,28 +428,24 @@
<vector3> 0, 0, 0 </vector3>
</dictionary>
</array>
<string> "zfar" </string>
<real> 500 </real>
<string> "deflight_rot_y" </string>
<real> 0.628319 </real>
<string> "fov" </string>
<real> 45 </real>
<string> "viewport_mode" </string>
<int> 1 </int>
<string> "default_light" </string>
<bool> True </bool>
<string> "viewport_mode" </string>
<int> 1 </int>
<string> "ambient_light_color" </string>
<color> 0.15, 0.15, 0.15, 1 </color>
<string> "show_grid" </string>
<bool> True </bool>
<string> "show_origin" </string>
<bool> True </bool>
<string> "znear" </string>
<real> 0.1 </real>
<string> "default_srgb" </string>
<bool> False </bool>
<string> "show_origin" </string>
<bool> True </bool>
<string> "deflight_rot_x" </string>
<real> 0.942478 </real>
<string> "default_srgb" </string>
<bool> False </bool>
</dictionary>
</dictionary>
<string> "__editor_run_settings__" </string>
Expand All @@ -463,6 +465,7 @@
<resource resource_type="Texture" path="res://gfx/return.png"> </resource>
<resource name=""></resource> <color> 1, 1, 1, 1 </color>
<resource resource_type="Texture" path="res://gfx/menuGrid.png"> </resource>
<vector2> 32, 96 </vector2>
<dictionary shared="false">
<string> "_editor_collapsed" </string>
<bool> True </bool>
Expand Down Expand Up @@ -494,10 +497,20 @@
<vector2> 0.75, 0.75 </vector2>
<resource resource_type="Texture" path="res://gfx/flower.png"> </resource>
<vector2> 416, 32 </vector2>
<dictionary shared="false">
<string> "_editor_collapsed" </string>
<bool> True </bool>
</dictionary>
<vector2> 0.25, 0.25 </vector2>
<resource resource_type="Texture" path="res://gfx/artefact.png"> </resource>
<vector2> 0.15, 0.15 </vector2>
<resource resource_type="Texture" path="res://gfx/turn_icon.png"> </resource>
<real> 75 </real>
<string> "0" </string>
<resource resource_type="PackedScene" path="res://scenes/popup.xml"> </resource>
<dictionary shared="false">
<string> "_edit_lock_" </string>
<bool> True </bool>
<string> "__editor_plugin_states__" </string>
<dictionary shared="false">
<string> "2D" </string>
Expand All @@ -506,16 +519,16 @@
<bool> False </bool>
<string> "snap_rotation_step" </string>
<real> 0.261799 </real>
<string> "zoom" </string>
<real> 2.050546 </real>
<string> "snap_step" </string>
<vector2> 10, 10 </vector2>
<string> "snap_relative" </string>
<bool> False </bool>
<string> "zoom" </string>
<real> 2.050546 </real>
<string> "snap_grid" </string>
<bool> False </bool>
<string> "snap_rotation_offset" </string>
<real> 0 </real>
<string> "snap_grid" </string>
<bool> False </bool>
<string> "snap_show_grid" </string>
<bool> False </bool>
<string> "snap_offset" </string>
Expand All @@ -527,10 +540,12 @@
</dictionary>
<string> "3D" </string>
<dictionary shared="false">
<string> "fov" </string>
<real> 45 </real>
<string> "deflight_rot_y" </string>
<real> 0.628319 </real>
<string> "zfar" </string>
<real> 500 </real>
<string> "fov" </string>
<real> 45 </real>
<string> "viewports" </string>
<array len="4" shared="false">
<dictionary shared="false">
Expand Down Expand Up @@ -598,28 +613,24 @@
<vector3> 0, 0, 0 </vector3>
</dictionary>
</array>
<string> "deflight_rot_y" </string>
<real> 0.628319 </real>
<string> "viewport_mode" </string>
<int> 1 </int>
<string> "default_light" </string>
<bool> True </bool>
<string> "viewport_mode" </string>
<int> 1 </int>
<string> "ambient_light_color" </string>
<color> 0.15, 0.15, 0.15, 1 </color>
<string> "show_grid" </string>
<bool> True </bool>
<string> "show_origin" </string>
<bool> True </bool>
<string> "znear" </string>
<real> 0.1 </real>
<string> "default_srgb" </string>
<bool> False </bool>
<string> "show_origin" </string>
<bool> True </bool>
<string> "deflight_rot_x" </string>
<real> 0.942478 </real>
<string> "default_srgb" </string>
<bool> False </bool>
</dictionary>
</dictionary>
<string> "_edit_lock_" </string>
<bool> True </bool>
<string> "__editor_run_settings__" </string>
<dictionary shared="false">
<string> "custom_args" </string>
Expand Down Expand Up @@ -652,9 +663,9 @@
<nil> </nil>
</array>
<string> "nodes" </string>
<int_array len="1159"> -1, -1, 1, 0, -1, 11, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 12, 8, 0, 0, 0, 1, 13, -1, 12, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 14, 9, 15, 2, 0, 0, 0, 1, 16, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 10, 8, 5, 9, 6, 10, 7, 11, 1, 0, 2, 0, 18, 17, 11, 3, 2, 0, 7, 12, 12, 13, 0, 0, 0, 1, 19, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 0, 4, 0, 20, 20, -1, 5, 2, 0, 21, 7, 22, 4, 23, 5, 24, 6, 0, 5, 0, 26, 25, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 27, 3, 28, 3, 29, 14, 30, 15, 31, 15, 32, 0, 33, 0, 34, 0, 35, 0, 36, 16, 37, 16, 38, 17, 39, 17, 40, 2, 41, 16, 42, 16, 43, 16, 44, 16, 45, 18, 46, 19, 47, 19, 48, 19, 49, 19, 50, 19, 51, 6, 52, 20, 0, 5, 0, 26, 53, -1, 30, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 27, 3, 28, 3, 29, 15, 31, 15, 32, 0, 33, 0, 34, 0, 35, 0, 36, 16, 37, 1, 38, 17, 39, 17, 40, 2, 41, 16, 42, 16, 43, 16, 44, 16, 45, 21, 46, 19, 47, 19, 48, 19, 49, 19, 50, 19, 51, 6, 52, 20, 0, 5, 0, 1, 54, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 10, 8, 5, 9, 6, 10, 7, 11, 1, 12, 22, 0, 8, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 23, 10, 7, 11, 1, 56, 24, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 25, 0, 8, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 26, 67, 27, 30, 28, 31, 29, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 30, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 31, 77, 7, 78, 3, 79, 16, 80, 16, 81, 32, 0, 5, 0, 1, 82, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 33, 8, 5, 9, 6, 10, 7, 11, 1, 12, 34, 0, 11, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 23, 10, 7, 11, 1, 56, 35, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 25, 0, 11, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 36, 67, 27, 30, 37, 31, 29, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 30, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 38, 77, 7, 78, 3, 79, 16, 80, 16, 81, 32, 0, 5, 0, 1, 83, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 39, 8, 5, 9, 6, 10, 7, 11, 1, 12, 40, 0, 14, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 41, 10, 7, 11, 1, 56, 42, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 25, 0, 14, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 36, 67, 27, 30, 37, 31, 29, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 30, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 31, 77, 7, 78, 3, 79, 16, 80, 16, 81, 32, 0, 5, 0, 1, 84, -1, 10, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 43, 8, 5, 9, 6, 10, 7, 11, 1, 0, 17, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 44, 10, 7, 11, 1, 56, 45, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 25, 0, 17, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 36, 67, 27, 30, 37, 31, 29, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 30, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 31, 77, 7, 78, 3, 79, 16, 80, 16, 81, 32, 0, 5, 0, 86, 85, 46, 3, 2, 0, 3, 16, 12, 47, 0, 5, 0, 1, 87, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 48, 8, 5, 9, 6, 10, 7, 11, 1, 0, 21, 0, 89, 88, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 49, 8, 5, 9, 6, 10, 7, 11, 1, 90, 50, 91, 19, 92, 19, 93, 16, 94, 51, 95, 3, 0, 21, 0, 89, 96, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 52, 8, 5, 9, 6, 10, 7, 11, 1, 90, 53, 91, 19, 92, 19, 93, 16, 94, 54, 95, 3, 0, 21, 0, 89, 97, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 55, 8, 5, 9, 6, 10, 7, 11, 1, 90, 56, 91, 19, 92, 19, 93, 16, 94, 57, 95, 3, 0, 21, 0, 89, 98, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 58, 8, 5, 9, 6, 10, 7, 11, 1, 90, 59, 91, 19, 92, 19, 93, 16, 94, 60, 95, 3, 0, 21, 0, 89, 99, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 90, 61, 91, 19, 92, 19, 93, 16, 94, 62, 95, 3, 0, 0, 0, 101, 100, -1, 7, 2, 0, 102, 63, 103, 1, 104, 1, 105, 64, 106, 1, 107, 16, 0, 0, 0, 109, 108, -1, 15, 2, 0, 110, 65, 111, 66, 112, 5, 113, 2, 114, 5, 115, 5, 116, 5, 117, 67, 118, 67, 119, 67, 120, 67, 121, 17, 122, 5, 123, 5, 0 </int_array>
<int_array len="1306"> -1, -1, 1, 0, -1, 11, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 12, 8, 0, 0, 0, 1, 13, -1, 12, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 14, 9, 15, 2, 0, 0, 0, 1, 16, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 10, 8, 5, 9, 6, 10, 7, 11, 1, 0, 2, 0, 18, 17, 11, 3, 2, 0, 7, 12, 12, 13, 0, 0, 0, 1, 19, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 0, 4, 0, 20, 20, -1, 5, 2, 0, 21, 7, 22, 4, 23, 5, 24, 6, 0, 5, 0, 26, 25, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 27, 3, 28, 3, 29, 14, 30, 15, 31, 15, 32, 0, 33, 0, 34, 0, 35, 0, 36, 16, 37, 16, 38, 17, 39, 17, 40, 2, 41, 16, 42, 16, 43, 16, 44, 16, 45, 18, 46, 19, 47, 19, 48, 19, 49, 19, 50, 19, 51, 6, 52, 20, 0, 5, 0, 26, 53, -1, 30, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 27, 3, 28, 3, 29, 15, 31, 15, 32, 0, 33, 0, 34, 0, 35, 0, 36, 16, 37, 1, 38, 17, 39, 17, 40, 2, 41, 16, 42, 16, 43, 16, 44, 16, 45, 21, 46, 19, 47, 19, 48, 19, 49, 19, 50, 19, 51, 6, 52, 20, 0, 5, 0, 1, 54, -1, 11, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 22, 8, 5, 9, 6, 10, 7, 11, 1, 12, 23, 0, 8, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 24, 10, 7, 11, 1, 56, 25, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 26, 0, 8, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 27, 67, 28, 30, 29, 31, 30, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 31, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 32, 77, 7, 78, 3, 79, 16, 80, 16, 81, 33, 0, 5, 0, 1, 82, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 34, 8, 5, 9, 6, 10, 7, 11, 1, 12, 35, 0, 11, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 24, 10, 7, 11, 1, 56, 36, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 26, 0, 11, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 37, 67, 28, 30, 38, 31, 30, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 31, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 39, 77, 7, 78, 3, 79, 16, 80, 16, 81, 33, 0, 5, 0, 1, 83, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 40, 8, 5, 9, 6, 10, 7, 11, 1, 12, 41, 0, 14, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 42, 10, 7, 11, 1, 56, 43, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 26, 0, 14, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 37, 67, 28, 30, 38, 31, 30, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 31, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 32, 77, 7, 78, 3, 79, 16, 80, 16, 81, 33, 0, 5, 0, 1, 84, -1, 11, 2, 0, 3, 16, 4, 2, 5, 2, 6, 3, 7, 44, 8, 5, 9, 6, 10, 7, 11, 1, 12, 45, 0, 17, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 46, 10, 7, 11, 1, 56, 47, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 26, 0, 17, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 37, 67, 28, 30, 38, 31, 30, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 31, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 32, 77, 7, 78, 3, 79, 16, 80, 16, 81, 33, 0, 5, 0, 1, 85, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 10, 8, 5, 9, 6, 10, 7, 11, 1, 0, 20, 0, 55, 55, -1, 21, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 48, 10, 7, 11, 1, 56, 49, 57, 1, 22, 4, 58, 16, 59, 16, 60, 3, 61, 3, 62, 7, 63, 20, 64, 16, 65, 26, 0, 20, 0, 66, 66, -1, 31, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 29, 27, 67, 28, 30, 50, 31, 30, 32, 0, 33, 0, 34, 0, 35, 0, 36, 1, 37, 1, 38, 17, 40, 2, 68, 31, 69, 5, 70, 2, 71, 2, 72, 2, 73, 5, 74, 16, 75, 16, 76, 51, 77, 3, 78, 3, 79, 16, 80, 16, 81, 33, 0, 5, 0, 87, 86, 52, 3, 2, 0, 3, 16, 12, 53, 0, 5, 0, 1, 88, -1, 10, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 54, 8, 5, 9, 6, 10, 7, 11, 1, 0, 24, 0, 90, 89, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 55, 8, 5, 9, 6, 10, 7, 11, 1, 91, 56, 92, 19, 93, 19, 94, 16, 95, 57, 96, 3, 0, 24, 0, 90, 97, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 58, 8, 5, 9, 6, 10, 7, 11, 1, 91, 59, 92, 19, 93, 19, 94, 16, 95, 60, 96, 3, 0, 24, 0, 90, 98, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 61, 8, 5, 9, 6, 10, 7, 11, 1, 91, 62, 92, 19, 93, 19, 94, 16, 95, 63, 96, 3, 0, 24, 0, 90, 99, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 64, 8, 5, 9, 6, 10, 7, 11, 1, 91, 65, 92, 19, 93, 19, 94, 16, 95, 66, 96, 3, 0, 24, 0, 90, 100, -1, 16, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 1, 91, 67, 92, 19, 93, 19, 94, 16, 95, 68, 96, 3, 0, 0, 0, 102, 101, -1, 7, 2, 0, 103, 69, 104, 1, 105, 1, 106, 70, 107, 1, 108, 16, 0, 0, 0, 110, 109, -1, 15, 2, 0, 111, 71, 112, 72, 113, 5, 114, 2, 115, 5, 116, 5, 117, 5, 118, 73, 119, 73, 120, 73, 121, 73, 122, 17, 123, 5, 124, 5, 0 </int_array>
<string> "conns" </string>
<int_array len="12"> 6, 1, 91, 124, 2, 0, 7, 1, 91, 125, 2, 0 </int_array>
<int_array len="12"> 6, 1, 92, 125, 2, 0, 7, 1, 92, 126, 2, 0 </int_array>
</dictionary>

</main_resource>
Expand Down
2 changes: 2 additions & 0 deletions scripts/box.gd
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func _fixed_process(delta):
if (Input.is_action_pressed("btn_right") || JS.get_digital("leftstick_right") || JS.get_digital("dpad_right")) && collider_left.movement == 0:# the player doesn't move, and is pressing right, and doesn't fall
movement = 64 # Both we and the player move 64 px left
collider_left.movement = 64
get_node("../../../level_holder").turn()
sample_player.play("box_hit", false)
else:
collider_left = ""
Expand All @@ -162,6 +163,7 @@ func _fixed_process(delta):
if (Input.is_action_pressed("btn_left") || JS.get_digital("leftstick_left") || JS.get_digital("dpad_left")) && collider_right.movement == 0:# the player doesn't move, and is pressing left, and doesn't fall
movement = -64
collider_right.movement = -64
get_node("../../../level_holder").turn()
sample_player.play("box_hit", false)
else:
collider_right = ""
Expand Down
Loading

0 comments on commit e746557

Please sign in to comment.