AutoDuel
Inspiration
BattleCars for the ZX 48K Spectrum was an EARLY inspiration from beginning of 1980'ies.
I played a "very slow" GURPS role playing game AutoDuel.
And a computer based version of it on Atari.
There was also a Kickstarter campain game which seemed very promising.
This game ...
My version of AutoDuel has a few goals.
- It has a top down view
- Its car dynamics should be realistic and fun
- It should support proper input controllers
- It shall have some kind of battle element with weaponary
In current state its far from achieving these goals. But the the car dynamics are quite ok.
Below you see a screenshot from the current development version.
AutoDuel is still a very simple prototype of a time track racing game. But it could be developed to be a more BattleCars like game in the future.
The closest inspiration for current version is Gene Rally 2 which is really fun, but unclear if it will finish.
Roadmap
- AI opponents - This is the main challange right now. Try NEAT
- Game controller support
- Attractive graphics
- Game setup with e.g. track/car selection
Install
- Download pre-built binary for Windows (64bit) or Mac OSX
- Unzip or untar package
- Start application
On Windows ...
unzip AutoDuel_Win64.zip
./AutoDuel.exe
On OSX ...
tar -xzf AutoDuel_OSX.tgz
./autoduel/run.sh
Files
Build from source
It's quite easy to compile on your favorite platform. The following OS'es has been tested.
- Windows Vista 7
- Mac OSX 10.9
- OpenBSD 5.5
Follow the below guide to make your own install.
-
Uninstall any previous versions of Haskell Platform
-
Install Haskell Platform for your platform
a. https://www.haskell.org/platform/windows.html (includes glut)
-
Update cabal repos,
cabal update
-
Update cabal,
cabal install cabal-install
-
Install gloss,
cabal install gloss
-
Install juicy,
cabal install gloss-juicy
-
Compile,
ghc -O2 -o AutoDuelBuild AutoDuel.hs
(10 MB) -
Strip binary,
strip AutoDuelBuild.exe -o AutoDuel.exe
(5 MB) -
Run,
./AutoDuel.exe
-
Compress,
zip AutoDuel.zip AutoDuel.exe freeglut.dll
(1 MB)
Om Windows you may need to install freeglut
. Get it from e.g. here.
Model Dynamics
The model is shown below.
References
- Wheel Dynamics, Georg Rill
- Rigid body dynamics using Euler’s equations, Runge-Kutta and quaternions.
- Car Physics for Games
- Chassis Handbook: Fundamentals, Driving Dynamics, Components, Mechatronics, Perspectives
- Xbox 360 gamepad support - Are there still lag?
- libgamepad
- Gene Rally 2
- Super Truckin AI
- DrawingCombinators study
- NEET - Neuroevolution of Augmented Topologies (NEAT) -- in Haskell
- Neuroevolution of Self-Interpretable Agents - also see Neuroevolution of Self-Interpretable Agents
- Car Wars Classic
- Instinct: neuro-evolution on steroids
- 100 Circuits for Scalectrix
- hsdev 0.3.3.0 needed for SublimeHaskell