![]() |
| | #1 |
| Registered User Join Date: Aug 2006
Posts: 32
| C# Game using Forms I am trying to write a sports management game in C#, played mainly by clicking buttons to move between difference screens, rather than a video graphics based game. I am wondering what the best way to create this game is? So far, I have chosen each new screen to be represented as a form. For example, clicking the "go to match" button from the "team select screen" form, will open up a new form, "match screen". Is this the best way of doing it? When a new form is created, data is passed between the two forms. This way means that I cannot "Close()" any of the forms, but must just "Hide()" them, as it seems that a form must always have its parent form active. How can I have a global class that will store data without having to rely on passing data between forms? Thanks for any help you can give me, Ed. |
| ejohns85 is offline | |
| | #2 |
| Registered User Join Date: Mar 2005 Location: Mountaintop, Pa
Posts: 1,059
| I would suggest you use a public static class to hold your variables with get/set accessor properties. |
| BobS0327 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a simple Windows game | ejohns85 | C Programming | 1 | 05-22-2009 12:46 PM |
| Open Source / Semi Open source game idea. Help needed | CaptainPatent | Projects and Job Recruitment | 10 | 05-16-2007 10:44 AM |
| game engine advice? | stien | Game Programming | 0 | 01-23-2007 03:46 PM |
| how do the game engine and the api interact? | Shadow12345 | Game Programming | 7 | 06-05-2002 10:06 PM |
| My Maze Game --- A Few Questions | TechWins | Game Programming | 18 | 04-24-2002 11:00 PM |