diff options
Diffstat (limited to 'demos/2d/isometric')
-rw-r--r-- | demos/2d/isometric/bastiles.res | bin | 2918 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/dungeon.scn | bin | 4708 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/engine.cfg | 21 | ||||
-rw-r--r-- | demos/2d/isometric/icon.png | bin | 9377 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/isotiles.png | bin | 222339 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/tileset.scn | bin | 4476 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/troll.gd | 38 | ||||
-rw-r--r-- | demos/2d/isometric/troll.png | bin | 7246 -> 0 bytes | |||
-rw-r--r-- | demos/2d/isometric/troll.scn | bin | 2116 -> 0 bytes |
9 files changed, 0 insertions, 59 deletions
diff --git a/demos/2d/isometric/bastiles.res b/demos/2d/isometric/bastiles.res Binary files differdeleted file mode 100644 index 50f3c78321..0000000000 --- a/demos/2d/isometric/bastiles.res +++ /dev/null diff --git a/demos/2d/isometric/dungeon.scn b/demos/2d/isometric/dungeon.scn Binary files differdeleted file mode 100644 index 8f0f316d73..0000000000 --- a/demos/2d/isometric/dungeon.scn +++ /dev/null diff --git a/demos/2d/isometric/engine.cfg b/demos/2d/isometric/engine.cfg deleted file mode 100644 index 48f39826f9..0000000000 --- a/demos/2d/isometric/engine.cfg +++ /dev/null @@ -1,21 +0,0 @@ -[application] - -name="Isometric Game" -main_scene="res://dungeon.scn" -icon="res://icon.png" - -[image_loader] - -filter=false -gen_mipmaps=false - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] - -[rasterizer] - -use_pixel_snap=true diff --git a/demos/2d/isometric/icon.png b/demos/2d/isometric/icon.png Binary files differdeleted file mode 100644 index c8fb5dcb42..0000000000 --- a/demos/2d/isometric/icon.png +++ /dev/null diff --git a/demos/2d/isometric/isotiles.png b/demos/2d/isometric/isotiles.png Binary files differdeleted file mode 100644 index aa5a800f8f..0000000000 --- a/demos/2d/isometric/isotiles.png +++ /dev/null diff --git a/demos/2d/isometric/tileset.scn b/demos/2d/isometric/tileset.scn Binary files differdeleted file mode 100644 index e487285f83..0000000000 --- a/demos/2d/isometric/tileset.scn +++ /dev/null diff --git a/demos/2d/isometric/troll.gd b/demos/2d/isometric/troll.gd deleted file mode 100644 index d8d4880df1..0000000000 --- a/demos/2d/isometric/troll.gd +++ /dev/null @@ -1,38 +0,0 @@ - -extends KinematicBody2D - -# This is a simple collision demo showing how -# the kinematic controller works. -# move() will allow to move the node, and will -# always move it to a non-colliding spot, -# as long as it starts from a non-colliding spot too. - -# Member variables -const MOTION_SPEED = 160 # Pixels/seconds - - -func _fixed_process(delta): - var motion = Vector2() - - if (Input.is_action_pressed("move_up")): - motion += Vector2(0, -1) - if (Input.is_action_pressed("move_bottom")): - motion += Vector2(0, 1) - if (Input.is_action_pressed("move_left")): - motion += Vector2(-1, 0) - if (Input.is_action_pressed("move_right")): - motion += Vector2(1, 0) - - motion = motion.normalized()*MOTION_SPEED*delta - motion = move(motion) - - # Make character slide nicely through the world - var slide_attempts = 4 - while(is_colliding() and slide_attempts > 0): - motion = get_collision_normal().slide(motion) - motion = move(motion) - slide_attempts -= 1 - - -func _ready(): - set_fixed_process(true) diff --git a/demos/2d/isometric/troll.png b/demos/2d/isometric/troll.png Binary files differdeleted file mode 100644 index 69f195d034..0000000000 --- a/demos/2d/isometric/troll.png +++ /dev/null diff --git a/demos/2d/isometric/troll.scn b/demos/2d/isometric/troll.scn Binary files differdeleted file mode 100644 index d53aac4fbf..0000000000 --- a/demos/2d/isometric/troll.scn +++ /dev/null |