Console Programming - Tetris

Started by
31 comments, last by Android_s 20 years, 8 months ago
Hey again Android_s,
What exactly are timer.pf_timer_start? and timer.resolution? if they are exactly what I think they are then this code should work with maybe a minor alteration.

An ASCII tetris clone... | AsciiRis
An ASCII tetris clone... | AsciiRis
Advertisement
Honestly I got those functions from NeHe. I wanted to skip the MMtimer and use PFtimer instead

void InitTime(){memset(&timer, 0, sizeof(timer));QueryPerformanceFrequency((LARGE_INTEGER*)&timer.frequency);QueryPerformanceCounter((LARGE_INTEGER*)&timer.pf_timer_start);timer.resolution = (float)(((double)1.0f) / ((double)timer.frequency));timer.pf_timer_elapsed = timer.pf_timer_start;}


However, i solved that time problem. I'm currently working on the rotation and having a bit of problem with that. A bit mutch code to post but i'll just harrass you for help a bit more if i can't colve it

[edited by - Android_s on August 26, 2003 4:08:36 PM]

[edited by - Android_s on August 26, 2003 4:10:46 PM]
----------------------------------------------------------------------------------------------------------------------"Ask not what humanity can do for you, ask what you can do for humanity." - By: Richard D. Colbert Jr.
Ok, good luck.

An ASCII tetris clone... | AsciiRis
An ASCII tetris clone... | AsciiRis

This topic is closed to new replies.

Advertisement