Skip to content

jepaivin/TankClicker

Repository files navigation

TankClicker

Win32/C++ example application where you drive your tank around in a world full of enemy tanks. You can click on screen to set a movement target for your tank. Enemy tanks near you will start tracking you with their gun. Performance is not that great, can you find out why?

Classes

TankClicker

This is the main application with application initialization and shutdown, Windows message handling and main loop.

Game

Game state and logic, including player and enemy positions and a tick function to update current state

View

Responsible for drawing the game view to a window

AI Worker

Worker thread that calculates the enemy gun angles asynchronously

Settings

Loads parameters (key/value pairs) from a simple text file. Used to store enemy count, movement speed among other things.

About

Example of some performance problems

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors