Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Having problems with movement in tetris game

Author
Message
shywolf91
7
Years of Service
User Offline
Joined: 19th Apr 2012
Location: United States
Posted: 17th May 2012 22:30
I am making this tetris game in c++ and DarkGDK for my introduction to c++ class.

The movement works, but the computer is having a hard time reconginzing the left and right keys. you need to hold down the key for it to move left or right.

CODE:


pastebin code link:
http://pastebin.com/WaW5ci2Z

shy wolf productions
Mr Bigglesworth
11
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 18th May 2012 04:07 Edited at: 18th May 2012 04:14
I it is the slow speed of the 2D drawing commands. I used this:



and it is only getting one frame per second.

You would be better off loading images and making them sprites, it wouldn't be much harder to do and it would be wicked fast.
shywolf91
7
Years of Service
User Offline
Joined: 19th Apr 2012
Location: United States
Posted: 18th May 2012 04:41
Okay I updated the code, but really need help finishing it up.

Right now I really need help with the rotation and random shape gen.

New code:


shy wolf productions

Login to post a reply

Server time is: 2019-11-12 18:22:28
Your offset time is: 2019-11-12 18:22:28