Add toggle show bottom level particles in settings

This commit is contained in:
dariasteam 2018-10-19 06:24:37 +01:00
parent 5bbc7c4738
commit 11c26f807b
8 changed files with 46 additions and 5 deletions

View file

@ -0,0 +1 @@
,darias,darias-laptop,19.10.2018 06:24,file:///home/darias/.config/libreoffice/4;

View file

@ -6,6 +6,7 @@ SWITCH_SCREEN_CONTROLS,Usar botones táctiles,Use onscreen controls,Touch-Steuer
SWITCH_RETRO_EFFECT,Simular pantalla retro,Simulate retro TV,Röhrenfernseher simulieren,
SWITCH_MUSIC,Música,Music,Musik,
SWITCH_SOUND,Sonidos,Sound,Ton,
SWITCH_BOTTOM_PARTICLES,Resaltar final del nivel,Show level end,,
BTTN_BACK,Volver,Back,Zurück,
TEXT_LICENSE,"El código fuente de este juego está licenciado bajo Geneal Public License versión 3. Todos los recursos gráficos, sonidos y música han sido creados por nosotros y están licenciados como Creative Commons Attribution-Non Commercial-Share Alike 4.0. La tipografía utilizada es Press Start 2P creada por CodeMan38 (Open Font License)

1 id es en de EXPLANATIONS
6 SWITCH_RETRO_EFFECT Simular pantalla retro Simulate retro TV Röhrenfernseher simulieren
7 SWITCH_MUSIC Música Music Musik
8 SWITCH_SOUND Sonidos Sound Ton
9 SWITCH_BOTTOM_PARTICLES Resaltar final del nivel Show level end
10 BTTN_BACK Volver Back Zurück
11 TEXT_LICENSE El código fuente de este juego está licenciado bajo Geneal Public License versión 3. Todos los recursos gráficos, sonidos y música han sido creados por nosotros y están licenciados como Creative Commons Attribution-Non Commercial-Share Alike 4.0. La tipografía utilizada es Press Start 2P creada por CodeMan38 (Open Font License) Puedes obtener el código fuente y los recusos en gitlab.com/dariasteam/cows-revenge Hecho en Godot Engine 2.1.5 (MIT) This game's code is licensed as General Public License version 3. All the graphics, sounds and music resources were made by us and are published as Creative Commons Attribution-Non Commercial-Share Alike 4.0 International. Font is Press Start 2P by CodeMan38 (Open Font License) You can get the source code and assets at gitlab.com/dariasteam/cows-revenge Made with Godot Engine 2.1.5 (MIT) Der Code dieses Spiels ist unter der General Public License Version 3 lizensiert. Alle Grafiken, Klänge und Musikstücke wurden von uns erstellt und unter Creative Commons Attribution-Non Commercial-Share Alike 4.0 International veröffentlicht. Als Schriftart wird Press Start 2P von CodeMan38 unter der Open Font License verwendet. Der Quell-Code und alle weiteren Materialien stehen unter gitlab.com/dariasteam/cows-revenge zur Verfügung. Erstellt mit Godot Engine 2.1.5 (MIT)
12 CHAPTERS Capítulos Chapters Kapitel

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -9,9 +9,9 @@ func _on_DeathLine_body_enter( body ):
func _on_death_line_area_enter( area ):
if(area.is_in_group("bottom_level_detector")):
if(area.is_in_group("bottom_level_detector") and global.bottom_particles):
particles.set_emitting(true)
func _on_death_line_area_exit( area ):
if(area.is_in_group("bottom_level_detector")):
if(area.is_in_group("bottom_level_detector") and global.bottom_particles):
particles.set_emitting(false)

View file

@ -15,6 +15,7 @@ var can_show_in_game_menu = true
var retro_effect = true
var music = true
var sound = true
var bottom_particles = false
var level = 0
var unlocked_levels = 1
@ -81,7 +82,8 @@ func save_game():
retro_effect=retro_effect,
# NEW STUFF
sound=sound,
music=music
music=music,
bottom_particles=bottom_particles
}
save_game.store_line(data.to_json())
save_game.close()
@ -100,7 +102,7 @@ func load_game():
onscreen_controls = current_line["onscreen_controls"]
cowbells = current_line["saved_cowbells"]
saved_cowbells = cowbells
max_milk = current_line["max_milk"]
max_life = current_line["max_life"]
life = current_line["life"]
@ -112,4 +114,7 @@ func load_game():
if (current_line.has("sound")):
sound = current_line["sound"]
music = current_line["music"]
if (current_line.has("bottom_particles")):
bottom_particles = current_line["bottom_particles"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=1]
[gd_scene load_steps=10 format=1]
[ext_resource path="res://Fonts/pixelated_regular.fnt" type="BitmapFont" id=1]
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=2]
@ -57,6 +57,18 @@ func _ready():
func _on_CheckButton3_toggled( pressed ):
global.sound = !global.sound"
[sub_resource type="GDScript" id=5]
script/source = "extends CheckButton
func _ready():
set_pressed(global.bottom_particles)
func _on_CheckButton4_toggled( pressed ):
global.bottom_particles = !global.bottom_particles
"
[node name="Control" type="Control"]
focus/ignore_mouse = false
@ -179,6 +191,26 @@ flat = false
align = 0
script/script = SubResource( 4 )
[node name="CheckButton4" type="CheckButton" parent="Panel/VBoxContainer"]
rect/min_size = Vector2( 0, 30 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 136.0
margin/right = 486.0
margin/bottom = 166.0
custom_fonts/font = ExtResource( 1 )
toggle_mode = true
enabled_focus_mode = 2
shortcut = null
text = "SWITCH_BOTTOM_PARTICLES"
flat = false
align = 0
script/script = SubResource( 5 )
[node name="VButtonArray" type="VButtonArray" parent="Panel"]
focus/ignore_mouse = false
@ -228,4 +260,6 @@ max_lines_visible = -1
[connection signal="toggled" from="Panel/VBoxContainer/CheckButton3" to="Panel/VBoxContainer/CheckButton3" method="_on_CheckButton3_toggled"]
[connection signal="toggled" from="Panel/VBoxContainer/CheckButton4" to="Panel/VBoxContainer/CheckButton4" method="_on_CheckButton4_toggled"]