Author Topic: Line Runner for Nspire  (Read 19477 times)

0 Members and 1 Guest are viewing this topic.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #15 on: February 19, 2012, 07:11:12 am »
Should I make the framerate constant or should I leave it as it is, sometimes 50 fps and sometimes 62?

Offline runeazn

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 191
  • Rating: +5/-3
    • View Profile
Re: Line Runner for Nspire
« Reply #16 on: February 19, 2012, 07:13:18 am »
depends if it screws the physics.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #17 on: February 19, 2012, 07:47:28 am »
I just noticed it would be much more difficult than I thought, so I'll leave it as it is.

I wonder if you will add variable platform heights, with hills and stuff, along with holes?

I think I'll first add animations, since I would have to rewrite almost everything to implement your suggestions.
« Last Edit: February 19, 2012, 09:52:37 am by Art_of_camelot »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Line Runner for Nspire
« Reply #18 on: February 19, 2012, 09:54:24 am »
No need for two separate posts so close together, so I combined them. :) For future reference, you can use the "modify" button if you just have a quick thought to add.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #19 on: February 20, 2012, 04:14:19 pm »
Sorry, I didn't notice I doubleposted.

I read that just moving the screen for scrolling and only drawing the new pixels would be faster than redrawing everything, but would I have to memcpy every line or is there a faster way?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Line Runner for Nspire
« Reply #20 on: February 20, 2012, 04:48:58 pm »
It's the good way, but use memov instead of memcpy.
Ndless.me with the finest TI-Nspire programs

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #21 on: February 21, 2012, 04:53:51 pm »
Am I right that I need two buffers for this, one for everything that I want to display and one for the parts of the screen that get shifted.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #22 on: February 23, 2012, 11:33:03 am »
I implemented the memmove scrolling and it's a bit slower, I think because it needs two buffers and has to copy both every frame :(
The old method got 1800 fps and the new one only 1450 in the emulator.

Edit: by only copying the needed parts of the buffer I get 1600 fps
« Last Edit: February 23, 2012, 11:47:49 am by lkj »

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #23 on: May 20, 2012, 03:12:48 pm »
After some months without calc programming I finally returned and continued this project  ;D

It now has an animated stick figure, but for now only when running (because I'm not very talented and slow in drawing). It probably rather looks like a walking figure than like a running one :-\

And I created a moving screenshot with Jonius7's tutorial ;)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Line Runner for Nspire
« Reply #24 on: May 20, 2012, 03:22:38 pm »
Glad to see this progressing again. :)

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Line Runner for Nspire
« Reply #25 on: May 20, 2012, 05:19:27 pm »
Wow looks really nice! I'm going to try it out right now
You just lost the game.



Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Line Runner for Nspire
« Reply #26 on: July 05, 2012, 01:15:34 pm »
This will probably be the last update on this project because it's more or less complete and I'm more interested in new ideas.
I don't remember everything I've changed, but the most important thing is that it now generates a different level every time you run it.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Line Runner for Nspire
« Reply #27 on: July 05, 2012, 09:25:22 pm »
Nice little project!  Good work! :)


Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Line Runner for Nspire
« Reply #28 on: July 05, 2012, 10:30:32 pm »
Nice job.  :)