1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

Change settings for optimal pixelness

This commit is contained in:
ValliantStorme 2021-10-20 01:05:39 -05:00
parent cc87cd4e92
commit e894ddcce9
5 changed files with 6 additions and 14 deletions

View File

@ -24,7 +24,7 @@ window/size/width=640
window/size/height=360 window/size/height=360
window/dpi/allow_hidpi=true window/dpi/allow_hidpi=true
window/per_pixel_transparency/allowed=true window/per_pixel_transparency/allowed=true
window/stretch/mode="2d" window/stretch/mode="viewport"
window/stretch/aspect="keep" window/stretch/aspect="keep"
[input] [input]
@ -72,3 +72,4 @@ common/enable_pause_aware_picking=true
quality/intended_usage/framebuffer_allocation=0 quality/intended_usage/framebuffer_allocation=0
2d/snapping/use_gpu_pixel_snap=true 2d/snapping/use_gpu_pixel_snap=true
environment/default_environment="res://default_env.tres" environment/default_environment="res://default_env.tres"
quality/dynamic_fonts/use_oversampling=false

View File

@ -6,7 +6,7 @@ var debug_transform
var debug_active = false var debug_active = false
var menu_position = 0.0 var menu_position = 0.0
var menu_velocity = 2 var menu_velocity = 4
# positions when the menu is hidden/active # positions when the menu is hidden/active
var menu_hidden = Transform2D(Vector2(1,0), Vector2(0,1), Vector2(0,-180)) var menu_hidden = Transform2D(Vector2(1,0), Vector2(0,1), Vector2(0,-180))

View File

@ -19,7 +19,7 @@ func _ready():
gameplay = preload("res://scenes/Gameplay.tscn") gameplay = preload("res://scenes/Gameplay.tscn")
options = preload("res://scenes/Options.tscn") options = preload("res://scenes/Options.tscn")
debug_menu = preload("res://scenes/Debug Menu.tscn") debug_menu = preload("res://scenes/Debug Menu.tscn")
if (debug_enabled): if debug_enabled:
add_child(debug_menu.instance()) add_child(debug_menu.instance())
_on_change_scene("Title") _on_change_scene("Title")
@ -38,4 +38,4 @@ func _on_quit_request():
get_tree().quit() get_tree().quit()
func _on_title_request(): func _on_title_request():
get_tree().change_scene("res://scenes/Options.tscn") get_tree().change_scene("res://scenes/Main.tscn")

View File

@ -2,6 +2,7 @@ extends Node
# Ask for a scene change # Ask for a scene change
signal change_scene(scene_name) signal change_scene(scene_name)
# Ask to kill scene
# Ask to quit the game # Ask to quit the game
signal quit signal quit
# Ask to return to title screen # Ask to return to title screen

View File

@ -8,24 +8,14 @@ extends Control
func _ready(): func _ready():
$VBoxContainer/Singleplayer.grab_focus() $VBoxContainer/Singleplayer.grab_focus()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Singleplayer_pressed(): func _on_Singleplayer_pressed():
#get_tree().change_scene("res://scenes/Gameplay.tscn")
MessageBus.emit_signal("change_scene", "Singleplayer") MessageBus.emit_signal("change_scene", "Singleplayer")
func _on_Multiplayer_pressed(): func _on_Multiplayer_pressed():
#get_tree().change_scene("res://scenes/Gameplay.tscn")
MessageBus.emit_signal("change_scene", "Multiplayer") MessageBus.emit_signal("change_scene", "Multiplayer")
func _on_Options_pressed(): func _on_Options_pressed():
#get_tree().change_scene("res://scenes/Options.tscn")
MessageBus.emit_signal("change_scene", "Options") MessageBus.emit_signal("change_scene", "Options")
func _on_Quit_pressed(): func _on_Quit_pressed():
#get_tree().quit()
MessageBus.emit_signal("quit") MessageBus.emit_signal("quit")