Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
This is free and unencumbered software released into the public domain.
Copyright (c) 2025 Harmony Honey Monroe

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 changes: 5 additions & 5 deletions export/butler_push.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
butler push win hhoneysoftware/rota:win
butler push linux hhoneysoftware/rota:linux
butler push mac hhoneysoftware/rota:mac
butler push web hhoneysoftware/rota:web
butler push android hhoneysoftware/rota:android
butler push win harmonymonroe/rota:win
butler push linux harmonymonroe/rota:linux
butler push mac harmonymonroe/rota:mac
butler push web harmonymonroe/rota:web
butler push android harmonymonroe/rota:android
pause
Binary file added media/audio/music/ost5.mp3
Binary file not shown.
15 changes: 15 additions & 0 deletions media/audio/music/ost5.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
path="res://.import/ost5.mp3-8a410e27a4dd1ce657a4b843180f824c.mp3str"

[deps]

source_file="res://media/audio/music/ost5.mp3"
dest_files=[ "res://.import/ost5.mp3-8a410e27a4dd1ce657a4b843180f824c.mp3str" ]

[params]

loop=false
loop_offset=0
Binary file added media/audio/music/ost6.mp3
Binary file not shown.
15 changes: 15 additions & 0 deletions media/audio/music/ost6.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
path="res://.import/ost6.mp3-a69612ac29493fe5fcdc0b2994486269.mp3str"

[deps]

source_file="res://media/audio/music/ost6.mp3"
dest_files=[ "res://.import/ost6.mp3-a69612ac29493fe5fcdc0b2994486269.mp3str" ]

[params]

loop=false
loop_offset=0
5 changes: 2 additions & 3 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ _global_script_class_icons={

[application]

config/name="ROTA"
config/description="ROTA by Harmony Honey Monroe
config/name="ROTA: Bend Gravity"
config/description="ROTA: Bend Gravity by Harmony Monroe
harmonymonroe.com"
run/main_scene="res://src/menu/Splash.tscn"
config/use_custom_user_dir=true
Expand Down Expand Up @@ -185,7 +185,6 @@ Steam="*res://addons/steam_api/steam.gd"

window/size/width=1280
window/size/height=720
window/size/fullscreen=true
window/size/test_width=1920
window/size/test_height=1080
window/stretch/mode="2d"
Expand Down
36 changes: 19 additions & 17 deletions src/actor/Player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -522,19 +522,37 @@ func physics_frame():
func _process(delta):
if Engine.editor_hint: return

# squash squish and stretch
sprites.scale = squish_from.linear_interpolate(Vector2.ONE, squish_ease.count(delta))

# blink anim
if blink_clock < blink_time:
blink_clock += delta
else:
var be = blink_ease.count(delta)
spr_eyes.scale.y = lerp(1.0, 0.1, be)
if be == 1.0:
blink_ease.show = false
elif be == 0.0:
blink_ease.show = true
blink_clock = 0.0
blink_time = rand_range(blink_range.x, blink_range.y)

# death animation
if is_dead:
sprites.position += rot(velocity) * delta
sprites.rotate(deg2rad(240) * -dir_x * delta)
velocity.y += fall_gravity * delta

if dead_clock < dead_time:
dead_clock += delta
if dead_clock > dead_time:
if dead_clock >= dead_time:
Cutscene.is_playing = false
Shared.reset()

return

# grow and shrink in and out of scene
if spr_easy.is_less or !spr_easy.show:
var sec = spr_easy.count(delta, spr_easy.show and !Wipe.is_intro)
var dp = to_local(door_exit.global_position) if is_instance_valid(door_exit) else rot(Vector2(0, -25))
Expand Down Expand Up @@ -603,22 +621,6 @@ func _process(delta):
var r = lerp_angle(turn_from, turn_to, s)
sprites.rotation = r
emit_signal("turn_angle", r)

# squash squish and stretch
sprites.scale = squish_from.linear_interpolate(Vector2.ONE, squish_ease.count(delta))

# blink anim
if blink_clock < blink_time:
blink_clock += delta
else:
var be = blink_ease.count(delta)
spr_eyes.scale.y = lerp(1.0, 0.1, be)
if be == 1.0:
blink_ease.show = false
elif be == 0.0:
blink_ease.show = true
blink_clock = 0.0
blink_time = rand_range(blink_range.x, blink_range.y)

### Set Get

Expand Down
7 changes: 5 additions & 2 deletions src/autoload/Audio.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=35 format=2]
[gd_scene load_steps=37 format=2]

