Author Topic: Jumper [subject to change]  (Read 9429 times)

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Jumper [subject to change]
« on: May 17, 2012, 09:40:31 pm »
Well, Lua development certainly has slowed down a bit. Anyways, I now introduce my latest project, Runner Jumper! It's kinda based off Canabalt. You run across the rooftops and go as far as possible. Although you don't see in the screenie, it gets faster as you go on.

Hiscore actually works with this program. I have been programming on-calc, so the program is being run on nspire_emu with oclua.

I'm probably going to add a better, moving sprite. Dimensions are 10*15 if you're interested.

Screenie is attached and suggestions are welcome!  :)

Edit: I just noticed how choppy the screenshot was. It's not actually that bad in the game :P
« Last Edit: May 20, 2012, 09:53:35 pm by cyanophycean314 »

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: Runner [subject to change]
« Reply #1 on: May 17, 2012, 10:45:59 pm »
Sounds pretty cool. Are the stick-based graphics due to speed issues or are you planning to switch to sprites/tiles in the future for buildings?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Runner [subject to change]
« Reply #2 on: May 18, 2012, 09:08:26 am »
Nice start, good luck with this :)
Ndless.me with the finest TI-Nspire programs

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Runner [subject to change]
« Reply #3 on: May 18, 2012, 01:52:05 pm »
Good luck with this project!

Lua developpement has indeed slowed down, and that's sad.
I hope there will be a lot of new projects during summer vacation...

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Runner [subject to change]
« Reply #4 on: May 18, 2012, 02:00:30 pm »
Well, not everyone posts their projects on a forum ;)

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Runner [subject to change]
« Reply #5 on: May 19, 2012, 09:12:46 am »
Sounds pretty cool. Are the stick-based graphics due to speed issues or are you planning to switch to sprites/tiles in the future for buildings?
Yeah, the graphics are going to be upgraded sometime...

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Jumper [subject to change]
« Reply #6 on: May 20, 2012, 09:44:28 pm »
Well, here's a version I put together with some sprites. It looks pretty nice, but the program runs noticeably slower... Any ideas on making it faster?
« Last Edit: May 20, 2012, 09:53:02 pm by cyanophycean314 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Jumper [subject to change]
« Reply #7 on: May 21, 2012, 06:50:02 am »
:o nice :D
I'm not a nerd but I pretend:

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Jumper [subject to change]
« Reply #8 on: May 21, 2012, 01:01:21 pm »
Do you create the view of the buildings with rectangles, or is it an image? because if it were an image it would be quite slowing down indeed :)

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Jumper [subject to change]
« Reply #9 on: May 21, 2012, 03:38:25 pm »
Right now I just use some images, but they're tiled. I just realized that the picture is simple enough to just use rectangles! Yay! :D

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: Jumper [subject to change]
« Reply #10 on: May 21, 2012, 03:57:19 pm »
When displaying sprites, do you redraw them every frame or do you just shift the screen around and only draw the missing parts? The latter, if possible in Lua, might be faster. Also this looks nice :).


Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Jumper [subject to change]
« Reply #11 on: May 21, 2012, 09:39:43 pm »
Attached is an early, but not fully finished build. It has the basic running and stuff so you can has some fun.

I might include features of Canabalt like cranes, billboards, birds?

The falling platforms, bombs, and boxes will be more difficult...

Hope you enjoy!

Offline someone

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +9/-0
    • View Profile
Re: Jumper [subject to change]
« Reply #12 on: May 22, 2012, 05:33:11 pm »
Well, here's a version I put together with some sprites. It looks pretty nice, but the program runs noticeably slower... Any ideas on making it faster?
This page might be able to help you making it a bit faster by changing some parts of the code:
http://trac.caspring.org/wiki/LuaPerformance

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Jumper [subject to change]
« Reply #13 on: May 22, 2012, 05:40:12 pm »
That is a pretty interesting article, but yeah I fixed the speed problem. Drawing rectangles is a LOT faster than images...

I plan on adding parallax scrolling in the background for depth, that'll probably be the easiest feature to add right now.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Jumper [subject to change]
« Reply #14 on: May 23, 2012, 02:19:38 am »
Well, here's a version I put together with some sprites. It looks pretty nice, but the program runs noticeably slower... Any ideas on making it faster?
This page might be able to help you making it a bit faster by changing some parts of the code:
http://trac.caspring.org/wiki/LuaPerformance

that's just great, thanks for that link :)

and yeah, rectangles are like suuuuperfast in comparison with images, or better, images are suuuuper slow