Author Topic: [Nspire] Pixel Escape -- a copter-like game written in Lua  (Read 23799 times)

0 Members and 1 Guest are viewing this topic.

Offline GB

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 147
  • Rating: +15/-3
  • Use Microhard WindOS today!
    • View Profile
    • MICROHARD CORPORATION
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #15 on: June 11, 2011, 06:15:56 pm »
What is the picture on the title screen?
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 hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #16 on: June 11, 2011, 06:36:08 pm »
What is the picture on the title screen?
It should be the exit of a cave seen from the inside. :°

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] Pixel Escape -- a copter-like game written in Lua
« Reply #17 on: June 11, 2011, 11:26:39 pm »
Nice I didn't see the download link earlier. I'll try the game on my calc when I get some time.

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #18 on: June 12, 2011, 02:52:41 am »
HOLY-
* BrownyTCat encountered a buffer overflow.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #19 on: June 12, 2011, 05:48:18 am »
I've tuned the settings (speed, gravity, ranks, the speed at which the size of the gap decreases, and now it's much easier to go up, so no need to furiously hammer the up key anymore), changed the way the cave is generated and modified some minor things. Now the cave has things like these (just slopes I guess):

Also now the game doesn't lose the high score as soon as you close the document. Now when you do quit the game, it should ask you whether or not you want to save the document, pressing yes will save the high score. The new download link should be there now.
« Last Edit: June 12, 2011, 05:50:29 am by hoffa »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #20 on: June 12, 2011, 05:50:09 am »
Do you use a var.store to 'externally' save the score to a math variable ?
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #21 on: June 12, 2011, 05:54:09 am »
Do you use a var.store to 'externally' save the score to a math variable ?
Yes, but I tried accessing it externally without success (which is a good thing). Maybe it creates its own namespace only accessible through the document itself.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #22 on: June 12, 2011, 05:59:33 am »
Indeed, the variable is only accessible from the current document (you can access it when adding a calculator page and typing the name of the variable)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #23 on: June 12, 2011, 02:19:39 pm »
Also now the game doesn't lose the high score as soon as you close the document. Now when you do quit the game, it should ask you whether or not you want to save the document, pressing yes will save the high score. The new download link should be there now.
That's a neat way to do that. :)  It sounds cool. :D

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #24 on: June 13, 2011, 05:12:04 am »
Great !
This game looks very nice, congrats !
(But the picture on the title screen must be quite heavy and not really useful)

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #25 on: June 13, 2011, 05:37:04 am »
Great !
This game looks very nice, congrats !
(But the picture on the title screen must be quite heavy and not really useful)
Well, the picture on the title screen is the title screen picture after all. It might be heavy as raw text, but once it is processed and compressed by TI's tool, it gets very light. The "not really useful" is more subjective than anything else, some people might prefer to have a text-based game without graphics at all. They could just give out all those commercial games you see in shops in a small cardboard box; the artwork doesn't add anything to the game. I personally like to have a title screen, I guess I must be a perfectionist.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #26 on: June 13, 2011, 01:48:29 pm »
Yes it does look good, but it's only decorative.
Of course I prefer games with wonderful graphics rather than text-only games.
The picture is heavier than the code, and I think that's strange... But this is not a big problem.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #27 on: June 13, 2011, 02:17:40 pm »
Okay new update. First of all I changed that depressive title screen into a less depressive one (long live monochrome displays! :3), and now the high score shows up there also. Then I added the "floating walls" to spice up the game, just cruising straight forward in the cave won't be enough anymore. I fine-tuned the settings and cleaned up the chamber of horrors (i.e. source code) into a polished piece of art. Also some slight performance improvements were made. Download link's there now.

Yes it does look good, but it's only decorative.
Of course I prefer games with wonderful graphics rather than text-only games.
The picture is heavier than the code, and I think that's strange... But this is not a big problem.
Well the whole point of graphics is that it's just eye candy. A well-decorated and good-looking dish is always better than the same food in a rusty old barrel.
« Last Edit: June 13, 2011, 02:20:14 pm by hoffa »

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] Pixel Escape -- a copter-like game written in Lua
« Reply #28 on: June 13, 2011, 02:48:17 pm »
This looks nice! Also I like how you use different text fonts for the numbers at the bottom.

Also since the title screen is 16 level grayscale in the first screenshot, how large is it on calc? Somehow I think it must be larger than the entire game, but I could be wrong O.O

EDIT: Bug report, I can only press the up arrow once. If I release the key, afterward it never detects anymore arrow key holding down again so after my first jump I fall down and die, no matter if I keep the up arrow pressed. ???
« Last Edit: June 13, 2011, 02:53:53 pm by DJ_O »

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: [Nspire] Pixel Escape -- a copter-like game written in Lua
« Reply #29 on: June 13, 2011, 02:54:17 pm »
This looks nice! Also I like how you use different text fonts for the numbers at the bottom.

Also since the title screen is 16 level grayscale in the first screenshot, how large is it on calc? Somehow I think it must be larger than the entire game, but I could be wrong O.O
Well once the game has been saved, it takes about 16K of space, which is practically nothing. The ZIP compression their format uses does a good job in compressing the picture (and anything for that matter), so no worries there.