Skip to content

Instantly share code, notes, and snippets.

@akirill0v
Created November 2, 2012 08:35
Show Gist options
  • Save akirill0v/3999505 to your computer and use it in GitHub Desktop.
Save akirill0v/3999505 to your computer and use it in GitHub Desktop.
signals 'hit()', 'missed()', 'angleChanged(int)', 'forceChanged(int)',
'canShoot(bool)'
slots 'setAngle(int)', 'setForce(int)', 'shoot()', 'moveShot()',
'newTarget()', 'setGameOver()', 'restartGame()'
#...
def restartGame()
if isShooting()
@autoShootTimer.stop()
end
@gameEnded = false
update()
emit canShoot( true )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment