Author Topic: Random Lua games I have  (Read 3809 times)

0 Members and 1 Guest are viewing this topic.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Random Lua games I have
« on: December 06, 2012, 05:18:07 pm »
Hi
So I was looking through my calc files for something, and I came across all these Nspire Lua games I made several months ago.
They are not really great, and don’t have that much complex code to it, but I thought some of you might like to spend a minute and play it, so here you go.

Dodger
Dodge asteroids as you also try to not go too high and not too hit the ground. When you reach 1000 points you lose your stage 1 rockets and the gravity increases. When you reach 2000 you lose your stage 2 rockets and the gravity increases.


Paint
Paint in any color in three sizes. Of course, you can make better pictures than this.


Trondrive
Drive a tron lightbike, and try to get your light ribbon to hit the other bikes. Not really fun, but it is interesting that it was designed to that you hold the calc like a psp and use the 5 and 2 keys to play.


These were the only ones that I thought were notable, so here you go.
« Last Edit: December 06, 2012, 05:19:39 pm by Rhombicuboctahedron »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Random Lua games I have
« Reply #1 on: December 07, 2012, 02:07:27 am »
That's some pretty cool scripts, very nice:)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Random Lua games I have
« Reply #2 on: December 07, 2012, 02:33:43 am »
I like the paint thingy :3 I really need to go and learn some more Lua so I can continue my projects :P Shouldn't this (also) be in the Lua section (too)?

Some people need a high five in the face... with a chair.
~EC

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Random Lua games I have
« Reply #3 on: December 07, 2012, 09:37:38 am »
Great work :D

For painting, there is also NSPaint, which is very complete. I feel like you didn't know about this one before starting your paint program :P
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Random Lua games I have
« Reply #4 on: December 07, 2012, 11:44:51 am »
For painting, there is also NSPaint, which is very complete. I feel like you didn't know about this one before starting your paint program :P
Nspaint is more an advanced sprite editor for Lua programmers.
This one is better for doodling... By the way, you should add the possibility to save.

Anyway, nice programs !
But it seems that I can't play dodger... It only displays an orange "Game over"
« Last Edit: December 07, 2012, 11:45:37 am by Chockosta »

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Random Lua games I have
« Reply #5 on: December 07, 2012, 01:51:11 pm »
Great work :D

For painting, there is also NSPaint, which is very complete. I feel like you didn't know about this one before starting your paint program :P
These games were made several months before I learned of omnimaga and a few months before I learned of ticalc.
But it seems that I can't play dodger... It only displays an orange "Game over"
For dodger, because of some incorrect code, you have to press enter twice to start and restart.

Offline someone

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +9/-0
    • View Profile
Re: Random Lua games I have
« Reply #6 on: December 07, 2012, 01:56:10 pm »
For painting, there is also NSPaint, which is very complete. I feel like you didn't know about this one before starting your paint program :P
Nspaint is more an advanced sprite editor for Lua programmers.
This one is better for doodling... By the way, you should add the possibility to save.

Anyway, nice programs !
But it seems that I can't play dodger... It only displays an orange "Game over"
Changing a validation seems to fix that issue:

Code: [Select]
function on.enterKey()
    if beginning~=0 then
        over=0
        beginning=0
    end

Before, it checked if beginning was == 1, but on function on.paint(gc) it changed that variable to 2, so the validation couldn't work afterwards...

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Random Lua games I have
« Reply #7 on: December 07, 2012, 04:32:28 pm »
Thanks, but I haven’t touched the code for about 9 months. I probably won’t change anything, but thanks.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Random Lua games I have
« Reply #8 on: December 08, 2012, 02:32:11 am »
The programs look nice, great job :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!