Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Adriweb

Pages: 1 ... 82 83 [84] 85 86 ... 115
1246
News / Native Lua Extensions thanks to the latest Ndless update !
« on: February 16, 2012, 06:21:01 pm »
The latest Ndless update provides a wonderful we've been excited about for some time now : Third-Party Lua Extensions !

You can see the news article on TI-Planet.org there, or right here directly translated in English :


Hi all, Today is a great day (like many others these days...)
You know already that, on the Nspire, it was possible to program in:

  • Basic : the more integrated with the OS, with great math interactions. However, it is slow and has few graphics possibilities etc..
  • Lua : Since OS 3, TI added this interpreted language that fits the Nspire very well and provides great improvements over the Basic, thanks to strong performances in both graphic and power etc.. Lua is known to be easy to use and flexible in terms of language itself.
  • C / Asm : Thanks to jailbreak Ndless. This is the most powerful because it directly controls the calculator's processor (ARM9). However, it is quite difficult to master especially for beginners.

Now Extended (Ndless author) offers to combine the power of C with the simplicity of Lua, with the "xLua" (for "eXtendedLua ", but it is I who named like that, Extended did not specify a name. ... )
I am announcing today the appearance of native extensions on Lua!

Mix native routines with your Lua scripts (using Lua modules)!
Isn't that awesome ?

To take advantage of this new feature, download the latest version of Ndless (see end of this post), and once installed, transfer samples/luaextdemo.tns to a folder named ' /ndless/luaext 'on your TI-Nspire, and run runluaextdemo.tns to have a simple example (prints "hello world" on the console). Note by the way the return of "print ()" (sound output is back !) that TI was removed in version 3.1 ... 
 
Writing extensions is fairly simple and is based on the C API standard Lua. You can judge for yourself in the sources available in the download ( src/samples/luaextdemo ).
Official Manual: http://www.lua.org/manual/5.1/manual.html#3
For now, only a few API functions are available, but this is improving day by day!
 
We can therefore take advantage graphical routines faster! (Especially for images ...)
 
Your extensions ideas are welcome !
 
Download the latest version ( r547 ) of Ndless 3.1: http://tiplanet.org/forum/archives_voir.php?id=3891

Please note that this "xLua" feature is this in development and can be buggy, so use it at your own risks :)

1247
Computer Usage and Setup Help / Re: lol $29.99 Intel Core i7 computer?
« on: February 04, 2012, 05:26:16 am »
Go buy me one and I'll pay you back :D

1248
TI-Nspire / Re: NGL — TI-Nspire Graphics Library
« on: January 30, 2012, 11:31:09 am »
Great :)

Is it complementary to http://ourl.ca/14731/275989 ?

1249
Has anyone else had issues with their calculator not going to sleep after ndless 3.1 was installed on the CX?
Yeah, for me it's working from time to time....
:o

I want to uninstall/reinstall to see if the problem is fixed, but I have not seen anything regarding whether the uninstall works right or not.
You can uninstall Ndless safely by running ndless_resources :)

1250
nSDL / Re: SDL for the TI-Nspire
« on: January 23, 2012, 06:42:14 am »
Awesome [huge] project !

Good Luck and Have fun :)

(Aslo, Are you going to put it on GitHub or so as you're programming it ?)

1251
General Calculator Help / Re: scrolling and tilemapping tutorial?!?!
« on: January 21, 2012, 03:50:28 pm »
In english?

Google translate the original topic ?

sorry :/

1252
General Calculator Help / Re: scrolling and tilemapping tutorial?!?!
« on: January 21, 2012, 03:48:18 pm »
On TI-Planet ( here ), a member suggested this :

Quote
Si tu veux faire du tilemapping pixel par pixel, il faut en effet utiliser le smooth scrolling. Je vais essayer de t'expliquer comment faire :
Tout d'abord , tu dois changer de signe deux variables (I et J) en fonction de la direction où tu vas comme ceci :
CODE: TOUT SÉLECTIONNER
:If getKey(3) and (I=0) and (J=0)
:1→I
:End
:If getKey(2) and (I=0) and (J=0)
:-1→I
:End
:If getKey(1) and (I=0) and (J=0)
:1→J
:End
:If getKey(4) and (I=0) and (J=0)
:-1→J
:End


Ensuite tu les ajoutes à H et V (le décalage horizontale et verticale sur la map entre 0 et 8 ) :
CODE: TOUT SÉLECTIONNER
H+I+I→H
V+J+J→V

Lorsque tu as bougé de 8 pixels, tu rajoute (ou soustrait 1) à la position horizontale/verticale (ici P = horizontale et Q = verticale) :
CODE: TOUT SÉLECTIONNER
:If H-8=0 or (H+8=0
:P+I→P
:0→H→I
:End
:If V-8=0 or (V+8=0
:Q+J→Q
:0→V→J
:End


En tout, tu as :
CODE: TOUT SÉLECTIONNER
:Repeat getKey(15)
:
:If getKey(3) and (I=0) and (J=0)
:1→I
:End
:If getKey(2) and (I=0) and (J=0)
:-1→I
:End
:If getKey(1) and (I=0) and (J=0)
:1→J
:End
:If getKey(4) and (I=0) and (J=0)
:-1→J
:End
:
:
:H+I+I→H
:V+J+J→V
:
:If H-8=0 or (H+8=0
:P+I→P
:0→H→I
:End
:If V-8=0 or (V+8=0
:Q+J→Q
:0→V→J
:End
:
:sub(MAP)
:Pt-Off(48,32,Pic1
:DispGraphClrDraw
:End
:Return


sub(MAP) appellera la fonction qui s'occupe d'afficher la map à l'écran et Pic1 contient le sprite du personnage.

Pour voir les tiles sur le bord quand tu te déplace, tu dois avoir préalablement affiché la colonne/ligne d'après/avant.
Voilà maintenant le code de la fonction MAP :
CODE: TOUT SÉLECTIONNER
:Lbl MAP
:For(Y,0,9
:For(X,0,13
:Pt-On(X*8-8-H,Y*8-8-V,{Y+Q*[largeur de la map]+X+P+GDB1}*8+Pic0
:End
:End
:Return

avec GDB1, un pointeur sur la map et Pic0, un pointeur sur les tiles.

En espérant t'avoir aidé.

1253
Trapped for the TI-Nspire and TI-89 / Re: Block Dude Nspire
« on: January 21, 2012, 02:14:42 pm »
BlockDude CX exists, but didn't get released.

The other ones needs to be recompiled.

1254
The .tco is for the classic, CX, non-CAS Nspire. Is that yours ?

Edit: oops, mistake. Fixed it.

1255
News / Re: nPlayer for Nspire CX
« on: January 21, 2012, 01:13:37 pm »
Awesome !!

I just hosted it on TI-Planet.org too :)

( http://tiplanet.org/forum/archives_voir.php?id=3895 )

Also, video uploaded to YouTube :

( http://www.youtube.com/watch?v=sxQoNWiNriw )

1256
Also, please like this on 9gag :D

http://9gag.com/gag/1968762
(sfw)

1257
News / Re: Ndless 3.1 coming soon?
« on: January 19, 2012, 12:09:37 pm »
Well it's coming in less than 4 hours :) (22:00 GMT+1)

Countdown here : http://tiplanet.org/ndless/

1258
TI-Nspire / Re: [WIP] BlockBreaker Nspire (Lua)
« on: January 16, 2012, 12:59:20 pm »
He doesn't have much time since he's working on EEPro and another awesome TI-Planet (and Omnimaga to a lesser extent (but nobody here knows about it)) project with Excale and myself, that's going to come out soon, hopefully ;)

1259
TI-Nspire / Re: [Lua] Mancala
« on: January 14, 2012, 05:51:53 am »
table.getn(tablename) is also a good way to retrieve the number of items in a table in some cases of non-standard (?) (or just  customized key/objects) tables. Indeed, for some multi-types tables, # won't get the right number...

1260
TI-Nspire / Re: [Lua] Base Converter
« on: January 11, 2012, 05:58:55 pm »
Nice !

for a more general (?) algorithm, take a look here :

http://stackoverflow.com/questions/3554315/lua-base-converter

Pages: 1 ... 82 83 [84] 85 86 ... 115