I can't figure out PK's positioning system...

Member
Posts: 116
Joined: 2005.02
Post: #1
Ok, I know this works with a number system in all but by what? Pixels? This confuses me as I'm trying to program... Huh

Last login: Sat Aug 6 09:15:05 on console
Welcome to Darwin!
Matt-Chelens-Computer:~ matthew$
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
Abbreviations are evil. What's PK?
Quote this message in a reply
Member
Posts: 116
Joined: 2005.02
Post: #3
PlayKode, Lua, whatever you wanna call it, I've heard it be called PK before...

Last login: Sat Aug 6 09:15:05 on console
Welcome to Darwin!
Matt-Chelens-Computer:~ matthew$
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #4
Pardon my ignorance, but why would Lua be called PlayKode?
Quote this message in a reply
Member
Posts: 184
Joined: 2004.07
Post: #5
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.
Quote this message in a reply
Member
Posts: 116
Joined: 2005.02
Post: #6
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... Huh

Last login: Sat Aug 6 09:15:05 on console
Welcome to Darwin!
Matt-Chelens-Computer:~ matthew$
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #7
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.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 184
Joined: 2004.07
Post: #8
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.
Quote this message in a reply
Member
Posts: 168
Joined: 2004.10
Post: #9
Blorx2, why don't you ask in the playkode thread?
Quote this message in a reply
Member
Posts: 116
Joined: 2005.02
Post: #10
There's a PK thread? oops, forgot...hehe

Last login: Sat Aug 6 09:15:05 on console
Welcome to Darwin!
Matt-Chelens-Computer:~ matthew$
Quote this message in a reply
Moderator
Posts: 529
Joined: 2003.03
Post: #11
Blorx2 Wrote: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... Huh
I doubt there is a standard measurement system in Lua...

"Yes, well, that's the sort of blinkered, Philistine pig-ignorance I've come to expect from you non-creative garbage."
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #12
I use lua somtimes.
Maybe theres help files with PlayKode, probably not though.............................

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Moderator
Posts: 529
Joined: 2003.03
Post: #13
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.

"Yes, well, that's the sort of blinkered, Philistine pig-ignorance I've come to expect from you non-creative garbage."
Quote this message in a reply
Member
Posts: 168
Joined: 2004.10
Post: #14
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".
Quote this message in a reply
Post Reply