This is the first time I will try to compete in a contest. Hopefully I will be able to finish the game before the deadline. If not, oh well, I will still finish it.

Progress:

  1. Main Screen

    1. Background
      Done
    2. Options
      Creating a second menu
    3. Loaded Game Protection
      Adding a popup menu.

  2. Settings

    1. Options
      Not done
    2. Moving Cursor
      Not done
    3. Changing Options
      Not done
    4. Background
      Just a Red Background. I don't know if it looks good. Done

    I have a new idea, it's inGame settings and a lot easier to be controlled. Shouldn't have bugs this time.
  3. New Game

    1. Settings Compatibility
      Done
    2. Game
      I have started on it but, not much done yet.
    3. Headers
      Done, added an appvar header for structs.
    4. Map
      Have it. Don't know if I'm implementing it because it's approx. 20 KB
    5. AppVar usage
      Nothing Done
    6. Saving
      Nothing Done

  4. Load Game
    Same as New Game
  5. AppVar

    1. High score
      Updating
    2. Reading and Writing
      Reading=Updating
      Writing=see this

So my idea so far uses the American Railways since the early 1800's. Basically you're the owner of this one train the goes around the United States with shipments. Events happen along your routes (have a small list of events that will grow soon) and as time goes on, new railways open up. The game is supposed to be somewhat realistic with a lot of fiction too.

Anyways, I have to come up with a list of cities (in the US) that the game will use. This is my current list:
Chicago, IL
New York City, NY
Boston, MA
Pittsburgh, PA
Richmond, VA
Detroit, MI
New Orleans, LA
St. Louis, MO
Bismarck, ND
Houston, TX
Denver, CO
Albuquerque, NM
Promontory Point, UT
Boise, ID
Sacramento, CA
San Fransico, CA
Seattle, WA
Los Angeles, CA

Does anyone have any other ideas? I'd say I want a max of 25 cities.
Comments? Questions? Very Happy
How do you access appvars when coding in C?
seanlego23 wrote:
How do you access appvars when coding in C?

See the fileioc.h library and its examples for interfacing with AppVars.
May I request Austin, Texas for you list of cities?
Kydapoot wrote:
May I request Austin, Texas for you list of cities?

Sure. I'm thinking about some other cities also. I'll update the list soon.
Also, does anyone know what Syntax Error code 100 is? I keep getting it for my header files when i try to execute the make command.

Edit:
Nevermind, just had to work the kinks out of my C++ syntax and change it to C syntax. lol.
How do you access an image inside of your program?
Use the RecallPic command. If you're using a color calc I don't know if its any different or not.
Kydapoot wrote:
Use the RecallPic command. If you're using a color calc I don't know if its any different or not.

Sorry. Forgot to specify that I don't know how in C.
I have updated my cities list to 25 cities across the US, and they are all connected. Will post the list soon.
Oh. I don't know C so I can't help you there. Neutral

Code:

#ifndef CITIES_H
#define CITIES_H
        /*List of Cities.
         *Comments show:
         *City Abbreviation
         *Cities Connected to
         *New connections are defined after a second '('
         *# defines how many connections */
        enum cities {
        //1830-1860, the cities that follow are available during those years
        Boston,           //BN 2((NY,DT
        NYC,              //NY 3(BN, (PH,DC
        Pittsburgh,       //PH 3(NY, (DC,CL
        DC,               //DC 3(NY,PH, (RD
        Richmond,         //RD 3(DC, (OO,CL
        Orlando,          //OO 3(RD, (CO,NO
        Cleveland,        //CL 4(PH,RD, (DT,CO
        Detroit,          //DT 3(BN,CL, (CO
        Chicago,          //CO 6(OO,CL,DT, (SL,NO,MP
        StLouis,          //SL 5(CO, (MP,HN,EP,DN
        NewOrleans,       //NO 3(OO,CO, (HN
        Minneapolis,      //MP 3(CO,SL, (BM
        Bismarck,         //BM 3(MP, (DN,BO
        //1860-1930, ""
        Houston,          //HN 3(SL,NO, (EP
        ElPaso,           //EP 3(SL,HN, (AB
        Albuquerque,      //AB 3(EP, (DN,PX
        Denver,           //DN 4(SL,BM,AB, (PP
        Phoenix,          //PX 3(AB, (LV,LA
        PromontoryPoint,  //PP 4(DN, (BO,LV,SO
        Boise,            //BO 3(BM,PP, (ST
        LasVegas,         //LV 3(PX,PP, (LA
        LosAngeles,       //LA 3(PX,LV, (SF
        SanFransico,      //SF 3(LA, (SO,ST
        Sacramento,       //SO 2(PP,SF
        Seattle           //ST 2(BO,SF
        }cities_e;
#endif CITIES_H
By images do you by any chanc mean sprites? If so, there are functions in the graphx library for them.
Unicorn wrote:
By images do you by any chanc mean sprites? If so, there are functions in the graphx library for them.

Well I saw those, and I know what they do, however I do not know how to use them.
But what if like you have an image, i.e. image.png, how could you put that into the program?
Kydapoot wrote:
Use the RecallPic command. If you're using a color calc I don't know if its any different or not.

For the record, it's the same although it is not very widely used since pics on the CSE are 22kb and the storepic-recallpic commands actually take a little while since there is so much more pixels.
How would you have multiple variables be defined and have them each have a struct with different variables defined in it? In my program, I have cities (as defined above), and each of those cities are connected to other cities. My cities are their own variable, and so are the paths. How would I make the paths, corresponding to their city, available to that city variable? Sorry if this is confusing.
Make the variable globally defined so you can scope it easier. As for sprites, simply typing 'convpng' in your gfx directory works fine as long as you modify the convpng.ini file. You can find the complete readme on the convpng github release page.
Which is better:
Using os_GetKey/os_GetCSC (define which is better and why please)
or
Using the Keypadc library?
seanlego23 wrote:
Which is better:
Using os_GetKey/os_GetCSC (define which is better and why please)
or
Using the Keypadc library?


The comments in some of the examples say that os_GetCSC is not as good at using the keyboard libraries.

I use the keyboard library, as you can specify which key you want, and it has syntax that makes sense.
That's what I thought, but just wanted to make sure, Thanks
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement