1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-14 21:15:58 +00:00

Change settings for optimal pixelness

This commit is contained in:
John 2021-10-20 01:05:39 -05:00 committed by John
parent 4c48417d7d
commit b3da915db8
5 changed files with 6 additions and 14 deletions

View File

@ -24,7 +24,7 @@ window/size/width=640
window/size/height=360
window/dpi/allow_hidpi=true
window/per_pixel_transparency/allowed=true
window/stretch/mode="2d"
window/stretch/mode="viewport"
window/stretch/aspect="keep"
[input]
@ -72,3 +72,4 @@ common/enable_pause_aware_picking=true
quality/intended_usage/framebuffer_allocation=0
2d/snapping/use_gpu_pixel_snap=true
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 menu_position = 0.0
var menu_velocity = 2
var menu_velocity = 4
# positions when the menu is hidden/active
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")
options = preload("res://scenes/Options.tscn")
debug_menu = preload("res://scenes/Debug Menu.tscn")
if (debug_enabled):
if debug_enabled:
add_child(debug_menu.instance())
_on_change_scene("Title")
@ -38,4 +38,4 @@ func _on_quit_request():
get_tree().quit()
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
signal change_scene(scene_name)
# Ask to kill scene
# Ask to quit the game
signal quit
# Ask to return to title screen

View File

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