Skip to content

Commit

Permalink
use nicer syntax for closure block
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Jan 10, 2017
1 parent 889f73f commit e223862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlappyBird/GameScene.swift
Expand Up @@ -92,7 +92,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate{
movePipesAndRemove = SKAction.sequence([movePipes, removePipes])

// spawn the pipes
let spawn = SKAction.run({() in self.spawnPipes()})
let spawn = SKAction.run(spawnPipes)
let delay = SKAction.wait(forDuration: TimeInterval(2.0))
let spawnThenDelay = SKAction.sequence([spawn, delay])
let spawnThenDelayForever = SKAction.repeatForever(spawnThenDelay)
Expand Down

0 comments on commit e223862

Please sign in to comment.