Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 21/04/2017
- --Last update: 21/04/2017
- --[[ Notes:
- Does:
- Impulsionador simples
- ]]--
- info = {}
- eventNewPlayer = function(n)
- if not info[n] then
- info[n] = {
- false,false,false,false
- }
- end
- for k = 0,3 do
- for i = 1,2 do
- system.bindKeyboard(n,k,i==1,true)
- end
- end
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- eventKeyboard = function(n,k,d)
- info[n][k] = d
- end
- f = 5
- eventLoop = function()
- for k,v in next,info do
- tfm.exec.movePlayer(k,v[0] and -f or v[2] and f or 0,v[1] and -f or v[3] and f or 0,true)
- end
- end
- tfm.exec.newGame('<C><P G="0,0" /><Z><S><S L="809" H="57" X="398" Y="410" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="871" H="38" X="403" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement