The project

After making the Minesweeper, I wanted to create something more elaborated. I decided to make a clone of Monopoly. Almost everybody has played at least one time to Monopoly, so I don’t need to make an introduction.

How it works

I started with the player movement and the dice. When everything was smooth and playable, I started to make the cards. One thing I like about them is the fact that they aren’t images. Cards are rendered based in the info assigned to its cell. With this method I don’t need to be hours making each card, and if I want to change a value, I just do it once and the card will change automatically. The cash flow of each player is pretty easy to implement. The jail cell has given me headaches with the go to jail movement and several bugs I’ve already fixed. Houses and hotels were also very buggy, especially when you sold them. I also had troubles implementing the functionality of some Chance and Community Chest cards, as I had to change the way I made some functions. With the functionality of mortgages/unmortgages I learnt to access to a child object parameter in Unity. It’s a little different from most common programming languages. Be in mind that now you can have negative cash due to testing.

The main functionality of the game, trading, has been implemented after spending long hours in front of the computer. It wasn’t difficult, but it took a long time. The panel where you can select which properties you want to trade is generated each time using the information of the game at that stage.

What’s next?

Actions will be implemented in the future. I will also make the UI as it deserves. Now it’s just a couple of text boxes and buttons. I will also add a computer player by making some kind of AI. Now the bot is dumb and does not trade nor sell houses nor mortgaging. Finally, I might try to add multiplayer, probably Peer 2 Peer.

View Code on Github

for Windows 64bit

for Andorid