Skip to content

dabg3/tankbattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tank Battle

A 2D top-down shooter game under development.

Build

Configure

cmake -B build -DCMAKE_BUILD_TYPE=Debug 

Compile

cd build
make 

Run all test suites

make test

Project layout

  • assets - static game components
  • engine - engine headers and sources
  • tankbattle - game implementation
  • tests - test suites
  • unity - test framework

LSP Integration

Language servers require the source file list and their compilation command lines. Those are obtained by reading a compile_commands.json file generated by the build system.

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build
ln -s build/compile_commands.json .

TODO

  • support interpolation
  • prevent access to internals
  • use coordinates in range [0, 1]
  • control FPS
  • collision detection
  • group objects
  • z-index
  • lifepoints
  • improve accelleration and slow down
  • handle arena borders
  • shot animation