Author Topic: Doodle Jump in Lua  (Read 11830 times)

0 Members and 2 Guests are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Doodle Jump in Lua
« Reply #15 on: December 02, 2012, 11:54:37 am »
Yeah, there is a timer issue on 3.2, which that fixes :
Code: [Select]
-- fix of TI Bug....
local tstart = timer.start
function timer.start(ms)
    if not timer.isRunning then
        tstart(ms)
    end
    timer.isRunning = true
end
local tstop = timer.stop
function timer.stop()
    timer.isRunning = false
    tstop()
end
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Doodle Jump in Lua
« Reply #16 on: December 02, 2012, 02:49:04 pm »
But what does it fix, or is it too technical/unknown and it is just known this fixes it?

Some people need a high five in the face... with a chair.
~EC

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Doodle Jump in Lua
« Reply #17 on: December 02, 2012, 03:11:29 pm »
Well, I'm not sure why it acts that way, but they probably chanced its internals and since then, when you call a timer.start() while there was another one running, it simply didn't start.

The fix here monitors when ther is a call to timer.start and stop and calls the stop() before starting another :P

We have reported that bug :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Doodle Jump in Lua
« Reply #18 on: December 02, 2012, 05:09:07 pm »
Just the weird part is that I have never encountered this bug :P

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Doodle Jump in Lua
« Reply #19 on: December 03, 2012, 02:18:18 pm »
All right, Version 1.4 (beta) :

- Better platforms generation (:P)
- Better collisions detections
- Enemies !

(Still has the weird bug I've spent a few hours on but I can't understand- basically, the doodle will keep going up without bouncing, sometimes, when it goes through a jumpable platform, without bouncing on it first)

« Last Edit: December 03, 2012, 02:18:37 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Doodle Jump in Lua
« Reply #20 on: December 03, 2012, 04:04:55 pm »
The highscore always resets when restarting the game on 3.1 (at least for me). And did you notice that in not constant scrolling mode it's almost impossible because the jump heights are much too short if the level doesn't go down while you're going up?

Also lol, I thought it was intended that you could jump without bouncing on the platforms :P

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Doodle Jump in Lua
« Reply #21 on: December 03, 2012, 07:00:00 pm »
The highscore always resets when restarting the game on 3.1 (at least for me). And did you notice that in not constant scrolling mode it's almost impossible because the jump heights are much too short if the level doesn't go down while you're going up?

Also lol, I thought it was intended that you could jump without bouncing on the platforms :P

Hmm, weird, the scores should be saved.
I'll redo it in pure lua anyway (for now it's a basic variable, but there is a save/resotre thing in lua, kinda made for these things :D)

And yeah, about the constant scrolling, it's actually doable kindof on the software, I haven't tested that mode on-calc :D
Maybe I should indeed make it jump higher :P
However, you can trigger this mode if you ever find yourself stuck in the normal mode a little bit too low :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation