Edited By s-m-r on 6/15/2011
This is a very simple example file (in MFA format) for a single-player, turn-based economic simulator. It describes how to manipulate Alterable Values and internal Flags of objects to simulate a free market environment. It is useful for those of you who want to create your own turn-based economic sims.
The frame that holds the game engine is heavily commented, and includes descriptions on nearly each line of code to let you know what I was thinking while planning the events and conditions, and what each of the events does.
You can download the stand-alone EXE of this engine here:
http://www.let-off.com/software/examples/alpacashear/alpacashear.exe
HOW TO PLAY
Once you start the game, you'll see four distinct areas in the screen. Clockwise from upper left you have the Alpaca Pen; your Assets (cash and products); the Shear Shop; and the Market.
Purchase an alpaca for $30 by clicking on the "Buy An Alpaca" button; you'll see one show up in your Alpaca Pen if you have enough money.
Click "Pass a Month" to let your alpaca grow bigger. Also note that whenever you advance a month, your alpaca grows larger, you spend money to feed and care for your alpaca ($2 per animal), and market prices may fluctuate.
To use the shear shop, click on it to change the product that you want to make from the animal's wool: socks, rugs, or coats. Then when you've chosen your product, click on an alpaca and drag it to the shear shop; the animal will disappear, and you'll have a certain amount of that product available to sell, based upon the weight of the animal you sheared. You'll also have advanced a month.
To sell products, first make sure you have either Socks, Coats, or Rugs to sell. Make sure the product is visible in the Shear Shop (or click the Shear Shop to switch to a different product) then click on the "Sell ->" button. This will remove all of the selected product from your stock, and add an amount of cash to your total equal to the number of products times the market value for that product. This also advances time one month.
If you ever run out of money or you go past 60 months (5 years), the game is over and you have failed. If you ever make over $1,000, you succeed.
Any questions, comments, feedback, etc. ? Please contact me or comment below. Thanks!
Review This Download
http://www.let-off.com/software/examples/alpacashear/alpacashear.mfa (899.22 kkb )
|