A classic need help

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
Derpy Dinosaur2o3
Posts: 24
Joined: October 20th, 2012, 1:38 am
Location: Australia

A classic need help

Post by Derpy Dinosaur2o3 » December 7th, 2012, 1:20 am

ok so i have no idea what i have done wrong but im guessing most of whats in there is wrong anyway since i haven't been completely following chilli's videos by that i mean i change variables to different names which is what probably got me in this mess. But what it should be doing is making X then press and O ect but you cant replace and X or O. Im up to episode 12 @ 1hour 20min
Attachments
Derpy Dinosaurs Project.zip
(37.1 KiB) Downloaded 155 times
Paradox I LOVE EM

poschi
Posts: 9
Joined: November 28th, 2012, 1:08 am
Location: Germany

Re: A classic need help

Post by poschi » December 7th, 2012, 7:26 am

Your code:

Code: Select all

void Game::ComposeFrame()
{
.......
	//Render Grid
	for( int iy = 0; iy < 3; iy++ )
	{
		for( int ix = 0; ix < 3; ix++ )
		{
			if( getSquareState( iy, ix ) == Xfill )
				{
					DrawX( BaseX + ix * SquareSize, BaseY + iy * SquareSize );
				}

		    else if ( getSquareState( iy, ix ) == Ofill )
				{
					DrawX( BaseX + ix * SquareSize, BaseY + iy * SquareSize );
				}
		}
	}
}
Your error is right here. I guess you will see it too;)

Musi
Posts: 106
Joined: November 25th, 2012, 1:06 am

Re: A classic need help

Post by Musi » December 7th, 2012, 7:28 am

EDIT: You beat me to it. I'll let Derpy find it.
Musi

There are 10 types of people that understand binary.
Those that do, and those that don't.

drBUD
Posts: 5
Joined: December 3rd, 2012, 9:02 pm

Re: A classic need help

Post by drBUD » December 7th, 2012, 11:12 am

can anyone tell me why i got 1 frame per second when i run my programs but everything i DL from here runs smooth?

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: A classic need help

Post by LuX » December 7th, 2012, 4:27 pm

drBUD, how far are you on the tutorials? Have you watched and followed them carefully as the framework gets enhanced in just about every episode on the first few tutorials. Mainly somewhere around lesson 8 or so where we change the frame routine completely.
ʕ •ᴥ•ʔ

User avatar
Derpy Dinosaur2o3
Posts: 24
Joined: October 20th, 2012, 1:38 am
Location: Australia

Re: A classic need help

Post by Derpy Dinosaur2o3 » December 8th, 2012, 11:43 am

thanks guys i was hoping you would let me figure it out i just needed a push in the right direction

other wise its just not fun
Paradox I LOVE EM

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: A classic need help

Post by chili » December 9th, 2012, 8:58 am

I think the fix to the putpixel routing comes in at lesson 13... I really should do something in lesson 1 or 2 to let people know at least that a fix is coming. I never anticipated that the lock thrashing would impact some systems so hard.
Chili

Post Reply