Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: cyanophycean314 on May 17, 2012, 09:40:31 pm

Title: Jumper [subject to change]
Post by: cyanophycean314 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
Title: Re: Runner [subject to change]
Post by: DJ Omnimaga 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?
Title: Re: Runner [subject to change]
Post by: ExtendeD on May 18, 2012, 09:08:26 am
Nice start, good luck with this :)
Title: Re: Runner [subject to change]
Post by: Chockosta 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...
Title: Re: Runner [subject to change]
Post by: Jim Bauwens on May 18, 2012, 02:00:30 pm
Well, not everyone posts their projects on a forum ;)
Title: Re: Runner [subject to change]
Post by: cyanophycean314 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...
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 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?
Title: Re: Jumper [subject to change]
Post by: aeTIos on May 21, 2012, 06:50:02 am
:o nice :D
Title: Re: Jumper [subject to change]
Post by: Nick 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 :)
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 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
Title: Re: Jumper [subject to change]
Post by: DJ Omnimaga 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 :).

Title: Re: Jumper [subject to change]
Post by: cyanophycean314 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!
Title: Re: Jumper [subject to change]
Post by: someone 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
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 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.
Title: Re: Jumper [subject to change]
Post by: Nick 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
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 on May 24, 2012, 10:19:13 pm
New features added


School's out here! Yay!

I've played around with falling platforms. They refuse to cooperate  :(
Title: Re: Jumper [subject to change]
Post by: blfngl on September 06, 2012, 09:31:04 pm
Nice! Just a question, can you make the legs move? Not asking you to do this just wondering if it was possible :P
Title: Re: Jumper [subject to change]
Post by: annoyingcalc on September 06, 2012, 09:35:13 pm
erm necropost? that post was from may

EDIT: if I could have the source code I might add  leg moving might
Title: Re: Jumper [subject to change]
Post by: blfngl on September 07, 2012, 08:23:32 am
Hahaha I was just bored :3 so I decided to post something here. Sounds good though. Is there a possibility of reversing Luna's .lua --> .tns to obtain the Lua file?
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 on September 07, 2012, 05:12:09 pm
Haha, I plan on releasing a version soon actually. I've added a few improvements like a prettier title screen and better formulas (I think). As for the legs, I am looking into that possibility, it would be rather easy to implement. However, I seem to have misplaced all the sprites  for the character. :-\ I'll try to dig them up, they're from Canabalt's open source code.

Hahaha I was just bored :3 so I decided to post something here. Sounds good though. Is there a possibility of reversing Luna's .lua --> .tns to obtain the Lua file?
There is actually a tool to convert from .tns to .lua. ephan (aka Munchor) made one somwhere...
Title: Re: Jumper [subject to change]
Post by: Alex on September 08, 2012, 06:01:08 am
Good work !
Title: Re: Jumper [subject to change]
Post by: Wayne on September 12, 2012, 01:18:09 pm
Hahaha I was just bored :3 so I decided to post something here. Sounds good though. Is there a possibility of reversing Luna's .lua --> .tns to obtain the Lua file?
There is actually a tool to convert from .tns to .lua. ephan (aka Munchor) made one somwhere...
You can look up the lua code with Lua Editor in the TI Nspire Software ;)

BTW: Nice Game
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 on September 21, 2012, 10:17:33 pm
Haven't really worked too much on it. School's started. However, here's a nice update. The sprite moves and I think I added the title screen in this version.
Title: Re: Jumper [subject to change]
Post by: Chockosta on September 22, 2012, 05:24:41 am
This looks awesome, but I think it is too easy...
I did more than 80,000 in my second trial.
Title: Re: Jumper [subject to change]
Post by: cyanophycean314 on September 22, 2012, 11:10:40 am
This looks awesome, but I think it is too easy...
I did more than 80,000 in my second trial.
Ha yes, balancing is very time consuming... What made Canabalt so hard was the other obstacles like fine mist, falling buildings, windowed areas and stuff. I'll try to implement those windowed buildings, but falling buildings have already given me lots of trouble.
Thanks though!  :)