summaryrefslogtreecommitdiff
path: root/demos/3d/truck_town
diff options
context:
space:
mode:
Diffstat (limited to 'demos/3d/truck_town')
-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
7 files changed, 48 insertions, 1 deletions
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