Game Project: Boulder Dash

closed account (48bpfSEw)
Hello,

Here is the original game I am going to write the game engine for:

https://www.youtube.com/watch?v=FiEVfa1OK_o


Current Source Code, DOS Beta Release:

https://dl.dropboxusercontent.com/u/13592949/cpp/BoulderDash/game.cpp


Did anyone know how to read the key strokes without buffering? I mean if I press multiple times on "d" the animation speeds up.


Last edited on
closed account (48bpfSEw)
I think I have to use threads. One thread which is responsible for the animation and the other one for the user input. both threads are working independently.
@Necip

I like the way your game is progressing.
closed account (48T7M4Gy)
http://stackoverflow.com/questions/421860/capture-characters-from-standard-input-without-waiting-for-enter-to-be-pressed

Necip, I've never used it but apparently nCurses is the common solution as described on this site elsewhere and at stackoverflow above. conio.h is another way but is not a good move.
closed account (48bpfSEw)
That's it:

http://www.cplusplus.com/forum/beginner/3329/


Press the 'any' key! xlk
Oh forget it!


:)
closed account (48T7M4Gy)
https://en.wikipedia.org/wiki/Any_key
closed account (48bpfSEw)
Still have the keyboard problem... :(

but...good news : Game upgraded to beta 1.1

new features:
* death recoginition, when player is surrounded with stones or walls
* exit recoginition, when player has collected all diamonds and stays near eXit
* characters double wided : █ looks now : ██
* view zoomed

https://dl.dropboxusercontent.com/u/13592949/CPP/BoulderDash/BoulderDash%20Beta%201.1.cpp



have fun.
closed account (48bpfSEw)
Entering the next level of programming: GRAPHICS!!! --- oh yes! ^^

The engine of the game is untouched.
The new feature is the graphics library which is used for the presentation layer.

https://dl.dropboxusercontent.com/u/13592949/CPP/BoulderDash/BoulderDash%20Beta%202.1.cpp

All you need is descripted in the description within the source code.

SnapShot: https://dl.dropboxusercontent.com/u/13592949/CPP/BoulderDash/BoulderDash2.1SnapShot.png


Topic archived. No new replies allowed.