GameDev Xmas Challenge – Day 2: System code

Another day and another hour done! Working on a fresh new project often means that you’ll spend the first half of the project coding the underlying system, so sorry in advance for the lack of cool images in this post :) Hopefully the time-lapse is cool enough!

Today I worked mostly on the turn-based nature of the gameplay. When a player now clicks on their chosen tile the camera moves back to viewing all sections and the next player can make their move. Technically there is also support for more than two player however I’ll have to experiment with that later and there probably needs to be major game design changes to make that compelling.

Another thing I made was the check for which sections are valid for a given player’s move. As per the rules of Ultimate Tic Tac Toe, only the sections corresponding to the tile clicked is valid for the next player’s move (i.e. if player A clicks a center tile then player B has to make his/her move in the center section). The invalid sections also dim down as so:


GIF

bla
I also started on the state checks to figure out if a section is completed by a player however I only managed to fit checking the rows into the hour (but it works! 😀 ).

A completed section.
A completed section.

All in all a somewhat dull but very rewarding hour. I managed to get a lot done and I reckon that I will have the base done within the next 2-3 days. After that I can start working on some more visual aspects which I’m looking forward to!

 

Here’s the time-lapse of Day 2:

About Kenth Ljung

2012 Programming