Author Topic: Nspire Lua Games!  (Read 29135 times)

0 Members and 2 Guests are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Nspire Lua Games!
« Reply #15 on: April 17, 2011, 04:02:56 pm »
You don't need a CX for this, fortunately, just get 3.0 for the reg. nspire.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Nspire Lua Games!
« Reply #16 on: April 17, 2011, 05:02:28 pm »
Well, I don't have an Nspire at all.  As for the CX, the colors are just too enticing...
ld a, 0
ld a, a

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: Nspire Lua Games!
« Reply #17 on: April 17, 2011, 05:26:48 pm »
Lua supports grayscale? O.O

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Nspire Lua Games!
« Reply #18 on: April 17, 2011, 05:27:36 pm »
Lua has setColorRGB(red, green, blue) Values range from 0 to 255.

;)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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: Nspire Lua Games!
« Reply #19 on: April 17, 2011, 05:31:15 pm »
Wow awesome. A big step above TI-BASIC. I remember working on grayscale RPGs in BASIC on the 83+ before and we were forced to use assembly libraries using hooks to get grayscale and it still was kinda flickery.

Maybe I could eventually port my old Reuben Quest games to the Nspire if I ever got to learn Lua. ;D


Offline GB

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 147
  • Rating: +15/-3
  • Use Microhard WindOS today!
    • View Profile
    • MICROHARD CORPORATION
Re: Nspire Lua Games!
« Reply #20 on: April 17, 2011, 05:44:22 pm »
I remember trying Reuben Quest once. It would definitely do much better on the TI-Nspire than it did on the 84.
« Last Edit: April 17, 2011, 05:44:44 pm by GB »
TI-86 USER
CASIO PRIZM USER
TI-NSPIRE USER
TI-84 PLUS SILVER EDITION USER
TI-83 PLUS USER

PROJECTS:

Microhard Paint
http://www.omnimaga.org/index.php?topic=11915.0

TI-Nspire Character Map
http://www.omnimaga.org/index.php?topic=7725.msg142555#msg142555

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: Nspire Lua Games!
« Reply #21 on: April 17, 2011, 06:08:44 pm »
Actually on the 84+ it could have done much better than it did back then, trust me. However, it was created 6 months too early...
« Last Edit: April 17, 2011, 06:09:08 pm by DJ_O »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Nspire Lua Games!
« Reply #22 on: April 20, 2011, 03:30:46 pm »
Hum ... I think there is only one thing missing in all those games : incompatibility with the nspire-player we use at TI-Bank.fr to preview before downloading the TNS.

This is why I made a common Button class relatively easy to implement without changing lots of lines.
http://levak.free.fr/ftp/nspire/Make3D/Buttons.lua

If you don't want the keypad to appear oncalc, just add a "plaform.window:width() > 320" or something.

=)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

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: Nspire Lua Games!
« Reply #23 on: April 20, 2011, 03:33:12 pm »
Yeah I remember loading some of them in the player on TI website and buttons wouldn't work. Only the mouse would. D:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire Lua Games!
« Reply #24 on: April 20, 2011, 04:10:39 pm »
apcalc, you should add Direct 4 to the topic :D

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Nspire Lua Games!
« Reply #25 on: April 20, 2011, 05:13:59 pm »
Also, DJ, there's a Lua command, that tests for a color display, returning (I think) 1 if it's a CX and 0 for non-CX. I'm betting the hardware is pretty similar too, besides the screen and RAM.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Nspire Lua Games!
« Reply #26 on: April 20, 2011, 05:44:42 pm »
I discovered missing events inside the OS itself (we just had to open a hex editor to see what was invisible)
http://hackspire.unsads.com/wiki/index.php/Lua_Programming
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

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: Nspire Lua Games!
« Reply #27 on: April 20, 2011, 11:32:06 pm »
apcalc, you should add Direct 4 to the topic :D
Actually it's Connect 4, not direct 4.

And thanks for the info guys. I shall check that page if I ever learn Lua.

Offline Jimmy

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: Nspire Lua Games!
« Reply #28 on: April 24, 2011, 07:41:17 am »
 ;D I hope to see the classical battle tank on Nspire!
3 cheers for LUA!!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire Lua Games!
« Reply #29 on: April 24, 2011, 07:45:17 am »
;D I hope to see the classical battle tank on Nspire!
3 cheers for LUA!!

Welcome to Omnimaga, I see that's your first post. Perhaps you'd like to create a topic here.