https://basiclang.solarpunk.au/d/6-game-oats-for-my-goats/12
Trying to think where to go from here.
The point of the game will be to collect oats in the fields, and then 'spend' them at the shop.
I think the only function that the shop will serve is to purchase randomly named items for some number of oats.
At the moment what I am able to do is read two strings and print them in a fancy fashion one after the other on the screen.
It may be that all I have to do is concatenate an adjective + noun into a single string, and then store that within an inventory. What would that look like?
ITEM$ = ADJECTIVE$ + NOUN$
Which is derived from:
RESTORE INT(RND(50))+1
READ ADJECTIVE$
RESTORE INT(RND(75))+50
READ NOUN$
From here, I will have to come up with some sort of inventory system. I am not quite sure right now how I am going to do that. Doing this:
DIM INVENTORY$(10)
Initialises a string of length 10 bytes. It does not initialise an array of strings. Here perhaps we are coming up against the limits of Tiny BASIC, but, we will persist...
- replies
- 0
- announces
- 1
- likes
- 0