Toribash
Original Post
[CONC]Standalone mod editor


My math is failing somewhere, but when I get it working, you guy can expect a 2D editor first, then a 3D editor when I learn a bit of OpenGL. Cross platform, etc.

Also, someone tell me where my math is wrong:

x1 = env's x position - (env's width /2)
x2 = env's x position + (env's width /2)
y1 = env's y position - (env's height /2)
y2 = env's y position + (env's height /2)


for(y=y1;y>y2 - 1;y++){
	draw(x1,y,black);
	draw(x2,y,black);
}
for(x=x1;x>x2 - 1;x++){
	draw(x,y1,black);
	draw(x,y2,black);
}
Last edited by Juntalis; Jul 25, 2008 at 06:39 AM.
This looks great, im a new mod maker so i will find this helpful.

[RAWR]
========ROYALRAINBOW========
could we see what its like on another mod, for comparison?
:D
I'm pretty sure the problem is in the axis directions.

X grows from left to right, and Y from top to bottom, most likely.

(GG stealing my project, nub. :[)
Nope...

X grows from right to left, from tori's perspective. (behind him, that is)
Y grows from uke to tori.
Z grows from bottom to top.
Last edited by Skazz; Jul 25, 2008 at 01:33 PM.
I'm back, I think... :)
Mod Pack
Originally Posted by Juntalis View Post

x1 = env's x position - (env's width /2)
x2 = env's x position + (env's width /2)
y1 = env's y position - (env's height /2)
y2 = env's y position + (env's height /2)


for(y=y1;y>y2 - 1;y++){
	draw(x1,y,black);
	draw(x2,y,black);
}
for(x=x1;x>x2 - 1;x++){
	draw(x,y1,black);
	draw(x,y2,black);
}

Skazz, I'm talking about that code which draws 2D, hence not mentioning a Z coordinate.
the code is fine if it was reading xyz coords , but there are rotational values for the objects in the mod.

that screwed the math up
...
ZOMG i asked for this on the website of the brotherhood!
does that mean ur in teh brotherhood?
.
perhaps he is, or perhaps you think alike?
:D