This is so far the most advance thing I have written to date. It’s got variables, if/else statements and a random function :O omgosh.
So basically what’s happing in this code is that I have some cake. And I want to randomise if the cake is safe to eat or not. So I have a random function picking either 1 or 2. If it picks 1 the cake is safe to eat.
I also have these doors that are connected to the cake. So there’s a door titled safe and a door titled poisonous, now if the cake is safe you need to go though the safe door. For testing I’ve added these extra text so I know where the code is up too. This way I can make sure everything works fine.
Now that everything is working time to like gut it and place it into the game.
Big thanks to Jesse-face for helping me with the random function.