thanks for the feedback, I am searching around for a better collision detection for my next version. I will be sure to fix these old problems!
Type: Posts; User: cMADsc
thanks for the feedback, I am searching around for a better collision detection for my next version. I will be sure to fix these old problems!
yes, you can open xml files with text editors but xml can make data organization easier. Just write yourself a nice parser.
<player>
<name>Mario</name>
<score>1500></score>...
Instead of using a txt file use an XML file!
Here is the game and the source, enjoy!!!!
Greetings all, please pay my BreakOut clone, Turman-Nate. There are only 5 boards. The next version will be full screen and better all around. Source code is include, constructive criticism is...
Sorry about that, I forgot about how notepad acts. This new file is
in a zip file and contains the .cpp file. Also, there are no compiler errors but there most be some type of runtime error...
Greatings all, the problem with my BreakOut clone is that after the program starts running it tends to slow up then terminates. I am not sure why it does this. Well my game loop is not the best but...
www.winprog.org is a great site although there is nothing like a good book that u can always pick up when needed, "Petzold". As a programmer who will end up having your own personal library . Try...
Hey Novacain, that was some good advice. I guess I got careless,
ie:DeleteObject((hdc, GetStockObject(WHITE_BRUSH)));
Although, i am not to familiar with double buffering in win32, just in...
ok that is the whole code, just copy and paste and u can see my premature game at work.
/**********************************************
the header FILE 1/2
*********************************************/
#include<windows.h>
#define ROW 7
#define COLUMNS 6
#define PLAYER 1
i am pretty familar with WM_CTLCOLORSTATIC, thanks to my trusted copy of Petzolds book. Although, I have not created any static windows. I will search though.
#define PLAYER 1
#define COM 2
#define VACANT 3
//the board is 7 x 6, 42 total spots
//a structure is used to keep count which positions on the
//board are marked
struct tagboard
{
int...
I have made a little connect 4 game. the board is 7 x 6 which i just used 42childwindows in a single array. the problem is that i cannot seem to set the initial color of the child windows to yellow. ...
LoadMenu(hInstance, MAKEINTRESOURCE(IDR_MENU));
or
wc.lpszMenuName = NULL;
.
.
.
LRESULT CALLBACK WndProc ( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
{
www.winprog.org
You have to process the WM_COMMAND message in your Dailog's procedure
BOOL CALLBACK DialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case...
I hope this help, for instance instead of using a matrix use a single dimension array. The spaces needed is constant. For example for tic-tac-toe there is only 9 spaces available so just declare an...