Distributed Tanks Game Sample | CodeGuru

Distributed Tanks Game Sample

In this project we implemented a real-time multi-player distributed animated tank game. This project was done during one of our lab assignments in the Technion – Israel’s Technologicl Institute. Major game features: This game runs on Win32 platforms (Win95 / 98, Win NT 4 or above) Supports various communication methods (LAN, Internet, Dial-up, Direct cable) […]

Written By
CodeGuru Staff
CodeGuru Staff
Nov 22, 1998
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Tank game sample image

In this project we implemented a real-time multi-player distributed animated tank game.

This project was done during one of our lab assignments in the Technion – Israel’s Technologicl Institute.

Major game features:

  • This game runs on Win32 platforms (Win95 / 98, Win NT 4 or above)
  • Supports various communication methods (LAN, Internet, Dial-up, Direct cable)
  • The game allows up to 4 players to take part in a game session
  • The game uses graphics and animation to display the background and moving objects
  • A game session is hosted on a server machine
  • Each player is either a server (there’s exactly one server in each game session) or a client
  • A client interacts with the server and participates in the game play

Major programming features:

  • MFC based
  • Heavy use of C++ features
  • Uses DirectPlay
  • Uses DirectSound
  • Multithreaded
  • Uses DIBs and the DrawDIB API (from WFW) for animations
  • Synchronization
  • Message packing and unpacking
  • A timer mechanism – time synchronization using smoothed averages
  • Automatic and random map generation
  • Image manager Lists of images
  • Smart queues for inter-thread messaging support
  • Keyboard manager – Mapping virtual keys into maneuver sets of local tanks
  • Animated dialog buttons
  • Animation controls

Visit project’s site

Download demo project executable – 3785 KB

Download source – 1621 KB

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.