1. Then add the path with compiled units to your fpc.cfg file by adding a line like -Fu.../castle_game_engine/units/x86_64-linux (see FPC documentation "Configuration file" to know where you can find your fpc.cfg file). And then, just use our units in your game code, and compile it in any way you like (like fpc mygame.lpr on the command-line).

 

 

fpc.cfg 增加 搜索目录的方法。