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
Console Programming - Tetris
Honestly I got those functions from NeHe. I wanted to skip the MMtimer and use PFtimer instead
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement