Log In  


I was writing a function to convert screen-space to tile-space just now, and I figured I'd try storing coordinates as userdata (via vec(x,y)) instead of separate x/y values. It mostly works, except that vectors don't support the integer divide operator \. I was wondering if this was intentional; \ for integer divide isn't mentioned anywhere in the Picotron manual, where I'd expect to find it in the Picotron Lua section. But it clearly still works for scalar values -- perhaps only by accident?

Is the intent perhaps that integer vectors should use an explicitly integer-typed userdata (e.g. userdata("i32",0,0)), in which case the standard / division operator would already have round-to-integer semantics?

3


Thanks @postgoodism, I've added this for 0.1.1c (it was just an oversight, no reason for it to be missing)


Sweet, thanks zep!
Do I mark the thread as "Resolved" myself, or do you prefer to do that once a version with the fix is released?



[Please log in to post a comment]