The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
Please fix wiki entry.
«
1
»
Please fix wiki entry.
Videogamer555
20th Jan 2012
Member
0
Permalink
I have posted in bold on part of the wiki where there seems to be a lack of info on the PMAP command.
https://powdertoy.co.uk/Wiki/W/Variables.html#General
Please provide the requested info.
Pilihp64
20th Jan 2012
Developer
0
Permalink
pmap[y][x]&0xFF returns ONLY the type of the particle, if you want the other properties, you needs to use the index (pmap[y][x]>>8) and use that in the parts array, which you can then get the other properties.
r = pmap[y][x]
parts[r>>8].temp ,ect...
«
1
»