My first game completely made on my own.
Only game 1 is in right now,the code started to feel a little messy might move on from this one
Learned lots more about dealing with graphics and sounds with this one still a lot to learn though and some sounds
i just couldnt get to work
was also a good practice making the state machine but would like to find a way thats not a giant IF statement
player 2 is labeled as ai for now maybe ill come back to this just to practice coding ai
-----RULES------
set score to win this is what player score must be to win, you will win when you bank points over that score
on your turn roll the die as many times as you like, bank when you want to add points to your score and pass your turn
if you ever roll a 1 your points from the turn are lost and your turn is passed



Nice first game! I love a good dice game.
It would definitely be good to come up with a rule set for the CPU player as to when it rolls vs. banks and have those things happen without player input. You could even set up difficulty levels by having it behave differently based on the chosen difficulty level. I do this in a couple of my games. In my Ludo game, the difficulty level selection controls how aggressively the CPU players attack other players, send pieces out from its base when rolling a 6, and some other stuff.
One quick note - your 6 die has 7 dots on it :).



thank you for checking out my game! and for the feedback and tips!
wow must have been one of those things just staring at the screen so long how did I not notice that 7 sided die XD
pico8 definitely seems to shine when singleplayer is an option so I think learning how to code some simple ai will be my next project



Yeah, it's definitely doable. You can start with something pretty simple and static, like the AI player always rolls if the round score < 8 and banks on 8 or more. Then if you want you can get more complicated and build on that. Maybe add a simple rule, like 20% of the time it will gamble a bit and not bank until 12. Those kinds of rules are easy to check just using rnd(), so if rnd()<=0.2 then the AI banks at 12 or more for that round, otherwise it banks at 8 like normal. Those kinds of things are not too hard to put in but add a bit of "personality" to the AI player by not having them play exactly the same way every round.
[Please log in to post a comment]