User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cppdev:gamecodeoverview [2017-02-15 11:49]
Carsten remove obsolete references to Trac
cppdev:gamecodeoverview [2017-05-08 11:10]
Carsten deleted obsolete section (it's superseded by the component system)
Line 43: Line 43:
 For each entity type, it specifies details like names, dimensions, properties, etc. For each entity type, it specifies details like names, dimensions, properties, etc.
  
- 
-==== Code/ ==== 
- 
-Directory ''​Code/''​ contains the source code for the implementation of this game. 
- 
-The source code is compiled into a program library that is linked to the Cafu Engine executable when the software is built. Multiple game libraries can be linked to the Cafu Engine at the same time, so that the user can choose at runtime which one should be used. 
- 
-When SCons builds the game library, it places the generated binary files into subdirectory 
-    Code/​build/​... 
-where ''​%%...%%''​ is a path that is automatically created by the build system according to your platform, compiler and build variant. 
-When it proceeds, SCons will automatically pick up the generated files from there to link them to Cafu, so normally you never have to deal with them yourself. 
- 
-/* The program libraries are known as "​DLLs"​ (dynamic link libraries) under Windows, and "​SOs"​ (shared objects) under Linux. Independent of the platform, this library with the binary code is referred to as "​DLL"​ in this documentation,​ and it is kept in another subdirectory of ''​Code/''​ as well. 
- 
-The DLL is expected to have the same name as the game, and thus expected to be found in 
-    Games/​DeathMatch/​Code/​build/​.../​DeathMatch.dll ​    ​(Windows) 
-    Games/​DeathMatch/​Code/​build/​.../​DeathMatch.so ​     (Linux) 
-where ''​%%...%%''​ is a path that is automatically created by the build system according to your platform, compiler and build variant. 
-The ''​%%...%%''​ path is also known to the Cafu Engine so that it can load the library. */ 
- 
-See section [[#​the_game_source_code|The game source code]] for more details about the game source code. 
  
  
cppdev/gamecodeoverview.txt ยท Last modified: 2017-05-08 11:15 by Carsten