PDA

View Full Version : I can't figure out PK's positioning system...


Blorx2
2005.04.26, 04:13 PM
Ok, I know this works with a number system in all but by what? Pixels? This confuses me as I'm trying to program... :???:

ThemsAllTook
2005.04.26, 04:53 PM
Abbreviations are evil. What's PK?

Blorx2
2005.04.26, 05:06 PM
PlayKode, Lua, whatever you wanna call it, I've heard it be called PK before...

Josh
2005.04.26, 11:58 PM
Pardon my ignorance, but why would Lua be called PlayKode?

phydeaux
2005.04.27, 02:32 AM
PlayKode uses Lua as a scripting language, which is probably why Blorx is confused. Many other games use Lua as a scripting language, so PlayKode and Lua are not the same thing.

Blorx2
2005.04.27, 08:44 AM
They're not. I'm here trying to figure out what the standard measurement system is for Lua so that I can get my games to actually show graphics... :???:

kodex
2005.04.27, 01:50 PM
Why dont you just explore around with it for a while, if 1,1 dosnt give you anything try 10,10 or 100,100 and then you can very quickly figure out how the measurement system is working. It dosnt appear as if many people here use "Lua" if any at all.

phydeaux
2005.04.27, 01:58 PM
There are a few of us here who use Lua, including me, and would probably be happy to answer any specific questions about the language. I don't know the specifics of PlayKode, though.

socksy
2005.04.27, 02:10 PM
Blorx2, why don't you ask in the playkode thread?

Blorx2
2005.04.27, 04:02 PM
There's a PK thread? oops, forgot...hehe

Leisure Suit Lurie
2005.10.01, 11:56 AM
They're not. I'm here trying to figure out what the standard measurement system is for Lua so that I can get my games to actually show graphics... :???:
I doubt there is a standard measurement system in Lua...

unknown
2005.10.01, 12:07 PM
I use lua somtimes.
Maybe theres help files with PlayKode, probably not though.............................

Leisure Suit Lurie
2005.10.01, 12:11 PM
There are help files. The docs are pretty good actually. It seems that the units (for 2d at least) are pixels. Whether positive Y points up or down is another matter. Should be easy to figure. draw something at 0,0, then 0,height and see where it ends up.

socksy
2005.10.02, 06:11 PM
Eh? He still hasn't worked out? 0,0 is the centre of the window or drawing pane or screen that is up. Everything is proportion to that in pixels. All co-ordinates of each sprite and 3d model are also based on 0,0 being the centre of sprite/model in approximation to that model, and not the "scene".