[ext_resource path="res://src/autoload/Audio.gd" type="Script" id=1]
[ext_resource path="res://media/audio/sfx/coin1.wav" type="AudioStream" id=2]
Expand Down Expand Up @@ -34,11 +34,14 @@
[ext_resource path="res://media/audio/sfx/zap0.wav" type="AudioStream" id=32]
[ext_resource path="res://media/audio/music/arcade2.mp3" type="AudioStream" id=33]
[ext_resource path="res://media/audio/sfx/oneup1.wav" type="AudioStream" id=34]
[ext_resource path="res://media/audio/music/ost6.mp3" type="AudioStream" id=35]
[ext_resource path="res://media/audio/music/ost5.mp3" type="AudioStream" id=36]

[node name="Audio" type="Node"]
pause_mode = 2
script = ExtResource( 1 )
ost = [ ExtResource( 21 ), ExtResource( 24 ), ExtResource( 22 ), ExtResource( 23 ) ]
ost = [ ExtResource( 21 ), ExtResource( 24 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 36 ), ExtResource( 35 ) ]
wait_range = Vector2( 2, 5 )

[node name="Music" type="Node" parent="."]

Expand Down
15 changes: 6 additions & 9 deletions src/autoload/touch_screen.gd
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ func _ready():
yield(Shared, "scene_changed")
visible = Shared.is_touch or ((OS.has_touchscreen_ui_hint() and OS.get_name() == "HTML5") or OS.get_name() == "Android")

func _input(event):
if event is InputEventScreenTouch or event is InputEventScreenDrag:
visible = true
elif event is InputEventKey or event is InputEventJoypadButton or event is InputEventJoypadMotion:
visible = Shared.is_touch

func show_keys(arg_arrows := true, arg_c := true, arg_x := true, arg_pause := false, arg_passby := false):
right.visible = arg_arrows
keys[0].visible = arg_c
keys[1].visible = arg_x
top.visible = arg_pause

func set_game(arg := false):
var i = "" if arg else "ui_"
set_actions(i + "up", i + "down", i + "left", i + "right")
buttons[0].action = "grab" if arg else "ui_cancel"
buttons[1].action = "jump" if arg else "ui_accept"

for h in game_hide:
h.visible = !arg
Expand All @@ -49,11 +51,6 @@ func set_game(arg := false):
for f in buttons:
f.passby_press = arg

func set_actions(_up, _down, _left, _right):
for i in 4:
btns[i].action = [_right, _down, _left, _up][i]
btns[i].passby_press = !("ui_" in _up)

func margin(x := 20, y := 20):
control.margin_left = x
control.margin_right = -x
Expand Down
14 changes: 14 additions & 0 deletions src/autoload/touch_screen.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ margin_bottom = 150.0
[node name="0" type="TouchScreenButton" parent="Control/HBoxLeft/DPad/Buttons"]
shape = SubResource( 13 )
shape_centered = false
passby_press = true
action = "ui_right"
script = ExtResource( 3 )
radius = 500.0
Expand All @@ -90,6 +91,7 @@ poly_path = NodePath("Polygon2D")
poly_radius = 140.0
poly_points = 7
poly_deadzone = 10.0
secondary_action = "right"

