X or B on xbox controller is lift

A or Y is jump

Pause menu fix, ESC works again, DevConsole interference.

Cursor is now hidden in fullscreen mode!

crate icon.png and icon.ico
This commit is contained in:
Harmony Honey 2021-09-24 18:50:49 -04:00
parent 7dddd80099
commit dbc87c9685
7 changed files with 21 additions and 17 deletions

BIN
media/image/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

BIN
media/image/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View file

@ -74,9 +74,12 @@ _global_script_class_icons={
[application]
config/name="gdBox"
config/name="Tiny Crate"
config/description="a game by Harmony Honey
HarmonyHunnie.com"
run/main_scene="res://src/menu/StartMenu.tscn"
config/icon="res://icon.png"
config/icon="res://media/image/icon.png"
config/windows_native_icon="res://media/image/icon.ico"
[autoload]
@ -91,8 +94,6 @@ Music="*res://src/autoload/Music.tscn"
window/size/width=228
window/size/height=128
window/size/test_width=1368
window/size/test_height=768
window/dpi/allow_hidpi=true
window/stretch/mode="viewport"
window/stretch/aspect="keep"
@ -163,6 +164,7 @@ jump={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":88,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":75,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
]
}
action={
@ -170,6 +172,7 @@ action={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":67,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":74,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":1,"pressure":0.0,"pressed":false,"script":null)
]
}
reset={
@ -202,6 +205,7 @@ pause={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
]
}
screenshot={

View file

@ -6,7 +6,6 @@
[ext_resource path="res://media/image/star.png" type="Texture" id=4]
[ext_resource path="res://src/actor/ExitStar.gd" type="Script" id=5]
[sub_resource type="Animation" id=1]
length = 1.6
loop = true

View file

@ -178,7 +178,7 @@ tracks/1/keys = {
"player",
"solid",
]]
z_index = 5
z_index = 15
z_as_relative = false
script = ExtResource( 1 )
is_moving = true

View file

@ -16,16 +16,13 @@ func _ready():
out("untitled project by Harmony Honey")
out("developer console initialized")
func _process(delta):
if btn.p("dev_console"):
close() if is_open else open()
if btn.p("ui_cancel"):
close()
func _input(event):
if is_open:
if event is InputEventKey and event.pressed:
if Input.is_action_just_pressed("dev_console"):
close() if is_open else open()
elif is_open:
if Input.is_action_just_pressed("ui_cancel"):
close()
elif event is InputEventKey and event.pressed:
if node_input.has_focus():
# press up
if event.scancode == KEY_UP:

View file

@ -98,6 +98,10 @@ func act():
OS.window_fullscreen = !OS.window_fullscreen
Shared.set_window_scale()
fill.visible = OS.window_fullscreen
if OS.window_fullscreen:
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
else:
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
$AudioStreamPlayer.play()
"
@ -220,9 +224,9 @@ __meta__ = {
[node name="Header" type="Label" parent="."]
margin_left = 14.0
margin_top = 4.0
margin_top = 7.0
margin_right = 242.0
margin_bottom = 17.0
margin_bottom = 20.0
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 1, 0.945098, 0.909804, 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )