Skip to content

Commit 7ec0a48

Browse files
added cave and bank, added descriptions for each building
still a little scetch
1 parent edd899b commit 7ec0a48

File tree

8 files changed

+334
-25
lines changed

8 files changed

+334
-25
lines changed

Buildings/Bank.png

615 Bytes
Loading

Buildings/Bank.png.import

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://pegj0vyr0o6h"
6+
path="res://.godot/imported/Bank.png-9709bb813e3fda8d3f1a658295227afb.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Buildings/Bank.png"
14+
dest_files=["res://.godot/imported/Bank.png-9709bb813e3fda8d3f1a658295227afb.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

Buildings/Cave.png

1.52 KB
Loading

Buildings/Cave.png.import

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://cafon404r84lp"
6+
path="res://.godot/imported/Cave.png-cd04cbdea6d40cf77b6b8c0ff9ddde2f.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Buildings/Cave.png"
14+
dest_files=["res://.godot/imported/Cave.png-cd04cbdea6d40cf77b6b8c0ff9ddde2f.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

Buttonthemes.tres

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

buildings tileset.tres

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
[gd_resource type="TileSet" load_steps=11 format=3 uid="uid://cxb4ovjti0sjt"]
1+
[gd_resource type="TileSet" load_steps=15 format=3 uid="uid://cxb4ovjti0sjt"]
22

33
[ext_resource type="Texture2D" uid="uid://di5j467k5krmv" path="res://Buildings/coal plant.png" id="1_ybimb"]
44
[ext_resource type="Texture2D" uid="uid://c3v2swb7c5og5" path="res://Buildings/tree.png" id="2_qqfw6"]
55
[ext_resource type="Texture2D" uid="uid://dsd7lc7wgxyia" path="res://Buildings/recycleplant.png" id="4_l08ib"]
66
[ext_resource type="Texture2D" uid="uid://qdb34pc4qj1e" path="res://Buildings/waterpump.png" id="4_rekhq"]
77
[ext_resource type="Texture2D" uid="uid://bac8prbpduq4d" path="res://Buildings/oil pump 2.png" id="5_4ofnk"]
8+
[ext_resource type="Texture2D" uid="uid://cafon404r84lp" path="res://Buildings/Cave.png" id="6_obcul"]
9+
[ext_resource type="Texture2D" uid="uid://pegj0vyr0o6h" path="res://Buildings/Bank.png" id="7_k5tkm"]
810

911
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_m1562"]
1012
texture = ExtResource("2_qqfw6")
@@ -46,6 +48,22 @@ texture_region_size = Vector2i(32, 32)
4648
0:0/0/physics_layer_0/angular_velocity = 0.0
4749
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-7.5, 2.75, 7.75, -0.75, 16, 16, 12.75, 16, -16, 14)
4850

51+
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_287mq"]
52+
texture = ExtResource("6_obcul")
53+
texture_region_size = Vector2i(32, 32)
54+
0:0/0 = 0
55+
0:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
56+
0:0/0/physics_layer_0/angular_velocity = 0.0
57+
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-9.75, -3, 5.5, -6, 13.25, 7.25, -13.25, 8)
58+
59+
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_cdd17"]
60+
texture = ExtResource("7_k5tkm")
61+
texture_region_size = Vector2i(32, 32)
62+
0:0/0 = 0
63+
0:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
64+
0:0/0/physics_layer_0/angular_velocity = 0.0
65+
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8.5, 1.75, 8, 0.5, 12.5, 11.25, -13.75, 13.25)
66+
4967
[resource]
5068
tile_size = Vector2i(32, 32)
5169
physics_layer_0/collision_layer = 1
@@ -54,3 +72,5 @@ sources/0 = SubResource("TileSetAtlasSource_m1562")
5472
sources/2 = SubResource("TileSetAtlasSource_08gy0")
5573
sources/3 = SubResource("TileSetAtlasSource_m4d3j")
5674
sources/4 = SubResource("TileSetAtlasSource_nfbcp")
75+
sources/5 = SubResource("TileSetAtlasSource_287mq")
76+
sources/6 = SubResource("TileSetAtlasSource_cdd17")

