Skip to content

john-difool/maze-gameplaykit-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maze: Getting Started with GameplayKit Rewritten in Swift

This sample demonstrates how to use several features in GameplayKit to create a simple variation on several classic arcade games:

  • GKEntity/GKComponent architecture for modular, reusable game logic
  • GKStateMachine to control general behavior of game characters
  • GKRuleSystem to control some aspects of game character behavior using fuzzy logic
  • GKGraph and related classes for grid-based pathfinding to plan character routes in a maze

Playing the game

Move the player character (bright blue diamond) around the maze while avoiding the enemy characters (colored squares). If you can't escape, use a powerup to make the enemy characters flee. While they're fleeing, run into one to defeat it, sending it back to its starting position.

OS X: Arrow keys to move the player, space bar for powerup. iOS: Swipe to move the player, tap for powerup.

Requirements

Build

Xcode 7.2, iOS 9.3 SDK or OS X 10.11 SDK

Runtime

iOS 9.0 or OS X 10.11

Copyright (C) 2016 Apple Inc. All rights reserved.

About

Maze: Getting started with GameplayKit rewritten in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages