Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 23rd, 2006, 7:09 AM   #1
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
game in visual

ok i am making a game in visual basic and want to know how if i were wanting to save a users game how i would do that and then store there name in a listbox so when they click on there name there game will load
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 8:15 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Save all the game data to a file. When you start the program up, load all the data from the file. Easy.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 23rd, 2006, 2:49 PM   #3
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
what kind of file do you mean i am to save it in?
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 2:51 PM   #4
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
or could you give me the code
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 2:56 PM   #5
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
oh and not to be a pest but can i make my game then have add ins for the game like that would add a new topic or something like that?
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 3:27 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It's your game. Do what you like with it.

You're writing a game, so I'm going to assume you know how to handle files. Open up your save file, and write everything you need to to it - the number of lives you have, how many points you've got, whereabouts you are, etc. If you want to have multiple saved games, you can use multiple files.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 23rd, 2006, 3:34 PM   #7
gumbyman31
Newbie
 
Join Date: May 2006
Location: Inside
Posts: 14
Rep Power: 0 gumbyman31 is on a distinguished road
Send a message via AIM to gumbyman31
Any type of file. I've played games that store all of the data to a simple .INI file. Of course this made cheating easy, but it worked.
__________________
Use the best: Linux for servers, Mac for graphics, Windows for Solitaire.
gumbyman31 is offline   Reply With Quote
Old May 23rd, 2006, 3:53 PM   #8
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
im really dissapointed to tell you this but (i dont know how to handle files)
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 4:18 PM   #9
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Quote:
Originally Posted by Donnie
im really dissapointed to tell you this but (i dont know how to handle files)
Donnie.....Donnie.......Donnie................dude..don't run before you can walk (or something like that)..........learn the basic first.............is like some trying to build a house without any foundations..................if you go head first into a langauge without knowing the basics............it is totaly going to put you off the whole language............happened to me.............so i though i just warn you
kruptof is offline   Reply With Quote
Old May 23rd, 2006, 7:13 PM   #10
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5 lectricpharaoh will become famous soon enough
Okay, things you need to know to write a game include general program logic and basic I/O (you need input from the user, after all). You also need to learn how to validate that input, so that your program doesn't puke on its shoes when the user does something 'wrong' (which users do quite often).

Other things that you will likely need to learn are:


  • File handling- otherwise, you cannot save/load games, high scores, etc, or dynamically load graphics at runtime- in other words, all the graphics would need to be embedded in the .EXE, which is generally an inflexible approach)
  • Graphics- depending on the type of game; text adventures, for example, don't need graphics, but the vast majority of games today make heavy use of them. Also, how you handle graphics varies from system to system, and even on one system, there are various ways to do it.
  • Sound- most games also rely heavily on digital sound effects and music. Like graphics programming, sound programming is highly dependant on the target platform.
  • Data structures- things like linked lists, binary search trees, and the like. These are important in most games programming, just as they are in regular applications or systems programming, but in games, there is an emphasis on choosing the fastest algorithms, so even if you don't learn to write your own, you at least need to learn how to pick the most appropriate ones to use.
So, as you can see, there's lots to learn, especially for games programming. Besides, as to your original question, maybe if you offered a little more information (what kind of game, etc), it would help.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:04 AM.

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