Commit 2a9356f1 authored by Delisa Mason's avatar Delisa Mason

refactor: Make screen commands scheme consistent

parent 2921a08d
......@@ -21,15 +21,15 @@ group {
group {
audio_play("explosion"),
sprite_draw("player", 200, 310, 1, 1, 2.1),
shake_screen(1, 4, 60),
screen_shake(1, 4, 60),
wait(3)
}
group {
sprite_draw("player", 200, 310, 1, 1, 2.1),
auto_dialog(200, 200, 4, "Where are we?"),
auto_dialog(140, 230, 4, "Let's get out of here!"),
auto_dialog(140, 430, 4, "Let's get out of here!"),
}
group {
sprite_draw("player", 200, 310, 1, 1, 2.1),
fade_screen(1, {0, 0, 0, 255}),
screen_fade(1, {0, 0, 0, 255}),
}
......@@ -148,7 +148,7 @@ local SceneDSL = function()
}}
end
function scene.shake_screen(duration, intensity, frequency)
function scene.screen_shake(duration, intensity, frequency)
return {
duration=duration,
transform={
......@@ -161,7 +161,7 @@ local SceneDSL = function()
}}
end
function scene.fade_screen(duration, color)
function scene.screen_fade(duration, color)
return {
duration=duration,
transform={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment