Skip to content

galenoshea/Postsynaptic-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Postsynaptic-Simulator Level Tutorial

Requirements

  • Apple Computer

Download Xcode

TableViewController

  • Navigate to tableViewController Class. Append the level number and level name to the end of level array.

    , ("Level #", "Level Name")

*Notice the comma to separate the new element.

screen shot 2018-10-22 at 2 56 01 pm

LevelViewController

  • In the ViewDidLoad method add a path to your level by following how the other levels are instantiated. Change only the numbers that apply to your level class.

screen shot 2018-10-22 at 3 00 51 pm

Level Class

  • Create new Scene Class by going File > New > File > Swift File.
  • Copy the code from the image below. Change and add attributes as you see fit.

screen shot 2018-10-22 at 3 02 33 pm

  • Custom Goals can be created by adding an override method to update.
  • Here the Goal is to inhibit the neuron from firing for 45 seconds to win the level.

screen shot 2018-10-22 at 4 10 14 pm

Level Scene

  • Create new Scene Class by going File > New > File > Spritekit Scene.
  • add Nodes by clicking the library button (circle with a square inside on top right of screen) and adding empty nodes along the path (these will be invisible) and colour nodes for the visible nodes that will be clicked on.
  • Change texture by choosing an image from the right of screen to distinguish inhibitory excitatory.
  • Give each node the naming convention Node followed by a unique number by changing the name attribute on the right of screen.

screen shot 2018-10-22 at 3 06 16 pm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages