Author Topic: [Lua] Gravity guy  (Read 15503 times)

0 Members and 1 Guest are viewing this topic.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
[Lua] Gravity guy
« on: December 15, 2011, 03:47:57 pm »
FINAL UPDATE : 14/04/2012
Spoiler For Spoiler:
Download




Moving screenshot (thanks to Jonius7). The actual game is slower...


Hi there !

Sorry if I may seem inactive, but I am in a 'non-motivation' period.
But I'm not dead (even if I only program 2 hours a week).
So my latest project is a Gravity Guy clone. It is quite fast (and really blurry on grayscale nspires)

Some screenies are attached to my post.

Note that I will change the player sprite.
And, by the way, I used linear gravity (like the original game). Should I use more realistic calculations ?
« Last Edit: April 15, 2012, 01:11:44 pm by Chockosta »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Lua] Gravity guy
« Reply #1 on: December 15, 2011, 04:31:24 pm »
Nice !!

By linear gravity, I'm not sure what you mean ...

If it looks good ingame, it's ... good enough ? :D

Approimating real gravity shouldn't be really difficult...
It could just use more cpu if calculations get called rather often...

Do you have an animated screenshot ? ;)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] Gravity guy
« Reply #2 on: December 15, 2011, 04:37:42 pm »
By linear gravity, I mean that the character doesn't accelerate while falling.
It is more arcade-like, but less realistic.

I'll do an animated screenshot when my collision engine will be finished...

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [Lua] Gravity guy
« Reply #3 on: December 15, 2011, 05:10:47 pm »
Evil, I wanted to make this :P

Looks nice :)

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] Gravity guy
« Reply #4 on: December 22, 2011, 09:05:20 am »
I finished the collision engine, and everything else.
Now I just have to create 50 levels :(
(And I haven't created the random mode)

If you want to try it, there is the current file attached. It contains 8 test levels (which are very short and not funny).
Oh, and I still haven't choosen a better sprite.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: [Lua] Gravity guy
« Reply #5 on: December 22, 2011, 09:11:21 am »
well, it look nice, and the levels are basic, but are a good example of the possibilities..
if you need help making the levels, we could help

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Lua] Gravity guy
« Reply #6 on: December 22, 2011, 09:12:11 am »
awesome, I just finished the whole thing, it's really a good game :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: [Lua] Gravity guy
« Reply #7 on: December 22, 2011, 10:28:30 am »
Can't you use the levels from the original game and slightly edit them if neccesary?
Looks nice but a moving screenie would be even better :P


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: [Lua] Gravity guy
« Reply #8 on: December 22, 2011, 12:51:56 pm »
here it i:
it runs smoother on calc (as always xp)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: [Lua] Gravity guy
« Reply #9 on: December 22, 2011, 01:27:28 pm »
nice.  I like it with linear gravity as the original.  Other wise it's too hard to judge when to jump.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Lua] Gravity guy
« Reply #10 on: December 22, 2011, 01:29:38 pm »
Chokosta ->  When are you going to upload it on TI-Planet ? :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [Lua] Gravity guy
« Reply #11 on: December 22, 2011, 02:01:50 pm »
Chockosta : alpha exists in TI-Image :o
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: [Lua] Gravity guy
« Reply #12 on: December 23, 2011, 08:49:52 am »
Interesting project, as usual.
It reminds me of a game I liked on TI-68k calculators, many years ago, even if the levels of the final version were too hard for my taste (I kept the beta version): bobti89's "grav", http://j.petitjean.perso.neuf.fr/bobti89/programmes_ti.php .
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] Gravity guy
« Reply #13 on: December 23, 2011, 09:40:43 am »
Adriweb :
I'll upload it when at least 20 levels will be done.

Levak :
I know, the grey square is just here for developpement purposes (collision box)

By the way, I'm now at my grandparent's for christmas, and I didn't bring any of my Nspires. So no more updates during this week...

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55872
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: [Lua] Gravity guy
« Reply #14 on: December 25, 2011, 10:24:10 pm »
Looks very nice. You should make the player sprite transparent.