quickplat.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. -- title: quickplat
  2. -- author: game developer
  3. -- desc: quick platforming tests
  4. -- script: lua
  5. t=0
  6. x=96
  7. y=24
  8. local airAccel = 0
  9. local airControl = 0
  10. local airBrake = 0
  11. local runAccel = 0.2
  12. local runTurnSpeed = 0
  13. local runDecel = 0.2
  14. local runMaxSpeed = 1
  15. local cameraDampX = 0
  16. local cameraDampY = 0
  17. local cameraLookAhead = 0
  18. local jumpBufferTime = 0
  19. local jumpMaxFallSpeed = 5
  20. local jumpCoyoteTime = 0
  21. local jumpMaxHeight = 20
  22. local jumpVariableHeight = true
  23. local jumpGravity = 0.7
  24. function visualizeJumpParams()
  25. circ(10, 100, 2, 5)
  26. for xpos=1,100 do
  27. ypos=0
  28. end
  29. end
  30. function TIC()
  31. if btn(0) then y=y-1 end
  32. if btn(1) then y=y+1 end
  33. if btn(2) then x=x-1 end
  34. if btn(3) then x=x+1 end
  35. cls(13)
  36. print("HELLO WORLD!",84,84)
  37. t=t+1
  38. end
  39. -- <TILES>
  40. -- 001:eccccccccc888888caaaaaaaca888888cacccccccacc0ccccacc0ccccacc0ccc
  41. -- 002:ccccceee8888cceeaaaa0cee888a0ceeccca0ccc0cca0c0c0cca0c0c0cca0c0c
  42. -- 003:eccccccccc888888caaaaaaaca888888cacccccccacccccccacc0ccccacc0ccc
  43. -- 004:ccccceee8888cceeaaaa0cee888a0ceeccca0cccccca0c0c0cca0c0c0cca0c0c
  44. -- 017:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec
  45. -- 018:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee
  46. -- 019:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec
  47. -- 020:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee
  48. -- </TILES>
  49. -- <WAVES>
  50. -- 000:00000000ffffffff00000000ffffffff
  51. -- 001:0123456789abcdeffedcba9876543210
  52. -- 002:0123456789abcdef0123456789abcdef
  53. -- </WAVES>
  54. -- <SFX>
  55. -- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
  56. -- </SFX>
  57. -- <PALETTE>
  58. -- 000:1a1c2c5d275db13e53ef7d57ffcd75a7f07038b76425717929366f3b5dc941a6f673eff7f4f4f494b0c2566c86333c57
  59. -- </PALETTE>