Episode 4: Entering the Tic Tac Factory
June 8th, 2007

Summary

Today's episode is the first of a two part project, we will be creating a networked/multiplayer tic-tac-toe game.

Oh yes, everyone's favorite childhood game is back and oh so much better than ever. Challenge your friends, your co-workers, your dog, anyone who's willing to lose.. errr... play.

We will be creating custom classes, modules, and more. By taking a Canvas and extending its functionality, we are able to create a functional game board that is playable and dynamic. We will be using controls such as Lines and BevelButtons in today's project.

Show Notes
  • Explain the project we are going to be creating
  • Explain how lines can be useful and exactly how the X1, X2, Y1, Y2 points work
  • Arrange our lines into the game board grid.
  • Explain the background of a class and how it can be useful
  • Create a custom Canvas class to support our game squares
  • Create properties and methods/functions for our new Class
  • Create and disucss the game logic and implement that logic into an expandable module
  • Write the main logic methods and create custom methods to support the logic
  • Implement the game squares onto the game board
  • Create ‘New Game’ methods and buttons using BevelButton and show game status and arrange final GUI using
  • StaticText
  • BevelButton
  • Lines
  • Custom Class Control
  • Complete by testing for game logic and functionality to prepare for networking modules to be implemented

Downloads

Download the rb project file (12 kB)
here

Watch the tutorial on blip.tv
here

Tip: You can download the episode and watch it fullscreen AFTER it has completly loaded by right-clicking on the movie