New game uploaded: Traveller-Trader (mini)

All aspects of programming on the Commander X16.
Post Reply
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

New game uploaded: Traveller-Trader (mini)

Post by rje »




Traveller-Trader (mini)




View File






This is a space trading simulation using Traveller ships, worlds, trade rules, and so on.  It contains over 500 worlds in and around the Spinward Marches, and it's primitive.  I've been working on an improved version; for now, this playable version serves as a test.

 






  • Submitter




    rje




  • Submitted


    12/27/20




  • Category







 
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

New game uploaded: Traveller-Trader (mini)

Post by rje »


I've planned the data structures for an improved version.  Time for a better version of this game.

One big question: BASIC, or C?

BASIC Pro: Accessibility x 3.  You can re-run it.  You can list it.  Etc.

BASIC Con: BASIC doesn't scale well.

C Pro: C scales much better. 

C Con: It can't be re-run once exiting; you'd have to reload.  This is a side-effect of cc65, which is what I use.

 

Speed is not an issue.  There are pauses in the BASIC version, but they're not distracting.

 

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Traveller-Trader (mini)

Post by desertfish »



2 hours ago, rje said:




It can't be re-run once exiting; you'd have to reload.  This is a side-effect of cc65



Why is this? It’s a curious restriction. I have an idea why this could be the case but I also think it’s possible to work around it. 

rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

New game uploaded: Traveller-Trader (mini)

Post by rje »


It may be workaroundable, but I haven't looked into it.

 

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Traveller-Trader (mini)

Post by desertfish »


I have to clarify - i meent in the general sense, not actually practically achievable per se with cc65.

i asked because I struggled with the same issue for prog8 .  Certain types of variables are allocated statically and are not reinitialized at program start  but other types are, it’s a trade off , and allows restarting the program if you are careful enough and don’t have to rely on the statically initialized values.  

 

Post Reply