summaryrefslogtreecommitdiff
path: root/demos/3d
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-10-03 00:25:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-10-03 00:25:53 -0300
commit1b3a10891ebdc6e76a81c8915ba08065311e17d3 (patch)
tree3dc1fb08feaafe52726c57ee283253768756a675 /demos/3d
parentb24fe3dd206ce391ec4c5f68d32fc2259f275563 (diff)
missing demo files
Diffstat (limited to 'demos/3d')
-rw-r--r--demos/3d/platformer/texture.texbin29600 -> 18209 bytes
-rw-r--r--demos/3d/truck_town/car_select.gd42
-rw-r--r--demos/3d/truck_town/car_select.scnbin0 -> 1702 bytes
-rw-r--r--demos/3d/truck_town/choose_tow.pngbin0 -> 20702 bytes
-rw-r--r--demos/3d/truck_town/choose_trailer.pngbin0 -> 15646 bytes
-rw-r--r--demos/3d/truck_town/choose_van.pngbin0 -> 10106 bytes
-rw-r--r--demos/3d/truck_town/engine.cfg7
-rw-r--r--demos/3d/truck_town/truck_scene.scnbin1874193 -> 1873575 bytes
8 files changed, 48 insertions, 1 deletions
diff --git a/demos/3d/platformer/texture.tex b/demos/3d/platformer/texture.tex
index 24c4607ab1..d9181b7ffa 100644
--- a/demos/3d/platformer/texture.tex
+++ b/demos/3d/platformer/texture.tex
Binary files differ
diff --git a/demos/3d/truck_town/car_select.gd b/demos/3d/truck_town/car_select.gd
new file mode 100644
index 0000000000..00b4d853b8
--- /dev/null
+++ b/demos/3d/truck_town/car_select.gd
@@ -0,0 +1,42 @@
+
+extends Control
+
+# member variables here, example:
+# var a=2
+# var b="textvar"
+
+func _ready():
+ # Initalization here
+ pass
+
+var town=null
+
+
+func _back():
+
+ town.queue_free()
+ show()
+
+
+func _load_scene(car):
+
+ var tt = load(car).instance()
+ tt.set_name("car")
+ town = load("res://truck_scene.scn").instance()
+ town.get_node("instance_pos").add_child(tt)
+ town.get_node("back").connect("pressed",self,"_back")
+ get_parent().add_child(town)
+ hide()
+
+func _on_van_1_pressed():
+
+ _load_scene("res://car_base.scn")
+
+
+func _on_van_2_pressed():
+
+ _load_scene("res://trailer_truck.scn")
+
+
+func _on_van_3_pressed():
+ _load_scene("res://crane.scn")
diff --git a/demos/3d/truck_town/car_select.scn b/demos/3d/truck_town/car_select.scn
new file mode 100644
index 0000000000..024adf1423
--- /dev/null
+++ b/demos/3d/truck_town/car_select.scn
Binary files differ
diff --git a/demos/3d/truck_town/choose_tow.png b/demos/3d/truck_town/choose_tow.png
new file mode 100644
index 0000000000..8f92833450
--- /dev/null
+++ b/demos/3d/truck_town/choose_tow.png
Binary files differ
diff --git a/demos/3d/truck_town/choose_trailer.png b/demos/3d/truck_town/choose_trailer.png
new file mode 100644
index 0000000000..ead3330296
--- /dev/null
+++ b/demos/3d/truck_town/choose_trailer.png
Binary files differ
diff --git a/demos/3d/truck_town/choose_van.png b/demos/3d/truck_town/choose_van.png
new file mode 100644
index 0000000000..1ecdd54372
--- /dev/null
+++ b/demos/3d/truck_town/choose_van.png
Binary files differ
diff --git a/demos/3d/truck_town/engine.cfg b/demos/3d/truck_town/engine.cfg
index 8703a251d1..f47c0de4fa 100644
--- a/demos/3d/truck_town/engine.cfg
+++ b/demos/3d/truck_town/engine.cfg
@@ -1,6 +1,11 @@
[application]
-main_scene="res://truck_scene.scn"
+main_scene="res://car_select.scn"
+
+[display]
+
+width=1280
+height=720
[rasterizer]
diff --git a/demos/3d/truck_town/truck_scene.scn b/demos/3d/truck_town/truck_scene.scn
index 8db74a2f7f..a02ce259c1 100644
--- a/demos/3d/truck_town/truck_scene.scn
+++ b/demos/3d/truck_town/truck_scene.scn
Binary files differ