Hehe, I think doing shaped arenas will be easier to do than I thought
The arena is done in gArena.cpp:107. There you must define the points of the shape:
Code: Select all
ePoint *R=ggrid->Insert(eCoord(0,0));
R=ggrid->DrawLine(R, eCoord(500,0) * sizeMultiplier, tNEW(gWallRim) (ggrid),0);
R=ggrid->DrawLine(R, eCoord(500,500) * sizeMultiplier,tNEW(gWallRim) (ggrid),0);
R=ggrid->DrawLine(R, eCoord(0,500) * sizeMultiplier, tNEW(gWallRim) (ggrid),0);
R=ggrid->DrawLine(R, eCoord(0,0) * sizeMultiplier, tNEW(gWallRim) (ggrid),0);
It's like programming in LOGO with the turtle
philippeqc: I've been testing and I think your problem is this: the bikes are killed at the start because the spawnpoints are outside the arena

. The spawnpoints are defined in gArena.cpp:42
----
EDIT: Some thoughts about a real implementation:
We could set one variable in the server named ARENA_SHAPE being an integer (could we set a variable being a string?).
We could create predefined arenas in texts files in the same sort of /arenas/basic.aar (hehe zmos predefined a rectangular arena here!) naming them rectangular.aar, triangle.aar, alien.aar, ... LOL
If we could set a string variable this way, if not we set an integer and rename them 01.aar,02.aar....
And we could write a parser in gArena.cpp that reads that file and loads the arena and the spawnpoints predefined by the server. What do you think?
-----
Here are some teasers
