Author Topic: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library  (Read 140674 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #210 on: May 15, 2012, 01:27:25 pm »
Can you share the file ? :P

edit : whenever it's done :D
« Last Edit: May 15, 2012, 01:27:39 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #211 on: May 16, 2012, 11:58:57 am »
I hardcoded (using a simple script) the map data in the program and compiled it. Magic happened:
Spoiler For Spoiler:
I've attached the game here in my post. I'd appreciate it if someone with a CX could try it (just dump the whole folder in the Examples folder on the TI-Nspire) and tell me how it runs. Even better would be to upload a video about it. If you have a Touchpad/Clickpad you can try it too, but the games' colors are quite dark; I couldn't see much (that made me think of a function that inverts the palette...hmm).

The controls are CTRL, tab, arrow keys (player 1) and 8/2/4/6, enter (player 2). Yes there's 2 player mode also.
I tried it on my CX, then with one of my friend, we couldn't stop playing in two player mode :P
However, would it be possible to remap the keys for the first player (or maybe the two players) ? Because the Touchpad sucks a lot.
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 hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #212 on: May 16, 2012, 02:15:59 pm »
I hardcoded (using a simple script) the map data in the program and compiled it. Magic happened:
Spoiler For Spoiler:
I've attached the game here in my post. I'd appreciate it if someone with a CX could try it (just dump the whole folder in the Examples folder on the TI-Nspire) and tell me how it runs. Even better would be to upload a video about it. If you have a Touchpad/Clickpad you can try it too, but the games' colors are quite dark; I couldn't see much (that made me think of a function that inverts the palette...hmm).

The controls are CTRL, tab, arrow keys (player 1) and 8/2/4/6, enter (player 2). Yes there's 2 player mode also.
I tried it on my CX, then with one of my friend, we couldn't stop playing in two player mode :P
However, would it be possible to remap the keys for the first player (or maybe the two players) ? Because the Touchpad sucks a lot.

What keys would you suggest? I admit my touchpad is crap too (feels very unresponsive and soft).

EDIT: I'll make it touchpad and/or numpad in single player, and only touchpad in co-op.
« Last Edit: May 16, 2012, 02:20:07 pm by hoffa »

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #213 on: May 16, 2012, 02:28:57 pm »
EDIT: I'll make it touchpad and/or numpad in single player, and only touchpad in co-op.
Good idea :)

What keys would you suggest? I admit my touchpad is crap too (feels very unresponsive and soft).
Else, you could also use the numpad for player one and some of the bottom keys for the second player, like I for up, W for down, ',' for left, R for right and Space to shoot ?

Or something even better would be to make several key_config external files (like the ones we must put in Examples) that the game would load, and according to which one we have, the key configuration is not the same. But that may be a bit annoying to do for you :-\
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 hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #214 on: May 16, 2012, 02:47:38 pm »
What keys would you suggest? I admit my touchpad is crap too (feels very unresponsive and soft).
Else, you could also use the numpad for player one and some of the bottom keys for the second player, like I for up, W for down, ',' for left, R for right and Space to shoot ?

Or something even better would be to make several key_config external files (like the ones we must put in Examples) that the game would load, and according to which one we have, the key configuration is not the same. But that may be a bit annoying to do for you :-\
I'm not sure if playing with the tiny buttons is more comfortable than with the touchpad. I think I'll keep it touchpad/numpad in the first version at least, and later I'll look into external config files if I have the time. Meanwhile, here's a screenshot of the improved version I'm working on:


Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #215 on: May 16, 2012, 03:31:26 pm »
I'm not sure if playing with the tiny buttons is more comfortable than with the touchpad. I think I'll keep it touchpad/numpad in the first version at least, and later I'll look into external config files if I have the time.
Yeah, I thought it would be hard too but in fact, once you placed your fingers on the keys, you don't move them a lot in this type of game. Moreover, the touchpad doesn't allow to push on two directionnal keys at a time (this is why my friend beat me the third time :P) and doesn't allow you to keep two fingers on the "buttons" :(

Also,

* Hayleia wants O.O
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 hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #216 on: May 16, 2012, 03:42:45 pm »
I'm not sure if playing with the tiny buttons is more comfortable than with the touchpad. I think I'll keep it touchpad/numpad in the first version at least, and later I'll look into external config files if I have the time.
Yeah, I thought it would be hard too but in fact, once you placed your fingers on the keys, you don't move them a lot in this type of game. Moreover, the touchpad doesn't allow to push on two directionnal keys at a time (this is why my friend beat me the third time :P) and doesn't allow you to keep two fingers on the "buttons" :(
Maybe you're right. Being unable to move diagonally is a good argument actually, so I guess I'll do it numpad for player 1 and keyboard for player 2. It'll leave the Clickpad users out for (playable) two player mode, but once I release nSDL 0.3.1 there'll be diagonal touchpad key support too, which will probably make me update this and switch back.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #217 on: May 16, 2012, 03:49:58 pm »
Thanks for taking my arguments in consideration :)

...but once I release nSDL 0.3.1 there'll be diagonal touchpad key support too, which will probably make me update this and switch back.
Or make those config files :P
But don't worry, there is no hurry ;)
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 cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #218 on: May 16, 2012, 09:25:39 pm »


This is looking better than ever! I wants.

Offline Alex

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +3/-0
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #219 on: May 17, 2012, 10:34:54 am »
Wahou! Cool! I wants.

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #220 on: May 18, 2012, 06:40:45 pm »
The game has now been released: http://ourl.ca/16186

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #221 on: May 18, 2012, 11:11:16 pm »
It looks awesome, but... nSDL programs are huge!
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #222 on: May 19, 2012, 05:34:14 am »
Yeah, the overwhelming majority of the space is taken by the 792x445 bitmap sprite sheet. As I mentioned in the post, it could have been considerably smaller if I had the time to rearrange the sprite sheet (it would require to change all of the hardcoded values in the code), as there's a lot of empty space in it. I will probably at some point rearrange it, which should reduce the size by at least twice.

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: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #223 on: May 22, 2012, 08:33:38 pm »
Wow great stuff again. I really hope when nSDL comes out that it will help bringing an influx of new Ndless games to the community.

Offline piexil

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +2/-0
  • Guys, we have a weenie hut jr. over here
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #224 on: May 23, 2012, 02:41:20 pm »
I wonder if a port of Dosbox would be possible using this.
IIRC It uses SDL

But, I think the lowest thing it's been compiled for is ARMv6/ARM11, and IIRC the nspire is ARM9/v5.
I wonder how the speed of emulating a 286/386 Real would run, then again someone did make an x86 emulator for the DS.
Sorry for going a little off-topic :$
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/d9b48a7b7395142b.png" alt="NerdTests.com says I'm a Highly Dorky Nerd King.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>