From 1b3a10891ebdc6e76a81c8915ba08065311e17d3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 3 Oct 2014 00:25:53 -0300 Subject: missing demo files --- demos/2d/hexamap/.fscache | 33 ++++++++++++++++++++++++++++++ demos/2d/hexamap/WWT-01.png | Bin 0 -> 20369 bytes demos/2d/hexamap/WWT-02.png | Bin 0 -> 21993 bytes demos/2d/hexamap/WWT-03.png | Bin 0 -> 22703 bytes demos/2d/hexamap/WWT-04.png | Bin 0 -> 20615 bytes demos/2d/hexamap/WWT-05.png | Bin 0 -> 22293 bytes demos/2d/hexamap/WWT-06.png | Bin 0 -> 22971 bytes demos/2d/hexamap/WWT-07.png | Bin 0 -> 22306 bytes demos/2d/hexamap/WWT-08.png | Bin 0 -> 22084 bytes demos/2d/hexamap/WWT-09.png | Bin 0 -> 22066 bytes demos/2d/hexamap/WWT-10.png | Bin 0 -> 22019 bytes demos/2d/hexamap/WWT-11.png | Bin 0 -> 21546 bytes demos/2d/hexamap/WWT-12.png | Bin 0 -> 21405 bytes demos/2d/hexamap/WWT-13.png | Bin 0 -> 19682 bytes demos/2d/hexamap/WWT-14.png | Bin 0 -> 20491 bytes demos/2d/hexamap/WWT-15.png | Bin 0 -> 21237 bytes demos/2d/hexamap/WWT-16.png | Bin 0 -> 20673 bytes demos/2d/hexamap/WWT-17.png | Bin 0 -> 20628 bytes demos/2d/hexamap/WWT-18.png | Bin 0 -> 22559 bytes demos/2d/hexamap/WWT-19.png | Bin 0 -> 21600 bytes demos/2d/hexamap/WWT-20.png | Bin 0 -> 21130 bytes demos/2d/hexamap/WWT-21.png | Bin 0 -> 21114 bytes demos/2d/hexamap/WWT-22.png | Bin 0 -> 21440 bytes demos/2d/hexamap/WWT-23.png | Bin 0 -> 20817 bytes demos/2d/hexamap/WWT-24.png | Bin 0 -> 19964 bytes demos/2d/hexamap/WWT-25.png | Bin 0 -> 20584 bytes demos/2d/hexamap/WWT-26.png | Bin 0 -> 21405 bytes demos/2d/hexamap/engine.cfg | 12 +++++++++++ demos/2d/hexamap/icon.png | Bin 0 -> 5925 bytes demos/2d/hexamap/map.scn | Bin 0 -> 2644 bytes demos/2d/hexamap/tiles.scn | Bin 0 -> 2091 bytes demos/2d/hexamap/tileset.res | Bin 0 -> 6863 bytes demos/2d/hexamap/troll.gd | 43 ++++++++++++++++++++++++++++++++++++++++ demos/2d/hexamap/troll.png | Bin 0 -> 7246 bytes demos/2d/hexamap/troll.scn | Bin 0 -> 1839 bytes demos/2d/isometric/bastiles.res | Bin 0 -> 1840 bytes demos/2d/isometric/dungeon.scn | Bin 0 -> 4582 bytes demos/2d/isometric/engine.cfg | 21 ++++++++++++++++++++ demos/2d/isometric/icon.png | Bin 0 -> 9377 bytes demos/2d/isometric/isotiles.png | Bin 0 -> 222339 bytes demos/2d/isometric/tileset.scn | Bin 0 -> 2305 bytes demos/2d/isometric/troll.gd | 43 ++++++++++++++++++++++++++++++++++++++++ demos/2d/isometric/troll.png | Bin 0 -> 7246 bytes demos/2d/isometric/troll.scn | Bin 0 -> 1839 bytes 44 files changed, 152 insertions(+) create mode 100644 demos/2d/hexamap/.fscache create mode 100644 demos/2d/hexamap/WWT-01.png create mode 100644 demos/2d/hexamap/WWT-02.png create mode 100644 demos/2d/hexamap/WWT-03.png create mode 100644 demos/2d/hexamap/WWT-04.png create mode 100644 demos/2d/hexamap/WWT-05.png create mode 100644 demos/2d/hexamap/WWT-06.png create mode 100644 demos/2d/hexamap/WWT-07.png create mode 100644 demos/2d/hexamap/WWT-08.png create mode 100644 demos/2d/hexamap/WWT-09.png create mode 100644 demos/2d/hexamap/WWT-10.png create mode 100644 demos/2d/hexamap/WWT-11.png create mode 100644 demos/2d/hexamap/WWT-12.png create mode 100644 demos/2d/hexamap/WWT-13.png create mode 100644 demos/2d/hexamap/WWT-14.png create mode 100644 demos/2d/hexamap/WWT-15.png create mode 100644 demos/2d/hexamap/WWT-16.png create mode 100644 demos/2d/hexamap/WWT-17.png create mode 100644 demos/2d/hexamap/WWT-18.png create mode 100644 demos/2d/hexamap/WWT-19.png create mode 100644 demos/2d/hexamap/WWT-20.png create mode 100644 demos/2d/hexamap/WWT-21.png create mode 100644 demos/2d/hexamap/WWT-22.png create mode 100644 demos/2d/hexamap/WWT-23.png create mode 100644 demos/2d/hexamap/WWT-24.png create mode 100644 demos/2d/hexamap/WWT-25.png create mode 100644 demos/2d/hexamap/WWT-26.png create mode 100644 demos/2d/hexamap/engine.cfg create mode 100644 demos/2d/hexamap/icon.png create mode 100644 demos/2d/hexamap/map.scn create mode 100644 demos/2d/hexamap/tiles.scn create mode 100644 demos/2d/hexamap/tileset.res create mode 100644 demos/2d/hexamap/troll.gd create mode 100644 demos/2d/hexamap/troll.png create mode 100644 demos/2d/hexamap/troll.scn create mode 100644 demos/2d/isometric/bastiles.res create mode 100644 demos/2d/isometric/dungeon.scn create mode 100644 demos/2d/isometric/engine.cfg create mode 100644 demos/2d/isometric/icon.png create mode 100644 demos/2d/isometric/isotiles.png create mode 100644 demos/2d/isometric/tileset.scn create mode 100644 demos/2d/isometric/troll.gd create mode 100644 demos/2d/isometric/troll.png create mode 100644 demos/2d/isometric/troll.scn (limited to 'demos/2d') diff --git a/demos/2d/hexamap/.fscache b/demos/2d/hexamap/.fscache new file mode 100644 index 0000000000..60aa69b645 --- /dev/null +++ b/demos/2d/hexamap/.fscache @@ -0,0 +1,33 @@ +::res://::1412302385 +WWT-01.png::ImageTexture::1412126473:: +WWT-02.png::ImageTexture::1412126474:: +WWT-03.png::ImageTexture::1412126474:: +WWT-04.png::ImageTexture::1412126474:: +WWT-05.png::ImageTexture::1412126474:: +WWT-06.png::ImageTexture::1412126474:: +WWT-07.png::ImageTexture::1412126474:: +WWT-08.png::ImageTexture::1412126474:: +WWT-09.png::ImageTexture::1412126474:: +WWT-10.png::ImageTexture::1412126474:: +WWT-11.png::ImageTexture::1412126475:: +WWT-12.png::ImageTexture::1412126475:: +WWT-13.png::ImageTexture::1412126475:: +WWT-14.png::ImageTexture::1412126475:: +WWT-15.png::ImageTexture::1412126475:: +WWT-16.png::ImageTexture::1412126475:: +WWT-17.png::ImageTexture::1412126475:: +WWT-18.png::ImageTexture::1412126475:: +WWT-19.png::ImageTexture::1412126476:: +WWT-20.png::ImageTexture::1412126476:: +WWT-21.png::ImageTexture::1412126476:: +WWT-22.png::ImageTexture::1412126476:: +WWT-23.png::ImageTexture::1412126476:: +WWT-24.png::ImageTexture::1412126476:: +WWT-25.png::ImageTexture::1412126476:: +WWT-26.png::ImageTexture::1412126476:: +map.scn::PackedScene::1412127344:: +tiles.scn::PackedScene::1412126994:: +tileset.res::TileSet::1412127001:: +troll.gd::GDScript::1412302377:: +troll.png::ImageTexture::1412302385:: +troll.scn::PackedScene::1412302380:: diff --git a/demos/2d/hexamap/WWT-01.png b/demos/2d/hexamap/WWT-01.png new file mode 100644 index 0000000000..79d75fa4c9 Binary files /dev/null and b/demos/2d/hexamap/WWT-01.png differ diff --git a/demos/2d/hexamap/WWT-02.png b/demos/2d/hexamap/WWT-02.png new file mode 100644 index 0000000000..7dcd1c8cca Binary files /dev/null and b/demos/2d/hexamap/WWT-02.png differ diff --git a/demos/2d/hexamap/WWT-03.png b/demos/2d/hexamap/WWT-03.png new file mode 100644 index 0000000000..1e76c9a24d Binary files /dev/null and b/demos/2d/hexamap/WWT-03.png differ diff --git a/demos/2d/hexamap/WWT-04.png b/demos/2d/hexamap/WWT-04.png new file mode 100644 index 0000000000..84a3b90e71 Binary files /dev/null and b/demos/2d/hexamap/WWT-04.png differ diff --git a/demos/2d/hexamap/WWT-05.png b/demos/2d/hexamap/WWT-05.png new file mode 100644 index 0000000000..850747dc8d Binary files /dev/null and b/demos/2d/hexamap/WWT-05.png differ diff --git a/demos/2d/hexamap/WWT-06.png b/demos/2d/hexamap/WWT-06.png new file mode 100644 index 0000000000..52479e2d26 Binary files /dev/null and b/demos/2d/hexamap/WWT-06.png differ diff --git a/demos/2d/hexamap/WWT-07.png b/demos/2d/hexamap/WWT-07.png new file mode 100644 index 0000000000..87aa8a4102 Binary files /dev/null and b/demos/2d/hexamap/WWT-07.png differ diff --git a/demos/2d/hexamap/WWT-08.png b/demos/2d/hexamap/WWT-08.png new file mode 100644 index 0000000000..0234cccd56 Binary files /dev/null and b/demos/2d/hexamap/WWT-08.png differ diff --git a/demos/2d/hexamap/WWT-09.png b/demos/2d/hexamap/WWT-09.png new file mode 100644 index 0000000000..5467eb58c3 Binary files /dev/null and b/demos/2d/hexamap/WWT-09.png differ diff --git a/demos/2d/hexamap/WWT-10.png b/demos/2d/hexamap/WWT-10.png new file mode 100644 index 0000000000..bb0b5ae1ff Binary files /dev/null and b/demos/2d/hexamap/WWT-10.png differ diff --git a/demos/2d/hexamap/WWT-11.png b/demos/2d/hexamap/WWT-11.png new file mode 100644 index 0000000000..926ad251b4 Binary files /dev/null and b/demos/2d/hexamap/WWT-11.png differ diff --git a/demos/2d/hexamap/WWT-12.png b/demos/2d/hexamap/WWT-12.png new file mode 100644 index 0000000000..e6c7d33894 Binary files /dev/null and b/demos/2d/hexamap/WWT-12.png differ diff --git a/demos/2d/hexamap/WWT-13.png b/demos/2d/hexamap/WWT-13.png new file mode 100644 index 0000000000..f14e42af6e Binary files /dev/null and b/demos/2d/hexamap/WWT-13.png differ diff --git a/demos/2d/hexamap/WWT-14.png b/demos/2d/hexamap/WWT-14.png new file mode 100644 index 0000000000..826ed49d18 Binary files /dev/null and b/demos/2d/hexamap/WWT-14.png differ diff --git a/demos/2d/hexamap/WWT-15.png b/demos/2d/hexamap/WWT-15.png new file mode 100644 index 0000000000..c62de67c8e Binary files /dev/null and b/demos/2d/hexamap/WWT-15.png differ diff --git a/demos/2d/hexamap/WWT-16.png b/demos/2d/hexamap/WWT-16.png new file mode 100644 index 0000000000..2e8c289d97 Binary files /dev/null and b/demos/2d/hexamap/WWT-16.png differ diff --git a/demos/2d/hexamap/WWT-17.png b/demos/2d/hexamap/WWT-17.png new file mode 100644 index 0000000000..f8c59a4dbe Binary files /dev/null and b/demos/2d/hexamap/WWT-17.png differ diff --git a/demos/2d/hexamap/WWT-18.png b/demos/2d/hexamap/WWT-18.png new file mode 100644 index 0000000000..05269c843c Binary files /dev/null and b/demos/2d/hexamap/WWT-18.png differ diff --git a/demos/2d/hexamap/WWT-19.png b/demos/2d/hexamap/WWT-19.png new file mode 100644 index 0000000000..7313ff8871 Binary files /dev/null and b/demos/2d/hexamap/WWT-19.png differ diff --git a/demos/2d/hexamap/WWT-20.png b/demos/2d/hexamap/WWT-20.png new file mode 100644 index 0000000000..2ec6fe94e2 Binary files /dev/null and b/demos/2d/hexamap/WWT-20.png differ diff --git a/demos/2d/hexamap/WWT-21.png b/demos/2d/hexamap/WWT-21.png new file mode 100644 index 0000000000..e7a51fa687 Binary files /dev/null and b/demos/2d/hexamap/WWT-21.png differ diff --git a/demos/2d/hexamap/WWT-22.png b/demos/2d/hexamap/WWT-22.png new file mode 100644 index 0000000000..0e4d7729ed Binary files /dev/null and b/demos/2d/hexamap/WWT-22.png differ diff --git a/demos/2d/hexamap/WWT-23.png b/demos/2d/hexamap/WWT-23.png new file mode 100644 index 0000000000..ab1cc895e4 Binary files /dev/null and b/demos/2d/hexamap/WWT-23.png differ diff --git a/demos/2d/hexamap/WWT-24.png b/demos/2d/hexamap/WWT-24.png new file mode 100644 index 0000000000..b0a05671cf Binary files /dev/null and b/demos/2d/hexamap/WWT-24.png differ diff --git a/demos/2d/hexamap/WWT-25.png b/demos/2d/hexamap/WWT-25.png new file mode 100644 index 0000000000..3d90080259 Binary files /dev/null and b/demos/2d/hexamap/WWT-25.png differ diff --git a/demos/2d/hexamap/WWT-26.png b/demos/2d/hexamap/WWT-26.png new file mode 100644 index 0000000000..a3baca90a0 Binary files /dev/null and b/demos/2d/hexamap/WWT-26.png differ diff --git a/demos/2d/hexamap/engine.cfg b/demos/2d/hexamap/engine.cfg new file mode 100644 index 0000000000..4567af7a16 --- /dev/null +++ b/demos/2d/hexamap/engine.cfg @@ -0,0 +1,12 @@ +[application] + +name="Hexagonal Game" +main_scene="res://map.scn" +icon="res://icon.png" + +[input] + +move_up=[key(Up)] +move_left=[key(Left)] +move_right=[key(Right)] +move_bottom=[key(Down)] diff --git a/demos/2d/hexamap/icon.png b/demos/2d/hexamap/icon.png new file mode 100644 index 0000000000..0fcef95111 Binary files /dev/null and b/demos/2d/hexamap/icon.png differ diff --git a/demos/2d/hexamap/map.scn b/demos/2d/hexamap/map.scn new file mode 100644 index 0000000000..5798aab850 Binary files /dev/null and b/demos/2d/hexamap/map.scn differ diff --git a/demos/2d/hexamap/tiles.scn b/demos/2d/hexamap/tiles.scn new file mode 100644 index 0000000000..265aedac2b Binary files /dev/null and b/demos/2d/hexamap/tiles.scn differ diff --git a/demos/2d/hexamap/tileset.res b/demos/2d/hexamap/tileset.res new file mode 100644 index 0000000000..05d89316a2 Binary files /dev/null and b/demos/2d/hexamap/tileset.res differ diff --git a/demos/2d/hexamap/troll.gd b/demos/2d/hexamap/troll.gd new file mode 100644 index 0000000000..d118d3a2ba --- /dev/null +++ b/demos/2d/hexamap/troll.gd @@ -0,0 +1,43 @@ + +extends KinematicBody2D + +# This is a simple collision demo showing how +# the kinematic cotroller 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. + + +#pixels / second +const MOTION_SPEED=160 + +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(): + # Initalization here + set_fixed_process(true) + pass + + diff --git a/demos/2d/hexamap/troll.png b/demos/2d/hexamap/troll.png new file mode 100644 index 0000000000..69f195d034 Binary files /dev/null and b/demos/2d/hexamap/troll.png differ diff --git a/demos/2d/hexamap/troll.scn b/demos/2d/hexamap/troll.scn new file mode 100644 index 0000000000..f5d87c3631 Binary files /dev/null and b/demos/2d/hexamap/troll.scn differ diff --git a/demos/2d/isometric/bastiles.res b/demos/2d/isometric/bastiles.res new file mode 100644 index 0000000000..2161c88f1e Binary files /dev/null and b/demos/2d/isometric/bastiles.res differ diff --git a/demos/2d/isometric/dungeon.scn b/demos/2d/isometric/dungeon.scn new file mode 100644 index 0000000000..76532a44aa Binary files /dev/null and b/demos/2d/isometric/dungeon.scn differ diff --git a/demos/2d/isometric/engine.cfg b/demos/2d/isometric/engine.cfg new file mode 100644 index 0000000000..48f39826f9 --- /dev/null +++ b/demos/2d/isometric/engine.cfg @@ -0,0 +1,21 @@ +[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 new file mode 100644 index 0000000000..c8fb5dcb42 Binary files /dev/null and b/demos/2d/isometric/icon.png differ diff --git a/demos/2d/isometric/isotiles.png b/demos/2d/isometric/isotiles.png new file mode 100644 index 0000000000..aa5a800f8f Binary files /dev/null and b/demos/2d/isometric/isotiles.png differ diff --git a/demos/2d/isometric/tileset.scn b/demos/2d/isometric/tileset.scn new file mode 100644 index 0000000000..edb0bc0276 Binary files /dev/null and b/demos/2d/isometric/tileset.scn differ diff --git a/demos/2d/isometric/troll.gd b/demos/2d/isometric/troll.gd new file mode 100644 index 0000000000..d118d3a2ba --- /dev/null +++ b/demos/2d/isometric/troll.gd @@ -0,0 +1,43 @@ + +extends KinematicBody2D + +# This is a simple collision demo showing how +# the kinematic cotroller 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. + + +#pixels / second +const MOTION_SPEED=160 + +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(): + # Initalization here + set_fixed_process(true) + pass + + diff --git a/demos/2d/isometric/troll.png b/demos/2d/isometric/troll.png new file mode 100644 index 0000000000..69f195d034 Binary files /dev/null and b/demos/2d/isometric/troll.png differ diff --git a/demos/2d/isometric/troll.scn b/demos/2d/isometric/troll.scn new file mode 100644 index 0000000000..f5d87c3631 Binary files /dev/null and b/demos/2d/isometric/troll.scn differ -- cgit v1.2.3