721
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. 721
Lua / Re: This is my first lua game« on: August 03, 2011, 07:55:37 am »722
Lua / Re: This is my first lua game« on: August 03, 2011, 06:59:45 am »* Levak Lost the game ...
723
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 03, 2011, 05:18:55 am »Great work !platform:gc() is definitely not gc In the way that platform:gc() is a constructor of a gc item. The gc item passed to on.paint() has already been initialized with gc:begin() (this is a part of the bug of adding gc:begin() in on.paint() ) and is automaticly closed with gc:finish(). That way, if you use platform:gc() you have to initialize it first with gc:begin() Here is a pseudo code of the core : Code: [Select] if platform.window.isInvalidate() then And here comes another problem, if we use platform:gc() to draw things, it will give you the illusion that it is the same, but actually no. When you do a Ctrl+Up the vignettes are not drawn and the part you wish to draw is in background ! This is a little bug of gc, because you didn't put a gc:finish() in the function that uses platform:gc() 724
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 02, 2011, 09:15:42 pm »
Ok, today, acording to the previous post, I worked on the user's comfort.
- 3D axes - Angular mode displayed : RAD or DEG mode - vignetting support (platform:gc() is definitely not gc) - save and restore supprot (GUI configuration is saved) 725
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 02, 2011, 07:23:43 pm »You can also let on.save return the highscore as a list. This will then be the parameter of on.restore next time the script gets opened Dude, I love you T_T Now, we don't loose the screen configuration when we exit from the document \o/ \^o^/ (o_ /o\ 726
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 02, 2011, 04:25:44 pm »PS : I haven't tested that new version, but in the previous one, if you use any tool (grab, scale or rot) and type two double quotes (""), the prog returns an error. Oh, good find ... And I can't explain this ... I can block the quotes, since it is useless in a math expression, but it seams that math.eval() return a mathematical value to "" =D 727
Other Calculators / Re: New TI-Nspire CX-C CAS and TI-Nspire CM-C... Poor« on: August 02, 2011, 10:11:24 am »TI Agent said TI-NSpire CX CAS can install that kind of OS which has dictionary. * Levak is wondering for a multi-lingual dictionnary in english, spanish, german, binary, brain fu*k, Lua, oops .. too far
728
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 02, 2011, 09:13:43 am »
Thanks a lot !
yep, awesome ... There is no specific source code for this concept, because the TI Nspire framework does the job. The only thing to know is to share vars between scripts. This means that you must save them to the problem's vars (the doc's vars if you want). I used a lot of var.store(), var.monitor() and var.unmonitor() to get this working. Even if it could work with a fully shared ressource, I kept the old object list buffer and, when a specified object updates, I update it in the buffer. All sources are, for a while, already shared on my website : http://levak.free.fr/ftp/nspire/Make3D/ 729
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: August 01, 2011, 09:28:52 pm »
Back !
Today I had a wonderful idea about a completly modular script. First of all, it uses the widgets framework display. You know, when you split the screen with Doc > 5 > 1, or when you group widgets with Ctrl+4 ? Imagine what we can do if we join that with Lua scripts. I imagined it for you : It was first a proof of concept, but I finally managed to get it working ! For now I have a completly-realtime-multi-threading interface. On one widget, I've got the animation playing, and in the other one I can duplicate objects, rotate them ect ... and all screens got refreshed ! (like in Blender !) This will let me develop other modes, like Blender's interface : outliner, properties panel, etc ... in only one script duplicable ! In another part I managed to support RADIANS and DEGREES modes for rotations. 730
Lua / Re: what should l do if l want two speed? it doesn't work« on: July 10, 2011, 06:45:24 am »what should l write in event:init() ? Nothing, if you don't need so. Actually, class() seperates the meta-tables and creates a new one to let you call event1 as a specific class. init() initializes the meta-table. class() is not part of Lua, it is part of the TI Nspire framework, thus, it computerizes some routines to represent classes in Lua, even if it is not an object oriented language. 732
TI-Nspire / Re: My Nspire contest entry - Zombie FPS game« on: July 09, 2011, 06:28:08 pm »Or people are going to be very annoyed when they go play my game, the calc crashes, and all the work in their unsaved document is lost. Obviously, you have to save the document before switch to another document. So nothing will be lost, except time to reboot. 733
TI-Nspire / Re: Pacman Lua« on: July 09, 2011, 04:55:59 pm »Well, the thing is that I don't have to draw more images if I use this. Redrawing the screen alone might be faster, but for many games that need images, the combination will be faster. drawImage really can be a bottleneck in programs, and that is why I try to limit using it with redrawing only parts. But, how can be sure of that ? The on.paint(gc) method is one unique function which cannot be defined for different part of the screen. We have no proof, except a full bench, that the buffer is filled the same way and then superposed over the old screen, or, if the buffer is drawn locally. Do you follow me ? 734
TI-Nspire / Re: Pacman Lua« on: July 09, 2011, 04:35:08 pm »Well, I'm developing a game (not saying the name :p) and the extra parameters are really important for me. Now I don't need to redraw all the images on the screen using gc:drawImage (which is slow), and I notice a big speedup. The game will be unplayable without it. Ok, but have you tested without arguments to make a real bench ? Even if I trust in you, we have to be really sure of this. 735
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua« on: July 09, 2011, 04:32:43 pm »
thanks =)
I'm going on holidays during 3 weeks (FuRoBalEx, I've made videos for it and =P ), so I have to let Make3D down for this moment, to make robots and gain skills =D Hope you'll understand ^^ |
|