stk-code_catmod/doc/robots.txt
grumbel 7a6d165641 - moved trunk/ to trunk/supertuxkart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-05-27 16:01:53 +00:00

16 lines
801 B
Plaintext
Executable File

To create a robot, here is what you should do:
- There is a template for the robots in the contrib/ directory, modify it
to create your own robot, the files are named empty_robot.cpp and
empty_robot.hpp .
- Name your source file <name of robot>_robot.cpp, and your header as
<name of robot>_robot.hpp .
- Place your source and header file in the src/robot/ directory.
- Add your filenames to the Makefile.am in the src/ directory.
- In the file src/world.cpp, under the group of #includes, add
#include "robots/<header file name>", then add your robot inside
function World::loadRobot to the switch statement as the next case
available, and increase the constant NUM_ROBOTS by one.
- To test it, run 'sh reconf.sh'. It should reconfigure your build and then
compile STK.