Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 8th, 2008, 12:57 PM   #1
ghg5
Newbie
 
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0 ghg5 is on a distinguished road
Memory game newGame() method help

I have a memory game (attached) that I have been working on for a while in my spare time and It is working except for a few issues. The main problem I am having Is that the new game method isn't working properly. I think my problem might lie in the fact that I declare the button array within the new game method and the second time I do this its throwing my indexes off? Not really sure what the problem is. Is their some way I can dispose all the memory used so it basically just reloads the app? One other issue I had was that I couldn't find a way to disable the buttons and keep their image in color; any quick fixes? If someone has some time to take a look at this and make some suggestions that would be a huge help.
Attached Files
File Type: zip Memory.zip (212.2 KB, 2 views)
ghg5 is offline   Reply With Quote
Old May 9th, 2008, 1:18 AM   #2
BstrucT
Hobbyist Programmer
 
BstrucT's Avatar
 
Join Date: Dec 2007
Location: Durban, South-Africa
Posts: 194
Rep Power: 1 BstrucT is on a distinguished road
Re: Memory game newGame() method help

I am getting two of your file read error 1 when trying to run the Memory.EXE


Also an exception error occurs when I click on the blocks. ( It's just trying to read the image files from your directory, which I don't have.)

Looks like a cool game.
Will take a look at your code shortly.
__________________
Be kinder than necessary because everyone you meet is fighting some kind of battle.
BstrucT is offline   Reply With Quote
Old May 9th, 2008, 10:26 AM   #3
ghg5
Newbie
 
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0 ghg5 is on a distinguished road
Re: Memory game newGame() method help

Thanks for taking some time to look at it. The file read exceptions will happen until you create some text files to hold the high scores and plug in the proper file names in the code (even then I think you need some actual records in the files or it will still give you the error). I included all the images (and some text files for high scores) and all that if you go through the code and change the file and directory names to match your computer.
ghg5 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coder's Block Arena - The Game AI Platform Sane Existing Project Development 23 May 6th, 2008 9:12 PM
Visualizing How Game Development Would Take Place Josef_Stalin Coder's Corner Lounge 4 Mar 14th, 2008 10:52 AM
Heap vs. Stack memory Eric the Red C++ 11 Oct 24th, 2006 6:18 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Programmers Needed! Online Game troy_eisert C++ 2 Jan 29th, 2005 12:51 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:47 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC