Distributed Tanks Game Sample
Posted
by Eran Yariv and Moshik Zur
on November 22nd, 1998
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

Comments
Can I Get your Source code?
Posted by Legacy on 11/10/2000 12:00amOriginally posted by: TONY_LU
Sir:
Now I can't get your source , Could you send me a copy?
sir can i get full description of game in brief.i want it in vc++ and using sdk
BestRegards
student of india
jyothi
-
Replycan i get a source code mobile game?
Posted by ranjeetmote on 06/19/2007 10:47pmNow I can't get your source , Could you send me a copy? sir can i get full description of game in brief.i want it in java and using sdk BestRegards student of india Ranjeet
ReplyLibrary Error On Compile
Posted by Legacy on 05/14/2000 12:00amOriginally posted by: VC++ 6 User
ReplyDll Problem
Posted by Legacy on 11/15/1999 12:00amOriginally posted by: Mangesh Kardbhajne
I got an error while executing tank.exe
I got a messagebox saying,
A required .DLL file, DPLAYX.DLL, was not found
and
One of the library files needed to run this application cannot be found.
(though I have dplayx.lib file at proper place.)
How should I make the game executable?
Replywhy?
Posted by Legacy on 11/03/1999 12:00amOriginally posted by: cqjq
when i use ur exe,it can chat!!
Replybut when i use exe of myself compile,it is a error?
i use vc6.0.
cqj 1999.11.4
Excellent !
Posted by Legacy on 05/12/1999 12:00amOriginally posted by: Cristiano Bruno
ReplyMovement of Tank Object
Posted by Legacy on 03/18/1999 12:00amOriginally posted by: Amit Bindal
ReplyGot past language compile error, but can't execute
Posted by Legacy on 02/02/1999 12:00amOriginally posted by: Peter Wolszczak
I figured out that the language lines were not needed. However, after I have done a build all (in VC++5), I get an error saying that one of the library files needed could not be found (WIN32 error 1157) when trying to execute. Is it because I don't have the DirectX 6.0 Media SDK installed? Please advise. I would like to see how your program works when it is in action. Thanks!
ReplyVC++ 6.0 problems
Posted by Legacy on 01/07/1999 12:00amOriginally posted by: Rene Balvert
When I tried to compile the project under VC++ 6.0 I got the following problems:
1) The #pragma code_page ( .. ) gave an error (invalid code_page) when opening the resources. This has something to do with the language.
1.1) Probably a bug in VC++ 6.0: the resource file was not closed after this error. I had to close VC++ before I could edit the resource file.
2) The ClassWizard couldn't find CTankDlg, becuase it was not in the <project> directory, but in the <project>\SRC directory.
Rene Balvert
ReplyProject's site has moved. Here are the new URLs...
Posted by Legacy on 01/02/1999 12:00amOriginally posted by: Eran Yariv
Sorry about that.
Our project's host was going through some changes and the URLs have moved.
I posted a notice to CodeGuru's webmaster about a week ago but the links in the article were not changed (until today).
Here are the new links:
-----------------------------------------
1. Project's main site: http://tochna.technion.ac.il/project/Tanks2D/html/Tanks2D.html
2. Download demo project executable:
http://tochna.technion.ac.il/project/Tanks2D/html/download/tanks.zip
3. Download source:
http://tochna.technion.ac.il/project/Tanks2D/html/download/sources.zip
Replythe airplane graphics need work
Posted by Legacy on 12/06/1998 12:00amOriginally posted by: Mr
Please make your source code out of SRGP
Replyand make it not win32 based. Make it
C ansii standard in which most can use it thank you.
Loading, Please Wait ...