Skip to content

CheckSimGames/VirtualControllerDemo

Repository files navigation

Virtual Controller Demo

This project is a simple example of moving a player around the screen in a SpriteKit using GCVirtualController, an Apple class in the Game Controller framework to create virtual game controllers on an iOS touch screen. Use the virtual joystick on the left side of the screen to move the sprite.

This project accompanies the following article: Using Virtual Controllers in an iOS Game

System Requirements

iOS 15+

Interesting Files

The Player.swift file has the code for working with the virtual controller. Look at the connectVirtualController function.

About

A simple project that shows how to move a sprite in a SpriteKit game using a virtual controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages