mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 01:47:42 +02:00
31 lines
755 B
Plaintext
31 lines
755 B
Plaintext
function init(self)
|
|
local s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
local reverse_s = myextension.reverse(s)
|
|
print(reverse_s) --> ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba
|
|
end
|
|
|
|
function final(self)
|
|
-- Add finalization code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function update(self, dt)
|
|
-- Add update code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function on_message(self, message_id, message, sender)
|
|
-- Add message-handling code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function on_input(self, action_id, action)
|
|
-- Add input-handling code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function on_reload(self)
|
|
-- Add reload-handling code here
|
|
-- Remove this function if not needed
|
|
end
|