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 ... 84 85 [86] 87 88 ... 115
1276
Lua / Re: Lua Classes
« on: January 05, 2012, 10:31:57 am »
Secondly, classes makes your code looking clever, sperated in multiple files, each file is related for one object and co..

how can you do this? i mean, writing every method/class in a seperate file would be sooo useful Ö

Example for EEPro, indeed :


1277
Lua / Re: Lua Classes
« on: January 05, 2012, 10:08:57 am »
https://github.com/adriweb/Nspire-BreakOut/blob/master/BreakOut.lua

take a look at this code (I made it so it can be helpful for beginners and people who want to learn class-oriented lua programming on the Nspire) and try to understand a way I could have had as many balls, blocks etc. as I wished without using classses and without having to write everything for each object.

Have fun :D

(btw,  it's almost impossible)

That's what classes are for : creating once and for all, a "definition" of objects, and creating as many objects as you want of that class, so they will inherit the class properties.

Google "object oriented programming" and you'll see in detail what I mean.

1278
Ndless / Re: [nRGBlib] W.I.P - Colorful librairy for Ndless 3.1
« on: January 04, 2012, 04:07:36 pm »
This lib is awesome :)

You should post a screenshot/video ;)

1279
Other Calculators / Re: Discover the TI-Nspire LabStation Cradle
« on: January 04, 2012, 04:06:31 pm »
Good thing TI can lend them (for free) ;)

1280
Lua / Re: Lua Classes
« on: January 04, 2012, 03:43:35 pm »
Here's the source code of the class() function, that TI uses :


(not tested)
Code: [Select]
-- Class definition system
class = function(prototype)
    local derived = {}
    local derivedMT = {
        __index = prototype,
        __call  = function(proto, ...)
            local instance = {}
            local instanceMT = {
                __index = derived,
                __call = function()
                    return nil, "attempt to invoke an instance of a class"
                end,
            }
            setmetatable(instance, instanceMT)
            if instance.init then
                instance:init(...)
            end
            return instance
        end,
    }
    setmetatable(derived, derivedMT)
    return derived
end

Paste that and use  blablabla=class()  now :)

1281
News / Re: TI-84 Plus Pocket SE
« on: January 04, 2012, 01:38:57 pm »
Would it be possible to get these calcs via shipping from asia?

Maybe ... through Asian's official TI resellers, but it would *really* cost a lot for shipping :P

1282
News / Re: TI-84 Plus Pocket SE
« on: January 04, 2012, 12:52:26 pm »
That looks great! Why does France get all the nice calculators? D:
France doesn't get to have this calculator :P
Asia countries do however, for this model.

Anyway, the keyboard isn't localized with Chinese characters for example, so we might think of a Europe arrival at one point ... ?




Also, Mic from TI-Bank copied (stole...) the pic and indeed "photoshopped" our watermark out and put his logo instead. It almost doesn't surprise us.
It's even more ridiculous when we can easily see his fake is badly done :



Also, this gets confirmed by the amount of red color in the TI-Bank logo area :
http://errorlevelanalysis.com/permalink/e741009/
But we don't need to see that with this website, as it's clearly obvious.

1283
News / Re: TI-84 Plus Pocket SE
« on: January 04, 2012, 06:30:41 am »
I received from TI some ultra-high-res photos/skins(?) of this new 84+PSE :

(clic)



Also, some 3d views :


1284
News / Re: TI-84 Plus Pocket SE
« on: January 03, 2012, 03:18:57 pm »
Yep, having an NDA doesn't mean "working".

And as said before, if we were on TI's side and hypocritical as Mic constantly says in order to decrease our reputation, we wouldn't publish anything about Ndless or "hacks" for example.

To make it clear : We post on everything we can know and discover by ourselves as if we didn't have any NDA information.
So when we make news etc., we post the exact things the way anybody else could have done since we're only taking into account public information or self-discovered knowledge (or sometimes, things that TI allowed us to, which were private before).

1285
News / Re: TI-84 Plus Pocket SE
« on: January 03, 2012, 02:09:30 pm »
Anyway, stop fighting on this topic....

I asked TI for a Hi-Res image... we'll see if they can give one :)



@Mic : j'ai dit ca où ?

1286
Looks quite nice so far. By the way although smooth scrolling cannot be implemented, have you tried 8 pixel scrolling or even 4 pixel scrolling?
No but I have tried some sort of smooth scrolling in the past. Way too slow for what it gives back, not worth the pain of implementing it. Well, at least not a this point, maybe if Lua gets a bit faster in the future, then why not.
Smooth scrolling for the character's sprite is easily possible... just a for loops over the coordinates from source to destination (maybe with actually a partial window:invalidate() to accelerate the specific screen part refresh)
But yeah, smooth scrolling for the rest (background and tiles) would indeed be slow.

1287
It looks like his project is now named "Owl" :

https://github.com/Hoffa/Owl

1288
Lua / Re: Checkers Lua
« on: January 02, 2012, 07:00:27 pm »
Nice :D

@DJ_O : I've always seen blakc and white, for Checkers* ("Jeu de dames")

1289
it's very important because I'd like create a lua game


If you're < 3.0.2, you can still use any other community-based converter, like the python one or the shell-based one, all available here or on TI-Planet or TI-Calc.org

edit: found it here   :   http://www.ticalc.org/archives/files/fileinfo/437/43705.html

syntax is :  python maketns.py source.lua output.tns

1290
I couldn't personally compile Luna on Mac because of the dependencies I was too lazy to install...

I know however that Extended has put on one of his websites an online version of Lua that gets code from Gist and outputs a downloadable .tns file....

Extended ?



Edit : meh, cross post

Pages: 1 ... 84 85 [86] 87 88 ... 115