Author Topic: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire  (Read 15137 times)

0 Members and 2 Guests are viewing this topic.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #30 on: February 18, 2012, 03:12:38 am »
hoffa, could anything done with Ndless Lua extensions to improve the engine?
An alternative to the default key press detection?
Scrolling?
A wrapper to nRGBlib's drawTile8Multicolors()?
Ndless.me with the finest TI-Nspire programs

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #31 on: February 18, 2012, 04:32:45 am »
Those things definitely could be used, but maybe we could try to improve the functions/event stuff TI made, so we keep compatibility.
I guess this is a bit more complex, but it might be worth the try :D

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #32 on: February 18, 2012, 09:48:02 am »
[offtopic]
hoffa, I wonder why you have the North Korea propaganda poster ???
[/offtopic]
dang, I really have to learn Lua X.x
Sig wipe!

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: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #33 on: February 19, 2012, 02:58:20 am »
EDIT Weird I don't notice much of a frame difference. Is it just due to the getkey speed limitation and lack of smooth character movement?
Actually I just noticed that that TNS used the timer to refresh the screen every 0.01s (I was measuring the FPS), rather than updating after moving Link (I uploaded again and updated the link). I think why it doesn't seem to be that much faster is because of the key repeat limitation indeed. Also if I had used a map with loads of sprites you would have seen a huge improvement, but even now it should be quite a bit more responsive.
You should make a demo where the character gradually moves from a tile to another like in some RPGs. I wonder how smooth it would be on-calc.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #34 on: February 19, 2012, 05:36:12 am »
I did this: a smooth tile by tile movement a la Pokemon, I thought that would be hard to code, but no!

I made something like this
Code: [Select]
If getkey
Set movement distance in one var
End
Else
Move by one pixel along the direction
Decrease the movement variable

The trick is to define movement if only the movements variables (not the positions) are null.

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: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #35 on: February 19, 2012, 05:38:29 am »
In Lua you mean? Because the issue in Nspire Lua (for now) is that there could possibly be some delay between each moves. It would be nice to test, but if the character moves smoothly between tiles, but stops for 0.1 second between every tile, it probably won't look great unless you have a walking animation where your sprite does two step between each tile and the animation shows him stop for a bit in the middle of a tile.
« Last Edit: February 19, 2012, 05:39:23 am by DJ_O »

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #36 on: February 19, 2012, 06:28:16 am »
Made That with axe, but should be easily portable...

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #37 on: February 19, 2012, 09:05:01 am »
Well, what I did in my bombermaze thing is move the character 4px (or a bit more) each time you press.
But this is done smoothly, using the timer. So, it feels quite responsive and looks good :)

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Owl — A fast, lightweight, and flexible game engine for the TI-Nspire
« Reply #38 on: March 09, 2012, 05:50:12 am »
Oh wow didn't notice there were new posts here. Owl is on hold while I work on the SDL port, so don't expect any updates right now.

hoffa, could anything done with Ndless Lua extensions to improve the engine?
An alternative to the default key press detection?
Scrolling?
A wrapper to nRGBlib's drawTile8Multicolors()?
I think I'll keep this project as TI-Nspire's official Lua only.
« Last Edit: December 04, 2024, 07:39:57 am by hoffa »