Code center > Old Suggestions Awaiting Programming
The Robot Plasment control , more code
Botsareus:
[you]"Ideas' Programming Status" does not talk about the code I gave Num for Robot Plasment[/you]; I have been thinking about the robot plassment itself for an oval Generating a random X and a random Y and then [you]making sure they are inside the oval not outside it [/you]is a difficult code to write.
Instead for the oval code you can generate a random "angel" and a number between 0 - 1 for the distance (lets call this n) , after the (sin, cos) from the angle is gatherd multiply sin * n * abs(x1 - x2) and cos* n * abs(y1 - y2)
B)
That should give you locations to place robots themselfs
Numsgil:
Yeah, I forgot to add it to the Ideas status, I"ll do that now. It's hard to remember ones that don't have their own topic, ya know?
I almost started it several times, but then found a bug that needed to be worked out first. You should see it by the next public release.
Botsareus:
ok thanks , btw from now on I start my own topic
Botsareus:
Here it is , the actual plasment part of the oval part of my robot plasment control.
Num , download Now.....
Currently it plases a lot of dots instead of robots , but you get the idea....
Numsgil:
Good stuff. Are you going to try to add it to the actual options.frm? The more work you can do yourself the easier it is for me and PY to include it. My own coding process is at a huge slump, I don't think I've added anything in over a week.
Navigation
[0] Message Index
[#] Next page
Go to full version