Skip to content

C implementation for simulating and rendering differential games using SDL2.

License

Notifications You must be signed in to change notification settings

linguini1/diffgames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Differential Game Simulator

A simple C simulator and renderer for working with differential games. Based on SDL2.

Building

Linux

To build the entire project, just run make in the project directory. This will compile the entire library and all the example binaries.

Windows

You will need to install an SDL2 installation on your machine somewhere, and you should be using the MinGW toolchain.

In order to build the examples, you should use the following command:

$ make SDL_PATH=path/to/your/SDL2

In order to run any of the examples, ensure the SDL2.dll file that came in your SDL2 installation's bin/ directory is present in the directory where you are running the example. Ex:

$ cp path/to/your/SDL2/bin/SDL2.dll .
$ ./bin/particle.exe

Examples

Included examples can be found in the examples/ directory. To make a specific example, you can use make <example> where <example> is the name of the example's directory.

Ex: to build and run the particle example, you can use:

$ make particle
$ ./bin/particle

In all games, you can press 'q' or 'Esc' to quit the simulation. For specific information about the example you're using, run the example with the -h flag:

./bin/particle -h

Particle

A particle which follows your mouse forever.

Particle

2 Pursuers 2 Evaders

An example of a 2 pursuer, 2 evader differential game.

2P2E

N Pursuers N Evaders

An example of a N pursuer, N evader differential game.

4P4E

About

C implementation for simulating and rendering differential games using SDL2.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published