<commit_before>//
//  GameScene.swift
//  Game Template tvOS/iOS/OSX
//
//  Created by <NAME> on 12/12/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import SpriteKit

class GameScene: InitScene {
    
    // *************************************************************
    // Game States
    // *************************************************************
    
    enum GameState {
        case Tutorial
        case Play
    }
    
    // *************************************************************
    // Layers (zPosition)
    // *************************************************************
    
    enum Layer: CGFloat {
        case Background
        case Ground
        case Hero
        case UI
    }
    
    // *************************************************************
    // Physics Body Categories (bitwise)
    // *************************************************************
    
    struct PhysicsCategory {
        static let None: UInt32 =   1 << 0 // 00000000000000000000000000000001
        static let Hero: UInt32 =   1 << 1 // 00000000000000000000000000000010
        static let Ground: UInt32 = 1 << 2 // 00000000000000000000000000000100
    }
    
    // *************************************************************
    // MARK: - Constants & Properties
    // *************************************************************
    
    let kImpulse: CGFloat = 200.0
    var dt: NSTimeInterval = 0
    var lastUpdateTime: NSTimeInterval = 0
    var gameState: GameState = .Tutorial
    let worldNode = SKNode()
    
    // Demo Specific
    let ship = SKSpriteNode(imageNamed:"Spaceship")
    let coinDropSound = SKAction.playSoundFileNamed("sfx_point.wav", waitForCompletion: false)
    let musicOn = false
    let kIntroSongName = "PositiveGameMusic.mp3"
    let sktAudio = SKTAudio()
    var jetParticle = SKEmitterNode()
    var userTouching = false
    var backgroundSongs: [String] = []
    
    // *************************************************************
    // MARK: - didMoveToView<commit_msg>turned game music back on<commit_after>//
//  GameScene.swift
//  Game Template tvOS/iOS/OSX
//
//  Created by <NAME> on 12/12/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import SpriteKit

class GameScene: InitScene {
    
    // *************************************************************
    // Game States
    // *************************************************************
    
    enum GameState {
        case Tutorial
        case Play
    }
    
    // *************************************************************
    // Layers (zPosition)
    // *************************************************************
    
    enum Layer: CGFloat {
        case Background
        case Ground
        case Hero
        case UI
    }
    
    // *************************************************************
    // Physics Body Categories (bitwise)
    // *************************************************************
    
    struct PhysicsCategory {
        static let None: UInt32 =   1 << 0 // 00000000000000000000000000000001
        static let Hero: UInt32 =   1 << 1 // 00000000000000000000000000000010
        static let Ground: UInt32 = 1 << 2 // 00000000000000000000000000000100
    }
    
    // *************************************************************
    // MARK: - Constants & Properties
    // *************************************************************
    
    let kImpulse: CGFloat = 200.0
    var dt: NSTimeInterval = 0
    var lastUpdateTime: NSTimeInterval = 0
    var gameState: GameState = .Tutorial
    let worldNode = SKNode()
    
    // Demo Specific
    let ship = SKSpriteNode(imageNamed:"Spaceship")
    let coinDropSound = SKAction.playSoundFileNamed("sfx_point.wav", waitForCompletion: false)
    let musicOn = true
    let kIntroSongName = "PositiveGameMusic.mp3"
    let sktAudio = SKTAudio()
    var jetParticle = SKEmitterNode()
    var userTouching = false
    var backgroundSongs: [String] = []
    
    // *************************************************************
    // MARK: - didMoveToView
{'fraction_non_alphanumeric': 0.3368216110975907, 'fraction_numerical': 0.06084205402774397, 'mean_word_length': 2.9557266602502406, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5770965', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1000, 'n_words': 247}