Updated the level assets. Updated pause menu to have the map
This commit is contained in:
1 parent
ba3c1b6055
commit
782d6fb114
17 files changed
+93
-53
No files matched your search
+23
-21
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/game_manager.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/UI/Menu_Recipes.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/tutorial/machine_repair.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/UI/Menu_Map.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/Fonts/AlphaProta-Wy7VE.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://assets/UI/Timers.png" type="Texture" id=5]
|
||||
|
||||
@@ -14,6 +14,9 @@ colors = PoolColorArray( 0, 0, 0, 1, 0, 0, 0, 0.429105, 0, 0, 0, 0 )
|
||||
gradient = SubResource( 22 )
|
||||
fill_to = Vector2( 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=23]
|
||||
bg_color = Color( 0, 0, 0, 0.843137 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 50
|
||||
font_data = ExtResource( 4 )
|
||||
@@ -57,14 +60,13 @@ visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( 989, 509 )
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
custom_styles/panel = SubResource( 23 )
|
||||
|
||||
[node name="machine_repair" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.466146
|
||||
anchor_top = 0.0962963
|
||||
anchor_right = 0.894272
|
||||
anchor_bottom = 0.666666
|
||||
[node name="map" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.418229
|
||||
anchor_top = 0.135185
|
||||
anchor_right = 0.947917
|
||||
anchor_bottom = 0.840741
|
||||
margin_left = 6.10352e-05
|
||||
rect_pivot_offset = Vector2( -754, 325 )
|
||||
texture = ExtResource( 3 )
|
||||
@@ -75,10 +77,10 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="recipes" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.0427083
|
||||
anchor_top = 0.0592593
|
||||
anchor_right = 0.323438
|
||||
anchor_bottom = 0.925926
|
||||
anchor_left = 0.0994792
|
||||
anchor_top = 0.0611111
|
||||
anchor_right = 0.380209
|
||||
anchor_bottom = 0.927778
|
||||
texture = ExtResource( 2 )
|
||||
expand = true
|
||||
__meta__ = {
|
||||
@@ -92,10 +94,10 @@ anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 166.0
|
||||
margin_top = -303.0
|
||||
margin_right = 529.0
|
||||
margin_bottom = -217.0
|
||||
margin_left = -35.0
|
||||
margin_top = -143.0
|
||||
margin_right = 328.0
|
||||
margin_bottom = -57.0
|
||||
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "RESUME"
|
||||
@@ -109,10 +111,10 @@ anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 166.0
|
||||
margin_top = -184.0
|
||||
margin_right = 529.0
|
||||
margin_bottom = -98.0
|
||||
margin_left = 404.0
|
||||
margin_top = -143.0
|
||||
margin_right = 767.0
|
||||
margin_bottom = -57.0
|
||||
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "MAIN MENU"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=2]
|
||||
@@ -7,30 +7,6 @@
|
||||
[ext_resource path="res://scenes/status_light.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://item_types/gem.tres" type="Resource" id=6]
|
||||
[ext_resource path="res://item_types/ore.tres" type="Resource" id=7]
|
||||
[ext_resource path="res://assets/UI/Meter_Completion.png" type="Texture" id=8]
|
||||
|
||||
[sub_resource type="Shader" id=1]
|
||||
code = "shader_type canvas_item; //2D shader
|
||||
render_mode unshaded, blend_disabled; // no bells and wistles
|
||||
uniform sampler2D palette; //Uses palletes with colors in rows
|
||||
uniform float palette_count = 1.0; //Tells the shader how many palettes you have
|
||||
uniform float palette_index = 0.0; //Telss the shader which palette to choose
|
||||
|
||||
void fragment(){
|
||||
float increment = 1.0/palette_count; //Value for getting palette index
|
||||
float y = increment * palette_index + increment * 0.5; // + safety measure for floating point imprecision
|
||||
vec4 color = texture(TEXTURE, UV); //Original graysscale color used as collumn index
|
||||
vec4 new_color = texture(palette, vec2(color.r, y)); //get color from palette texture
|
||||
float a = step(0.00392, color.a); //check if transparent color is less than 1/255 for backgrounds
|
||||
new_color.a *= a; //if BG is transparent, then alpha is multiplied by 0
|
||||
|
||||
COLOR = new_color; //set new color from palette
|
||||
}"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = SubResource( 1 )
|
||||
shader_param/palette_count = 1.0
|
||||
shader_param/palette_index = 0.0
|
||||
|
||||
[node name="item_generator" type="Spatial"]
|
||||
transform = Transform( 1, 0, 3.57628e-07, 0, 1, 0, -3.57628e-07, 0, 1, 0.330428, 0, -8.57503 )
|
||||
@@ -71,12 +47,6 @@ visible = false
|
||||
modulate = Color( 0, 0, 0, 1 )
|
||||
text = "Progress: 20%"
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
transform = Transform( 0.132773, 0, -1.72258e-08, 0, 0.132773, 0, -1.72258e-08, 0, 0.18094, -0.0166484, 2.48385, 2.79593 )
|
||||
material_override = SubResource( 2 )
|
||||
billboard = 1
|
||||
texture = ExtResource( 8 )
|
||||
|
||||
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
|
||||
[connection signal="timeout" from="gen_timer" to="." method="_on_gen_timer_timeout"]
|
||||
[connection signal="item_dump_completed" from="item_dump" to="." method="_on_item_dump_item_dump_completed"]
|
||||
@@ -417,6 +417,7 @@ start_broken = true
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
pause_mode = 1
|
||||
layer = 10
|
||||
|
||||
[node name="cheat_menu" parent="CanvasLayer" instance=ExtResource( 18 )]
|
||||
|
||||
|
||||
Reference in new issue
Block a user