-- 1.渲染
msg.post("@render:", "clear_color", { color = vmath.vector4(0.4, 0.5, 0.7, 1.0) })
msg.post("@render:", "draw_text", { text = "Up/Down to modify move_speed", position = vmath.vector3(20, 20, 0) } )
-- 2.输入
msg.post("#", "acquire_input_focus")
msg.post(".", "release_input_focus")
-- 3.声音
msg.post(sound_url, "play_sound")
-- 4.动画
msg.post("#sprite", "play_animation", { id = anim })
网友评论