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 - Nick

Pages: 1 ... 52 53 [54] 55 56 ... 80
796
Computer Projects and Ideas / Re: Lua code improver for pc
« on: January 05, 2012, 06:31:16 pm »
yeah, optimizer, that was the word i was looking for xp not yet, it's not totally finished, i would like to add the ,"top" or whatever and the ==false removed before release

797
Computer Projects and Ideas / Lua code optimizer for pc
« on: January 05, 2012, 06:23:53 pm »
Hi

based on Deep Thought's idea, i made a program that reduces the file size of lua with about 15% (several tests came out, average reduction..)

it does not yet change anything really coding to the code yet, but:
     - tabs are removed
     - spaces are removed where possible ( var = 5 changes into var=5 )
     - empty new lines are removed
     - \000\ changes in \0\ for images
     - removes the == true in statements (not yet ==false, that will come later)
     - changes platform.window:invalidate() into p() and adds  'function p() platform.window:invalidate() end' because this takes in less place when used more than 2 times (which prob is the case)
     - comments are removed
     - gc:setAlpha(..)'s are removed
     - include external .lua files by using %, followed by the name of the file (without the .lua)
example main file:
Code: [Select]
function on.create()
%varsinit
end
varsinit.lua file:
Code: [Select]
menu = true
game = false
highscore = (var.recall("HS")  or 0)
score = 0

the resulting file is saved in the same directory as the source file, but with improved added to the name, so example.lua changes into exampleimproved.lua
i tried to remove the ,"top" from drawstring, and it all worked fine, but than it seems that it is drawn on baseline, i thought top was default?

anyway, here are screenies




798
News / Re: Even more early TI-Nspire prototype discovery
« on: January 05, 2012, 02:41:20 pm »
i thought there would be more components on that pcb, it's rather empty, isn't it?

799
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 01:40:26 pm »
@ flyingfisch: did you download it off of ticalc, because the new version is wayyyyy better, i mean its like comparing Windows 3.1 to Windows7

lol, is it really that bad your first version?

800
Miscellaneous / Re: Happy New Year!
« on: January 05, 2012, 01:24:21 pm »
O.o

that's quite a lot yes xp

801
Miscellaneous / Re: Happy New Year!
« on: January 05, 2012, 01:16:39 pm »
me wanna know :)

802
TI Z80 / Re: Swords 2
« on: January 05, 2012, 12:22:53 pm »
i don't think that manner would be really useful, would it?

since then you need to have 3 programs; the menu one, and swords1 and 2.. so 3 programs instead of one, while you could just pich it out of the list of programs

and that powerup is a great idea, would be very nice to see that happen :)

803
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 11:57:30 am »
is there a big difference between luaFX and Nspire lua? otherwise this gui from jwalker could be really useful

804
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 11:31:22 am »
no flyingfisch, that's not classes, that's just a table and the reference to it..

i only don't know if that ["0"]= is possible in lua, it would make the work much easier

805
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 11:22:44 am »
ooh, i just took a look at it, and can't you remake that
Code: [Select]
if key(1) then parse = parse .. "0" end
if key(2) then parse = parse .. "." end
if key(4) then parse = parse .. "-" end
etc etc
to a table like this:
Code: [Select]
parsetable = {
["1"]="0",
["2"]=".",
etc..
}

or isn't that possible in luaFX? it would be a lot smaller than now, so you don't need all those statements, just
Code: [Select]
parse..parsetable[tostring(key)]

806
Humour and Jokes / Re: Juju in danger?
« on: January 05, 2012, 11:12:09 am »
euh, can someone explain this to me lol

807
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 11:10:17 am »
does it work with the classes now? sounds great, now you're sort of the inventor of classes for casio lol

looks good, and it might be alpha-of-alpha, but you have to start somewhere.. i wish you good luck with it (not sarcastic or ironically meant xp )

808
Lua / Re: Updating WZGUILib
« on: January 05, 2012, 11:05:22 am »
this looks really good.. so it opens a dialog box when you select an item out of the dropdown menu?

and it seems that your drawing order is ok? or is that just an illusion?

809
Lua / Re: Lua Classes
« on: January 05, 2012, 10:43:17 am »
that's indeed a lot of files O.o well, i saw the build file from eepro, but i didn't really get it, i'll check it again :)

810
Lua / Re: Lua Classes
« on: January 05, 2012, 10:22:54 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 Ö

Pages: 1 ... 52 53 [54] 55 56 ... 80