Modules
This commit is contained in:
@@ -3,6 +3,4 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(SCRIPT test.lua)
|
||||
|
||||
add_subdirectory(scene)
|
||||
add_asset(SCRIPT init.lua)
|
||||
@@ -1,5 +1,40 @@
|
||||
print('Init')
|
||||
module('platform')
|
||||
module('input')
|
||||
module('scene')
|
||||
|
||||
-- Load map scene
|
||||
setScene('map')
|
||||
setMap()
|
||||
-- Default Input bindings.
|
||||
if PLATFORM == "psp" then
|
||||
inputBind("up", "up")
|
||||
inputBind("down", "down")
|
||||
inputBind("left", "left")
|
||||
inputBind("right", "right")
|
||||
inputBind("circle", "cancel")
|
||||
inputBind("cross", "accept")
|
||||
inputBind("select", "ragequit")
|
||||
inputBind("lstick_up", "up")
|
||||
inputBind("lstick_down", "down")
|
||||
inputBind("lstick_left", "left")
|
||||
inputBind("lstick_right", "right")
|
||||
else
|
||||
if INPUT_KEYBOARD then
|
||||
inputBind("w", "up")
|
||||
inputBind("s", "down")
|
||||
inputBind("a", "left")
|
||||
inputBind("d", "right")
|
||||
|
||||
inputBind("left", "left")
|
||||
inputBind("right", "right")
|
||||
inputBind("up", "up")
|
||||
inputBind("down", "down")
|
||||
|
||||
inputBind("enter", "accept")
|
||||
inputBind("e", "accept" )
|
||||
|
||||
inputBind("escape", "cancel")
|
||||
inputBind("q", "cancel")
|
||||
|
||||
inputBind("z", "ragequit")
|
||||
end
|
||||
end
|
||||
|
||||
sceneSet('map')
|
||||
@@ -1,4 +0,0 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
Reference in New Issue
Block a user