[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/DPad/Buttons/0"]
modulate = Color( 1, 1, 1, 0.5 )
Expand All @@ -102,6 +104,7 @@ idle_color = Color( 1, 1, 1, 0.501961 )
[node name="1" type="TouchScreenButton" parent="Control/HBoxLeft/DPad/Buttons"]
shape = SubResource( 14 )
shape_centered = false
passby_press = true
action = "ui_down"
script = ExtResource( 3 )
angle = 90.0
Expand All @@ -111,6 +114,7 @@ poly_path = NodePath("Polygon2D")
poly_radius = 140.0
poly_points = 7
poly_deadzone = 10.0
secondary_action = "down"

[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/DPad/Buttons/1"]
modulate = Color( 1, 1, 1, 0.5 )
Expand All @@ -123,6 +127,7 @@ idle_color = Color( 1, 1, 1, 0.501961 )
[node name="2" type="TouchScreenButton" parent="Control/HBoxLeft/DPad/Buttons"]
shape = SubResource( 15 )
shape_centered = false
passby_press = true
action = "ui_left"
script = ExtResource( 3 )
angle = 180.0
Expand All @@ -132,6 +137,7 @@ poly_path = NodePath("Polygon2D")
poly_radius = 140.0
poly_points = 7
poly_deadzone = 10.0
secondary_action = "left"

[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/DPad/Buttons/2"]
modulate = Color( 1, 1, 1, 0.5 )
Expand All @@ -144,6 +150,7 @@ idle_color = Color( 1, 1, 1, 0.501961 )
[node name="3" type="TouchScreenButton" parent="Control/HBoxLeft/DPad/Buttons"]
shape = SubResource( 16 )
shape_centered = false
passby_press = true
action = "ui_up"
script = ExtResource( 3 )
angle = 270.0
Expand All @@ -153,6 +160,7 @@ poly_path = NodePath("Polygon2D")
poly_radius = 140.0
poly_points = 7
poly_deadzone = 10.0
secondary_action = "up"

[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/DPad/Buttons/3"]
modulate = Color( 1, 1, 1, 0.5 )
Expand Down Expand Up @@ -187,6 +195,7 @@ physics_interpolation_mode = 1
modulate = Color( 1, 1, 1, 0.156863 )
shape = SubResource( 3 )
shape_centered = false
passby_press = true
action = "ui_cancel"
visibility_mode = 1
script = ExtResource( 4 )
Expand All @@ -195,6 +204,7 @@ __meta__ = {
}
color_path = NodePath("../Poly")
idle_color = Color( 1, 1, 1, 0.156863 )
secondary_action = "grab"

[node name="Poly" type="Polygon2D" parent="Control/HBoxRight/C/Control"]
modulate = Color( 1, 1, 1, 0.156863 )
Expand Down Expand Up @@ -238,6 +248,7 @@ margin_bottom = 75.0
modulate = Color( 1, 1, 1, 0.156863 )
shape = SubResource( 4 )
shape_centered = false
passby_press = true
action = "ui_accept"
visibility_mode = 1
script = ExtResource( 4 )
Expand All @@ -246,6 +257,7 @@ __meta__ = {
}
color_path = NodePath("../Poly")
idle_color = Color( 1, 1, 1, 0.156863 )
secondary_action = "jump"

[node name="Poly" type="Polygon2D" parent="Control/HBoxRight/X/Control"]
modulate = Color( 1, 1, 1, 0.156863 )
Expand Down Expand Up @@ -295,6 +307,7 @@ physics_interpolation_mode = 1
modulate = Color( 1, 1, 1, 0.156863 )
shape = SubResource( 3 )
shape_centered = false
passby_press = true
action = "zoom"
visibility_mode = 1
script = ExtResource( 4 )
Expand Down Expand Up @@ -345,6 +358,7 @@ margin_bottom = 75.0
modulate = Color( 1, 1, 1, 0.156863 )
shape = SubResource( 5 )
shape_centered = false
passby_press = true
action = "ui_pause"
visibility_mode = 1
script = ExtResource( 4 )
Expand Down
7 changes: 6 additions & 1 deletion src/map/worlds/1/6.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=2]
[gd_scene load_steps=16 format=2]

[ext_resource path="res://src/detail/Rocks.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/door/DoorLittle.tscn" type="PackedScene" id=2]
Expand All @@ -14,6 +14,7 @@
[ext_resource path="res://src/detail/Candle.tscn" type="PackedScene" id=12]
[ext_resource path="res://src/detail/Bench.tscn" type="PackedScene" id=13]
[ext_resource path="res://src/detail/Lamppost.tscn" type="PackedScene" id=14]
[ext_resource path="res://src/detail/SignZoom.tscn" type="PackedScene" id=15]

[node name="Node2D" type="Node2D"]

Expand Down Expand Up @@ -139,3 +140,7 @@ rotation = -3.14159
[node name="Lamppost" parent="Details" instance=ExtResource( 14 )]
position = Vector2( 1000, 400 )
rotation = 1.57079

[node name="SignZoom" parent="Details" instance=ExtResource( 15 )]
position = Vector2( 110, 590 )
rotation = -2.26893
Loading