Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 00:52:55 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: Jumper [subject to change] -  (Read 1345 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« on: 18 May, 2012, 03:40:31 »
+1

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!  Smiley

Edit: I just noticed how choppy the screenshot was. It's not actually that bad in the game Tongue


* canabalt1.gif (742.8 KB, 320x240 - viewed 257 times.)
« Last Edit: 21 May, 2012, 03:53:35 by cyanophycean314 » Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #1 on: 18 May, 2012, 04:45:59 »
0

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?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 19:47:13
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765

Total Post Ratings: +151

View Profile
« Reply #2 on: 18 May, 2012, 15:08:26 »
0

Nice start, good luck with this Smiley
Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
Chockosta
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 18:41:08
Date Registered: 03 June, 2011, 20:14:17
Location: France
Posts: 440


Total Post Ratings: +159

View Profile
« Reply #3 on: 18 May, 2012, 19:52:05 »
0

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...
Logged

Chockosta (Loic Pujet) - Sorry for my poor English...
Look at my projects :
in C code : Periodic table, Space invaders, Fall, Snake, Minesweeper, nCraft (WIP)
in Lua : Snake, Space invaders, Bobby Carrot, Minesweeper, Mazes 3D, nSpaint, FreeCell, Tiny3D-Viewer, CubeField, Gravity Guy
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:53:52
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #4 on: 18 May, 2012, 20:00:30 »
0

Well, not everyone posts their projects on a forum Wink
Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #5 on: 19 May, 2012, 15:12:46 »
0

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...
Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #6 on: 21 May, 2012, 03:44:28 »
+1

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?


* canabalt_screen.PNG (4.2 KB, 320x240 - viewed 211 times.)
« Last Edit: 21 May, 2012, 03:53:02 by cyanophycean314 » Logged

aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 23:59:53
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3118


Total Post Ratings: +120

View Profile
« Reply #7 on: 21 May, 2012, 12:50:02 »
0

Shocked nice Cheesy
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #8 on: 21 May, 2012, 19:01:21 »
0

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 Smiley
Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #9 on: 21 May, 2012, 21:38:25 »
0

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! Cheesy
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #10 on: 21 May, 2012, 21:57:19 »
0

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 Smiley.

Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #11 on: 22 May, 2012, 03:39:43 »
+2

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!

* jumper.tns (2.15 KB - downloaded 29 times.)
Logged

someone
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: Yesterday at 19:57:34
Date Registered: 12 January, 2012, 19:07:23
Posts: 48


Total Post Ratings: +9

View Profile
« Reply #12 on: 22 May, 2012, 23:33:11 »
0

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
Logged
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #13 on: 22 May, 2012, 23:40:12 »
0

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.
Logged

Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #14 on: 23 May, 2012, 08:19:38 »
0

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 Smiley

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

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.386 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.