From 71045152800ab0cc0dce6ec70dba9d7f9bb9dab5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 18 Jun 2009 17:20:59 -0400 Subject: Started Board class --- gamestate.cpp | 92 +++++++++++++++++++++-------------------------------------- 1 file changed, 32 insertions(+), 60 deletions(-) (limited to 'gamestate.cpp') diff --git a/gamestate.cpp b/gamestate.cpp index 0bcf3d7..fd115f8 100644 --- a/gamestate.cpp +++ b/gamestate.cpp @@ -2,43 +2,44 @@ GameState::GameState(SDL_PixelFormat* fmt) { - int x,y; - for (y=0;y= WIDTH) - { - *x = *x-WIDTH; - } else if (*y >= HEIGHT) - { - *y = *y-HEIGHT; - } -} - void GameState::render(SDL_Surface* screen) { - SDL_Rect block; - block.w = 16; - block.h = 16; - - int x,y; - - for (y=0;y