Skip to content

Latest commit

 

History

History

2SuperOXO

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SUPERPOWERS TUTORIAL #2 SUPER OXO

Learn game development with a Tic Tac Toe game

Summary

  1. Introduction
  2. Building the Game Structure
  3. Writing the Player actions, Game logic part 1
  4. Writing the Computer response, Game logic part 2
  5. Polishing the Game
  6. Complete Game Source Reference

What we will learn in this tutorial

  • Set up assets and build a scene for a Tic Tac Toe in Superpowers
  • Write a mouse behavior for the player to choose how to play by clicking on an object
  • Write functions inside a namespace to access it later from our others scripts
  • Write a simple AI that check a game situation to make responds accordingly
  • Superpowers and TypeScript API methods used:
    • Sup.Math.Ray()
    • Math.floor and Math.random
    • Sup.Actor()
    • Actor.addBehavior()
    • Sup.getActor().destroy()
    • Sup.setTimeout()