Advertisement
boxeroth

main till collision with ground

Jun 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function init(self)
  2.     msg.post(".", "acquire_input_focus")
  3.     msg.post("@render:", "use_fixed_fit_projection", { near = -1, far = 1 })
  4. end
  5.  
  6. function on_input(self, action_id, action)
  7.     if action_id == hash("click") and action.pressed then
  8.         factory.create("#logofactory", vmath.vector3(action.x, action.y, 0))
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement