The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
I'm getting there :I
«
1
»
I'm getting there :I
ubuntupokemoninc
10th Feb 2011
Member
0
Permalink
OMG I feel so sorry for the programmers off this game!
any ways I'm getting farther, I'm coding francium, i have the coding done in powder.h
Now I'm working on fran.c
I'm getting stuck now
this is what i have so far.
#include
int update_FRAN(UPDATE_FUNC_ARGS) {
int r, rx, ry;
for(rx=-1; rx<2; rx++)<br /> for(ry=-1; ry<2; ry++)<br /> if(x+rx>=0 && y+ry>0 && x+rx pmap[y+ry][x+rx] &&
(pmap[y+ry][x+rx]&0xFF)=PT_WATR&&
(pmap[y+ry][x+rx]&0xFF)=PT_DSTW&&
(pmap[y+ry][x+rx]&0xFF)=PT_SLTW&&
(pmap[y+ry][x+rx]&0xFF)=PT_WTRV&&
(pmap[y+ry][x+rx]&0xFF)!=0xFF)
{
r = pmap[y+ry][x+rx];
return 0;
}
It will start the reaction with water, salt water, distiled water, and water vapor. and it won't react to wall. is this right?
Little bit confused on the code for explosion, were is the key for the codes?
«
1
»