main scene.gd

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ var oil = 0
77
var bits = 0
88

99
# Called when the node enters the scene tree for the first time.
10-
func _ready():
11-
12-
13-
pass # Replace with function body.
1410

1511

1612
# Called every frame. 'delta' is the elapsed time since the previous frame.
@@ -23,17 +19,96 @@ func _process(delta):
2319
$Camera2D/bitsui.text = ":" + str(bits)
2420

2521

26-
22+
23+
2724
pass
2825

2926

3027
func _on_timer_timeout():
3128
$Camera2D/Climatechange.value += 1 #put multiplicaton from buildings here
29+
pass # Replace with function body.
30+
3231

32+
func _on_powerplantbutton_pressed():
33+
var powerlabel = get_node("Camera2D/powerplanttext")
34+
var powerback = get_node("Camera2D/powerplantpanel")
35+
powerback.visible = true
36+
powerlabel.visible = true
37+
pass # Replace with function body.
38+
39+
40+
func _on_waterpumpbutton_pressed():
41+
var waterlabel = get_node("Camera2D/waterplanttext")
42+
var waterback = get_node("Camera2D/waterplantpanel")
43+
waterback.visible = true
44+
waterlabel.visible = true
45+
pass # Replace with function body.
46+
47+
48+
func _on_oilpumpbutton_pressed():
49+
var oillabel = get_node("Camera2D/oiltext")
50+
var oilback = get_node("Camera2D/oilpumppanel")
51+
oilback.visible = true
52+
oillabel.visible = true
53+
54+
pass # Replace with function body.
3355

3456

57+
func _on_recyclebutton_pressed():
58+
var recyclelabel = get_node("Camera2D/recycletext")
59+
var recycleback = get_node("Camera2D/recyclepanel")
60+
recycleback.visible = true
61+
recyclelabel.visible = true
62+
pass # Replace with function body.
3563

64+
func _on_bankbutton_pressed():
65+
var banklabel = get_node("Camera2D/banktext")
66+
var bankback = get_node("Camera2D/bankpanel")
67+
bankback.visible = true
68+
banklabel.visible = true
69+
pass # Replace with function body.
3670

71+
func _on_coalminebutton_pressed():
72+
var coallabel = get_node("Camera2D/coalminetext")
73+
var coalback = get_node("Camera2D/coalminepanel")
74+
coalback.visible = true
75+
coallabel.visible = true
76+
pass # Replace with function body.
3777

78+
func _on_timer_for_ui_timeout():
79+
var oillabel = get_node("Camera2D/oiltext")
80+
var oilback = get_node("Camera2D/oilpumppanel")
81+
oilback.visible = false
82+
oillabel.visible = false
83+
84+
var powerlabel = get_node("Camera2D/powerplanttext")
85+
var powerback = get_node("Camera2D/powerplantpanel")
86+
powerback.visible = false
87+
powerlabel.visible = false
88+
89+
var waterlabel = get_node("Camera2D/waterplanttext")
90+
var waterback = get_node("Camera2D/waterplantpanel")
91+
waterback.visible = false
92+
waterlabel.visible = false
93+
94+
var recyclelabel = get_node("Camera2D/recycletext")
95+
var recycleback = get_node("Camera2D/recyclepanel")
96+
recycleback.visible = false
97+
recyclelabel.visible = false
3898

99+
var banklabel = get_node("Camera2D/banktext")
100+
var bankback = get_node("Camera2D/bankpanel")
101+
bankback.visible = false
102+
banklabel.visible = false
103+
104+
var coallabel = get_node("Camera2D/coalminetext")
105+
var coalback = get_node("Camera2D/coalminepanel")
106+
coalback.visible = false
107+
coallabel.visible = false
39108
pass # Replace with function body.
109+
110+
111+
112+
113+
114+

0 commit comments

Comments
 (0)