diff --git a/Game.gd b/Game.gd index 5a3e822..89708ac 100644 --- a/Game.gd +++ b/Game.gd @@ -1,92 +1,706 @@ extends Node -var dice = 0 # 0 - 5 -var turnPoints = 0 # 0 - 100 -var player1Points = 0 # 0 - 100 -var player2Points = 0 # 0 - 100 -var currentPlayer = 0 # 0 - 1 +var current = 0 # 0 = left - 1 = right + +var tempElapsed = 0 +var diced = false +var dice = 0 +var diceTime = 0 +var diceCount = 0 +var thinkTime = 0.5 +var againCount = 0 +var againMax = 3 +var againRandom = 7 +var enemyAgainMax = 3 + +var diceMovement = 0 + +var playerScore = 0 +var playerRoundScore = 0 + +var currentEnemy = 0 +var enemies = ["rat", "cat", "rabbit", "dog", "monkey", "bear", "cow", "dragon", "pig"] + +var lives = 3 +var extraLife = false +var extraLifeLimit = 0 const colorActive = Color("#ffffff") -const colorInactive = Color("#bbbbbb") +const colorInactive = Color("#909090") +const assetPath = "res://assets/" +const imagePath = assetPath + "image/" +const texFileExt = ".png" + +var playTest = false # demo mode +var music = true +var effects = true +var tougher = false +var speedRun = false + +var saveGame = File.new() #file +var highScorePath = "user://highscore.save" +var highScoreData = {"1": 4000, "2": 3000, "3": 2000, "4": 1000, "5": 500} + +var settingsPath = "user://settings.save" +var settingsData = {"FullScreen": 0, "Music": 1, "SoundEffects": 1, "Tougher": 0, "FastMode": 0} + +func createHighScoreSave(): + saveGame.open(highScorePath, File.WRITE) + saveGame.store_var(highScoreData) + saveGame.close() + +func createSettingsSave(): + saveGame.open(settingsPath, File.WRITE) + saveGame.store_var(settingsData) + saveGame.close() + +func readHighScore(): + saveGame.open(highScorePath, File.READ) + highScoreData = saveGame.get_var() + saveGame.close() + +func readSettings(): + saveGame.open(settingsPath, File.READ) + settingsData = saveGame.get_var() + saveGame.close() + +func updateHighScoreLabels(): + $HighScoreView/Background/Label1.text = str(highScoreData["1"]) + $HighScoreView/Background/Label2.text = str(highScoreData["2"]) + $HighScoreView/Background/Label3.text = str(highScoreData["3"]) + $HighScoreView/Background/Label4.text = str(highScoreData["4"]) + $HighScoreView/Background/Label5.text = str(highScoreData["5"]) + +func updateSavedSettings(): + if bool(settingsData["FullScreen"]) and not OS.window_fullscreen: + OS.set_window_fullscreen(true) + elif not bool(settingsData["FullScreen"]) and OS.window_fullscreen: + OS.set_window_fullscreen(false) + + music = bool(settingsData["Music"]) + if music: + $MusicPlayer.play() + else: + $MusicPlayer.stop() + + effects = bool(settingsData["SoundEffects"]) + tougher = bool(settingsData["Tougher"]) + speedRun = bool(settingsData["FastMode"]) + + updateSettings() + +func saveHighScore(highScore): + + var scores = [] + for score in highScoreData: + scores.append(highScoreData[score]) + + scores.append(highScore) + scores.sort() + scores.pop_front() + + if not scores.count(highScore): + return false + + highScoreData.clear() + + highScoreData["1"] = scores[4] + highScoreData["2"] = scores[3] + highScoreData["3"] = scores[2] + highScoreData["4"] = scores[1] + highScoreData["5"] = scores[0] + + saveGame.open(highScorePath, File.WRITE) + saveGame.store_var(highScoreData) + saveGame.close() + + updateHighScoreLabels() + return true + +func saveSettings(): + + settingsData["FullScreen"] = bool(OS.window_fullscreen) + settingsData["Music"] = bool(music) + settingsData["SoundEffects"] = bool(effects) + settingsData["Tougher"] = bool(tougher) + settingsData["FastMode"] = bool(speedRun) + + saveGame.open(settingsPath, File.WRITE) + saveGame.store_var(settingsData) + saveGame.close() func _ready(): randomize() + + if not saveGame.file_exists(settingsPath): + createSettingsSave() + else: + readSettings() + updateSavedSettings() + + if not saveGame.file_exists(highScorePath): + createHighScoreSave() + else: + readHighScore() + + updateHighScoreLabels() + + set_process(true) + updateSettings() + + newGame() + resetPlayerScore() + loadEnemy() + +func loadEnemy(): + $Player2.texture = load(imagePath + enemies[currentEnemy] + texFileExt) + + var level = 0 + if currentEnemy < 3: + level = 0 + elif currentEnemy < 6: + level = 3 + else: + level = 6 + + $enemy1.texture = load(imagePath + enemies[level] + texFileExt) + if level < currentEnemy: + $enemy1.modulate = colorInactive + else: + $enemy1.modulate = colorActive + $enemy2.texture = load(imagePath + enemies[level + 1] + texFileExt) + if level + 1 < currentEnemy: + $enemy2.modulate = colorInactive + else: + $enemy2.modulate = colorActive + $enemy3.texture = load(imagePath + enemies[level + 2] + texFileExt) + if level + 2 < currentEnemy: + $enemy3.modulate = colorInactive + else: + $enemy3.modulate = colorActive + + $LevelProgress.value = currentEnemy + updateInfos() + +func nextEnemy(): + currentEnemy = (currentEnemy + 1) % enemies.size() + loadEnemy() + +func updateLives(): + $pig1.modulate = colorActive + $pig2.modulate = colorActive + $pig3.modulate = colorActive + if lives <= 2: + $pig3.modulate = colorInactive + if lives <= 1: + $pig2.modulate = colorInactive + if lives == 0: + $pig1.modulate = colorInactive + +func updateInfos(): + var rand = randi() % 4 + + if currentEnemy == 0: + match rand: + 0: $Player2Name.text = "Chuck E. Cheese" + 1: $Player2Name.text = "Nigel Ratburn" + 2: $Player2Name.text = "Remy the Rat" + 3: $Player2Name.text = "Professor Ratigan" + $Player2Info.text = "" + enemyAgainMax = 2 + againRandom = 4 + elif currentEnemy == 1: + match rand: + 0: $Player2Name.text = "Cindy Clawford" + 1: $Player2Name.text = "Cat Damon" + 2: $Player2Name.text = "Catzilla" + 3: $Player2Name.text = "The Great Catsby" + $Player2Info.text = "x2" + enemyAgainMax = 2 + extraLife = true + extraLifeLimit = 200 + againRandom = 5 + elif currentEnemy == 2: + match rand: + 0: $Player2Name.text = "Harry Hopper" + 1: $Player2Name.text = "Rabbit De Niro" + 2: $Player2Name.text = "Eddie Rabbit" + 3: $Player2Name.text = "David Hasselhop" + $Player2Info.text = "x2" + enemyAgainMax = 3 + extraLife = true + extraLifeLimit = 300 + againRandom = 6 + elif currentEnemy == 3: + match rand: + 0: $Player2Name.text = "The Notorious D.O.G." + 1: $Player2Name.text = "Captain Sniffer" + 2: $Player2Name.text = "Miss Furbulous" + 3: $Player2Name.text = "Santa Paws" + $Player2Info.text = "x3" + enemyAgainMax = 3 + againRandom = 7 + elif currentEnemy == 4: + match rand: + 0: $Player2Name.text = "Bubbles The Chimp" + 1: $Player2Name.text = "Curious George" + 2: $Player2Name.text = "Mighty J. Young" + 3: $Player2Name.text = "Space Albert" + $Player2Info.text = "x3" + enemyAgainMax = 4 + extraLife = true + extraLifeLimit = 300 + againRandom = 8 + elif currentEnemy == 5: + match rand: + 0: $Player2Name.text = "Lazy Bear" + 1: $Player2Name.text = "Fuzzy Wuzzy" + 2: $Player2Name.text = "Mr. Goodbear" + 3: $Player2Name.text = "Wojtek the Soldier" + $Player2Info.text = "x4" + enemyAgainMax = 4 + extraLife = true + extraLifeLimit = 300 + againRandom = 9 + elif currentEnemy == 6: + match rand: + 0: $Player2Name.text = "MooDonna" + 1: $Player2Name.text = "Mrs. Buttercup" + 2: $Player2Name.text = "Mooham Ed" + 3: $Player2Name.text = "Bessie Milkshake" + $Player2Info.text = "x4" + enemyAgainMax = 5 + extraLife = true + extraLifeLimit = 400 + againRandom = 10 + elif currentEnemy == 7: + match rand: + 0: $Player2Name.text = "Pep Falcor" + 1: $Player2Name.text = "Elliot Drakhead" + 2: $Player2Name.text = "Zag Reptar" + 3: $Player2Name.text = "Drogon Magneto" + $Player2Info.text = "x5" + enemyAgainMax = 5 + againRandom = 11 + elif currentEnemy == 8: + match rand: + 0: $Player2Name.text = "Chris P. Bacon" + 1: $Player2Name.text = "Albert Einswine" + 2: $Player2Name.text = "Piggie Smalls" + 3: $Player2Name.text = "Amy Swinehouse" + $Player2Info.text = "x6" + enemyAgainMax = 5 + againRandom = 12 + + if not tougher and extraLife and (lives < 3): + $Player2Info.text += " (" + str(extraLifeLimit) + " > 1UP)" + +func updatePlayerScore(): + if playerScore == 0: + $ScoreValue.text = str(playerRoundScore) + elif playerRoundScore == 0: + $ScoreValue.text = str(playerScore) + else: + $ScoreValue.text = str(playerScore) + " + " + str(playerRoundScore) + +func resetPlayerScore(): + playerScore = 0 + playerRoundScore = 0 + updatePlayerScore() + +func addPlayerRoundScore(score): + playerRoundScore = playerRoundScore + score + updatePlayerScore() + +func addPlayerScore(): + var multi = 1 + if currentEnemy == 1 or currentEnemy == 2: + multi = 2 + elif currentEnemy == 3 or currentEnemy == 4: + multi = 3 + elif currentEnemy == 5 or currentEnemy == 6: + multi = 4 + elif currentEnemy == 7: + multi = 5 + elif currentEnemy == 8: + multi = 6 + + if not tougher and extraLife and (playerRoundScore >= extraLifeLimit) and (lives < 3): + lives += 1 + updateLives() + + playerScore += playerRoundScore * multi + playerRoundScore = 0 + updatePlayerScore() + +func resetPlayerRoundScore(): + playerRoundScore = 0; + updatePlayerScore() + +func newGame(): + $Player1Score.text = str(0) + $Player2Score.text = str(0) + $RoundScore.text = str(0) + $RoundScore.modulate = colorInactive + switchToPlayer1() + $SpeechAnger.visible = false + +var thinkingBlinking = 0 + +func _process(delta): + tempElapsed = tempElapsed + delta + + if diced: + if tempElapsed < diceTime: + diceMovement = diceMovement + delta + if diceMovement >= 0.03: + $Dice.frame = randi() % 6 + diceMovement = 0 + else: + diced = false + $Dice.frame = dice + handleDice() + + if playTest or (current == 1): + setThinkTime() + + elif playTest or (current == 1): + if tempElapsed < thinkTime: + if thinkingBlinking < 0: + $Thinking.visible = false + thinkingBlinking = randi() % 33 + else: + if current == 1: + $Thinking.visible = true + thinkingBlinking -= 1 + + return; + + $Thinking.visible = false + + var finish = false + if current == 0: + finish = (int($Player1Score.text) + int($RoundScore.text)) >= 100 + else: + finish = (int($Player2Score.text) + int($RoundScore.text)) >= 100 + + var seek = false + if current == 0: + seek = int($Player2Score.text) - int($Player1Score.text) - int($RoundScore.text) > 10 + else: + seek = int($Player1Score.text) - int($Player2Score.text) - int($RoundScore.text) > 10 + + var seekToWin = false + if current == 0: + seekToWin = (int($Player2Score.text) > 87) and (int($Player1Score.text) > 55) + else: + seekToWin = (int($Player1Score.text) > 87) and (int($Player2Score.text) > 55) + + var urgentSeekToWin = false + if current == 0: + urgentSeekToWin = (int($Player2Score.text) > 93) and (int($Player1Score.text) > 80) + else: + urgentSeekToWin = (int($Player1Score.text) > 93) and (int($Player2Score.text) > 80) + + if (current == 1) and (urgentSeekToWin or seekToWin): + $SpeechAnger.visible = true + else: + $SpeechAnger.visible = false + + var tooSmall = int($RoundScore.text) <= 4 + var again = randi() % againRandom + + if ((again == 0) and !seek and !tooSmall and !seekToWin) or ((againCount > againMax) and !urgentSeekToWin) or finish: + if current == 0: + roundPlayer1() + else: + roundPlayer2() + else: + dice() + againCount = againCount + 1 + + if int($Player1Score.text) >= 100: + print("1 won: ", int($Player1Score.text), " - ", int($Player2Score.text), " - ", $ScoreValue.text) #debug + addPlayerScore() + nextEnemy() + if currentEnemy == 0: + checkHighScore(true) + + lives = 3 + resetPlayerScore() + loadEnemy() + updateLives() + + newGame() + if int($Player2Score.text) >= 100: + print("2 won: ", int($Player1Score.text), " - ", int($Player2Score.text), " - ", $ScoreValue.text) #debug + resetPlayerRoundScore() + newGame() + lives -= 1 + if lives == 0: + checkHighScore(false) + + lives = 3 + currentEnemy = 0 + resetPlayerScore() + loadEnemy() + + updateLives() + updateInfos() + +func checkHighScore(won): + var text = "Game Over ! Try Again..." + if won: + text = "Wow.. You Won !" + if saveHighScore(playerScore): + text = "New Score: " + str(playerScore) + " - " + text + + $GameStateView/Background/Title.text = text + $GameStateView.popup() + +func restartGame(): + currentEnemy = 0 + lives = 3 + resetPlayerScore() + loadEnemy() + updateLives() + newGame() - resetTurnPoints() - resetPlayerPoints() - setCurrentPlayer(0) - -func resetTurnPoints(): - turnPoints = 0 - $Turn/Points.text = str(0) - -func resetPlayerPoints(): - player1Points = 0 - $Player1/Points.text = str(0) - player2Points = 0 - $Player2/Points.text = str(0) - -func setCurrentPlayer(player): - currentPlayer = player - if currentPlayer == 0: - $Player1/Points.modulate = colorActive - $Player2/Points.modulate = colorInactive - $Turn/Left.modulate = colorActive - $Turn/Left.disabled = false - $Turn/Right.modulate = colorInactive - $Turn/Right.disabled = true - else: - $Player1/Points.modulate = colorInactive - $Player2/Points.modulate = colorActive - $Turn/Left.modulate = colorInactive - $Turn/Left.disabled = true - $Turn/Right.modulate = colorActive - $Turn/Right.disabled = false - -func setNextPlayer(): - resetTurnPoints() - if currentPlayer == 0: - setCurrentPlayer(1) - else: - setCurrentPlayer(0) +func setThinkTime(): + if speedRun: + thinkTime = 0 + else: + thinkTime = randf() * 2 + 0.5 + if current == 1: + $Thinking.visible = true + tempElapsed = 0 func _on_DiceButton_pressed(): + if !playTest && (current == 0): + dice() + +func dice(): + if diced: + return + dice = randi() % 6 $Dice.frame = dice - if dice == 0: - $Sound/Pig.play() - setNextPlayer() - return - + $DiceButton.disabled = true + diced = true + tempElapsed = 0 + diceMovement = 0 + var diceType = randi() % 4 if diceType == 0: - $Sound/Dice1.play() + diceTime = 0.3 + if effects: + $DiceAudio1.play() if diceType == 1: - $Sound/Dice2.play() + diceTime = 0.1 + if effects: + $DiceAudio2.play() if diceType == 2: - $Sound/Dice3.play() + diceTime = 0.5 + if effects: + $DiceAudio3.play() if diceType == 3: - $Sound/Dice4.play() + diceTime = 0.2 + if effects: + $DiceAudio4.play() - turnPoints += dice + 1 - $Turn/Points.text = str(turnPoints) +func _on_DiceHiddenButton_pressed(): + if !playTest && (current == 0): + dice() + +func handleDice(): + $DiceButton.disabled = false + if dice == 0: + $RoundScore.text = str(0) + $RoundScore.modulate = colorInactive + if effects: + $PigAudio.play() + diceCount = 0 + if current == 0: + switchToPlayer2() + else: + switchToPlayer1() + else: + $RoundScore.text = str(dice + 1 + int($RoundScore.text)) + $RoundScore.modulate = colorActive + diceCount = diceCount + 1 -func _on_Left_pressed(): - if turnPoints == 0: +func roundPlayer2(): + if int($RoundScore.text) == 0: return + + $Player2Score.text = str(int($RoundScore.text) + int($Player2Score.text)) + $RoundScore.text = str(0) + $RoundScore.modulate = colorInactive + switchToPlayer1() + if effects: + $HoldAudio.play() + diceCount = 0 + +func roundPlayer1(): + if int($RoundScore.text) == 0: + return + + $Player1Score.text = str(int($RoundScore.text) + int($Player1Score.text)) + addPlayerRoundScore(int($RoundScore.text) * diceCount) + $RoundScore.text = str(0) + $RoundScore.modulate = colorInactive + switchToPlayer2() + if effects: + $HoldAudio.play() + diceCount = 0 + +func _on_RoundButton_pressed(): + if !playTest && (current == 0): + roundPlayer1() + +func _on_ArrowLeft_pressed(): + if !playTest && (current == 0): + roundPlayer1() + +func switchToPlayer1(): + $ArrowRight.modulate = colorInactive + $ArrowRight.disabled = true + $Player2Score.modulate = colorInactive + $ArrowLeft.modulate = colorActive + $ArrowLeft.disabled = false + $Player1Score.modulate = colorActive + current = 0 + doCPU() + $Thinking.visible = false + +func switchToPlayer2(): + $ArrowLeft.modulate = colorInactive + $ArrowLeft.disabled = true + $Player1Score.modulate = colorInactive + $ArrowRight.modulate = colorActive + $ArrowRight.disabled = false + $Player2Score.modulate = colorActive + current = 1 + doCPU() + +func doCPU(): + setThinkTime() + againCount = 0 + againMax = randi() % enemyAgainMax + 1 - $Sound/Hold.play() +func _on_MenuButton_pressed(): + $MenuView.popup() - player1Points += turnPoints - $Player1/Points.text = str(player1Points) - setNextPlayer() +func _on_ScoreButton_pressed(): + $HighScoreView.popup() -func _on_Right_pressed(): - if turnPoints == 0: - return +func _on_NewGame_pressed(): + restartGame() + $MenuView.hide() - $Sound/Hold.play() +func _on_Quit_pressed(): + get_tree().quit() - player2Points += turnPoints - $Player2/Points.text = str(player2Points) - setNextPlayer() +func _on_Instruments_pressed(): + $InstructionsView.popup() + +func _on_Settings_pressed(): + $SettingsView.popup() + +func updateSettings(): + if OS.window_fullscreen: + $SettingsView/Background/FullScreenButton.text = "On" + else: + $SettingsView/Background/FullScreenButton.text = "Off" + + if music: + $SettingsView/Background/MusicButton.text = "On" + else: + $SettingsView/Background/MusicButton.text = "Off" + + if effects: + $SettingsView/Background/EffectsButton.text = "On" + else: + $SettingsView/Background/EffectsButton.text = "Off" + + if tougher: + $SettingsView/Background/TougherButton.text = "On" + else: + $SettingsView/Background/TougherButton.text = "Off" + + if speedRun: + $SettingsView/Background/FastModeButton.text = "On" + else: + $SettingsView/Background/FastModeButton.text = "Off" + + if playTest: + $DemoButton.modulate = colorActive + else: + $DemoButton.modulate = colorInactive + +func _on_FullScreenButton_pressed(): + if OS.window_fullscreen: + OS.set_window_fullscreen(false) + $SettingsView/Background/FullScreenButton.text = "Off" + else: + OS.set_window_fullscreen(true) + $SettingsView/Background/FullScreenButton.text = "On" + + saveSettings() + +func _on_MusicButton_pressed(): + if music: + $MusicPlayer.stop() + music = false; + $SettingsView/Background/MusicButton.text = "Off" + else: + $MusicPlayer.play() + music = true + $SettingsView/Background/MusicButton.text = "On" + + saveSettings() + +func _on_EffectsButton_pressed(): + if effects: + effects = false; + $SettingsView/Background/EffectsButton.text = "Off" + else: + effects = true + $SettingsView/Background/EffectsButton.text = "On" + + saveSettings() + +func _on_TougherButton_pressed(): + if tougher: + tougher = false; + $SettingsView/Background/TougherButton.text = "Off" + else: + tougher = true + $SettingsView/Background/TougherButton.text = "On" + + saveSettings() + +func _on_FastModeButton_pressed(): + if speedRun: + speedRun = false; + $SettingsView/Background/FastModeButton.text = "Off" + else: + speedRun = true + $SettingsView/Background/FastModeButton.text = "On" + + saveSettings() + +func _on_Credits_pressed(): + $CreditsView.popup() + +func _on_Link_pressed(): + OS.shell_open("https://lava-block.com") + +func _on_DemoButton_pressed(): + playTest = not playTest + restartGame() + + if playTest: + $DemoButton.modulate = colorActive + else: + $DemoButton.modulate = colorInactive diff --git a/Game.tscn b/Game.tscn index 6a5158c..77ee8df 100644 --- a/Game.tscn +++ b/Game.tscn @@ -1,22 +1,30 @@ -[gd_scene load_steps=18 format=2] +[gd_scene load_steps=40 format=2] [ext_resource path="res://Game.gd" type="Script" id=1] [ext_resource path="res://assets/image/wood.png" type="Texture" id=2] -[ext_resource path="res://assets/image/dices.png" type="Texture" id=3] -[ext_resource path="res://assets/font/Grandstander-clean.ttf" type="DynamicFontData" id=4] -[ext_resource path="res://assets/image/arrow.png" type="Texture" id=5] +[ext_resource path="res://assets/image/wood2.png" type="Texture" id=3] +[ext_resource path="res://assets/font/CHLORINR.TTF" type="DynamicFontData" id=4] +[ext_resource path="res://assets/image/rat.png" type="Texture" id=5] [ext_resource path="res://assets/image/pig.png" type="Texture" id=6] -[ext_resource path="res://assets/image/rat.png" type="Texture" id=7] -[ext_resource path="res://assets/sound/dice1.wav" type="AudioStream" id=8] -[ext_resource path="res://assets/sound/dice2.wav" type="AudioStream" id=9] -[ext_resource path="res://assets/sound/dice3.wav" type="AudioStream" id=10] -[ext_resource path="res://assets/sound/dice4.wav" type="AudioStream" id=11] -[ext_resource path="res://assets/sound/hold.wav" type="AudioStream" id=12] -[ext_resource path="res://assets/sound/pig.wav" type="AudioStream" id=13] +[ext_resource path="res://assets/image/dices.png" type="Texture" id=7] +[ext_resource path="res://assets/font/Grandstander-clean.ttf" type="DynamicFontData" id=8] +[ext_resource path="res://assets/image/arrow.png" type="Texture" id=9] +[ext_resource path="res://assets/sound/dice1.wav" type="AudioStream" id=10] +[ext_resource path="res://assets/sound/dice2.wav" type="AudioStream" id=11] +[ext_resource path="res://assets/sound/dice3.wav" type="AudioStream" id=12] +[ext_resource path="res://assets/sound/dice4.wav" type="AudioStream" id=13] +[ext_resource path="res://assets/sound/pig.wav" type="AudioStream" id=14] +[ext_resource path="res://assets/sound/hold.wav" type="AudioStream" id=15] +[ext_resource path="res://assets/image/cow.png" type="Texture" id=16] +[ext_resource path="res://assets/image/dragon.png" type="Texture" id=17] +[ext_resource path="res://assets/image/menu.png" type="Texture" id=18] +[ext_resource path="res://assets/image/score.png" type="Texture" id=19] +[ext_resource path="res://assets/sound/music.ogg" type="AudioStream" id=20] +[ext_resource path="res://assets/image/comic.png" type="Texture" id=21] [sub_resource type="DynamicFont" id=1] -size = 70 +size = 120 use_mipmaps = false use_filter = false font_data = ExtResource( 4 ) @@ -24,34 +32,187 @@ _sections_unfolded = [ "Font", "Settings" ] [sub_resource type="DynamicFont" id=2] -size = 100 +size = 142 use_mipmaps = false use_filter = false -font_data = ExtResource( 4 ) +font_data = ExtResource( 8 ) _sections_unfolded = [ "Font", "Settings" ] [sub_resource type="DynamicFont" id=3] -size = 142 +size = 100 use_mipmaps = false use_filter = false -font_data = ExtResource( 4 ) +font_data = ExtResource( 8 ) _sections_unfolded = [ "Font", "Settings" ] [sub_resource type="DynamicFont" id=4] -size = 142 +size = 70 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=5] + +size = 30 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=6] + +size = 17 +use_mipmaps = true +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="StyleBoxFlat" id=7] + +content_margin_left = -1.0 +content_margin_right = -1.0 +content_margin_top = -1.0 +content_margin_bottom = -1.0 +bg_color = Color( 1, 1, 1, 1 ) +draw_center = true +border_width_left = 0 +border_width_top = 0 +border_width_right = 0 +border_width_bottom = 0 +border_color = Color( 0.8, 0.8, 0.8, 1 ) +border_blend = false +corner_radius_top_left = 0 +corner_radius_top_right = 0 +corner_radius_bottom_right = 0 +corner_radius_bottom_left = 0 +corner_detail = 8 +expand_margin_left = 0.0 +expand_margin_right = 0.0 +expand_margin_top = 0.0 +expand_margin_bottom = 0.0 +shadow_color = Color( 0, 0, 0, 0.6 ) +shadow_size = 0 +anti_aliasing = true +anti_aliasing_size = 1 + +[sub_resource type="StyleBoxFlat" id=8] + +content_margin_left = -1.0 +content_margin_right = -1.0 +content_margin_top = -1.0 +content_margin_bottom = -1.0 +bg_color = Color( 0.564706, 0.564706, 0.564706, 1 ) +draw_center = true +border_width_left = 0 +border_width_top = 0 +border_width_right = 0 +border_width_bottom = 0 +border_color = Color( 0.8, 0.8, 0.8, 1 ) +border_blend = false +corner_radius_top_left = 0 +corner_radius_top_right = 0 +corner_radius_bottom_right = 0 +corner_radius_bottom_left = 0 +corner_detail = 8 +expand_margin_left = 0.0 +expand_margin_right = 0.0 +expand_margin_top = 0.0 +expand_margin_bottom = 0.0 +shadow_color = Color( 0, 0, 0, 0.6 ) +shadow_size = 0 +anti_aliasing = true +anti_aliasing_size = 1 + +[sub_resource type="DynamicFont" id=9] + +size = 60 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=10] + +size = 60 use_mipmaps = false use_filter = false font_data = ExtResource( 4 ) _sections_unfolded = [ "Font", "Settings" ] +[sub_resource type="DynamicFont" id=11] + +size = 40 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=12] + +size = 40 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=13] + +size = 14 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=14] + +size = 28 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=15] + +size = 16 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=16] + +size = 40 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=17] + +size = 20 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[sub_resource type="DynamicFont" id=18] + +size = 50 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + [node name="Game" type="Node" index="0"] script = ExtResource( 1 ) [node name="Background" type="TextureRect" parent="." index="0"] +modulate = Color( 0.439216, 0.439216, 0.439216, 1 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 @@ -67,120 +228,94 @@ size_flags_vertical = 1 texture = ExtResource( 2 ) expand = true stretch_mode = 2 -_sections_unfolded = [ "Margin" ] - -[node name="Dice" type="Sprite" parent="." index="1"] - -position = Vector2( 510, 330 ) -scale = Vector2( 2, 2 ) -texture = ExtResource( 3 ) -vframes = 2 -hframes = 3 -_sections_unfolded = [ "Transform" ] +_sections_unfolded = [ "Rect", "Visibility" ] -[node name="DiceButton" type="Button" parent="." index="2"] +[node name="WhiteBottom" type="TextureRect" parent="." index="1"] +modulate = Color( 0.196078, 0.196078, 0.196078, 1 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 400.0 -margin_top = 190.0 -margin_right = 630.0 -margin_bottom = 267.0 +margin_top = 560.0 +margin_right = 1024.0 +margin_bottom = 600.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 -custom_fonts/font = SubResource( 1 ) -toggle_mode = false -enabled_focus_mode = 0 -shortcut = null -group = null -text = "Dice!" -flat = true -align = 1 -_sections_unfolded = [ "Margin", "custom_fonts" ] - -[node name="Turn" type="Node" parent="." index="3"] +texture = ExtResource( 3 ) +expand = true +stretch_mode = 2 +_sections_unfolded = [ "Rect", "Visibility" ] -[node name="Left" type="TextureButton" parent="Turn" index="0"] +[node name="WhiteBottom2" type="TextureRect" parent="." index="2"] +modulate = Color( 0.196078, 0.196078, 0.196078, 1 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 410.0 -margin_top = 500.0 -margin_right = 510.0 -margin_bottom = 600.0 -rect_rotation = 180.0 +margin_right = 1024.0 +margin_bottom = 140.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 0 -shortcut = null -group = null -texture_normal = ExtResource( 5 ) -_sections_unfolded = [ "Margin", "Rect", "Textures" ] +texture = ExtResource( 3 ) +expand = true +stretch_mode = 2 +_sections_unfolded = [ "Rect", "Visibility" ] -[node name="Points" type="Label" parent="Turn" index="1"] +[node name="Title" type="Label" parent="." index="3"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 440.0 -margin_top = 420.0 -margin_right = 590.0 -margin_bottom = 520.0 +margin_right = 1024.0 +margin_bottom = 120.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 -custom_fonts/font = SubResource( 2 ) -text = "123" +custom_fonts/font = SubResource( 1 ) +text = "Dice Pig" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 -_sections_unfolded = [ "Margin", "custom_fonts" ] +_sections_unfolded = [ "Rect", "custom_fonts" ] -[node name="Right" type="TextureButton" parent="Turn" index="2"] +[node name="Player2" type="TextureRect" parent="." index="4"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 610.0 -margin_top = 400.0 -margin_right = 710.0 -margin_bottom = 500.0 +margin_left = 700.0 +margin_top = 150.0 +margin_right = 1000.0 +margin_bottom = 370.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false +focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 0 -shortcut = null -group = null -texture_normal = ExtResource( 5 ) -_sections_unfolded = [ "Margin", "Textures" ] - -[node name="Player1" type="Node" parent="." index="4"] +texture = ExtResource( 5 ) +stretch_mode = 4 +_sections_unfolded = [ "Rect", "Textures" ] -[node name="Image" type="TextureRect" parent="Player1" index="0"] +[node name="Player1" type="TextureRect" parent="." index="5"] anchor_left = 0.0 anchor_top = 0.0 @@ -192,15 +327,25 @@ margin_right = 320.0 margin_bottom = 370.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false -mouse_filter = 1 +focus_mode = 2 +mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 texture = ExtResource( 6 ) stretch_mode = 4 -_sections_unfolded = [ "Margin" ] +_sections_unfolded = [ "Rect", "Textures", "Visibility" ] + +[node name="Dice" type="Sprite" parent="." index="6"] -[node name="Points" type="Label" parent="Player1" index="1"] +position = Vector2( 510, 330 ) +scale = Vector2( 2, 2 ) +texture = ExtResource( 7 ) +vframes = 2 +hframes = 3 +_sections_unfolded = [ "Animation", "Offset", "Region", "Transform" ] + +[node name="Player1Score" type="Label" parent="." index="7"] anchor_left = 0.0 anchor_top = 0.0 @@ -216,38 +361,64 @@ mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 -custom_fonts/font = SubResource( 3 ) +custom_fonts/font = SubResource( 2 ) text = "121" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 -_sections_unfolded = [ "Margin", "custom_fonts" ] +_sections_unfolded = [ "Rect", "custom_fonts" ] -[node name="Player2" type="Node" parent="." index="5"] +[node name="RoundScore" type="Label" parent="." index="8"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 440.0 +margin_top = 420.0 +margin_right = 590.0 +margin_bottom = 520.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 3 ) +text = "123" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "Rect", "custom_fonts" ] -[node name="Image" type="TextureRect" parent="Player2" index="0"] +[node name="RoundButton" type="Button" parent="." index="9"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 700.0 -margin_top = 150.0 -margin_right = 1000.0 -margin_bottom = 370.0 +margin_left = 430.0 +margin_top = 400.0 +margin_right = 590.0 +margin_bottom = 510.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false -mouse_filter = 1 +mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 -texture = ExtResource( 7 ) -stretch_mode = 4 -_sections_unfolded = [ "Margin" ] +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +flat = true +align = 1 -[node name="Points" type="Label" parent="Player2" index="1"] +[node name="Player2Score" type="Label" parent="." index="10"] anchor_left = 0.0 anchor_top = 0.0 @@ -263,69 +434,1714 @@ mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 -custom_fonts/font = SubResource( 4 ) +custom_fonts/font = SubResource( 2 ) text = "121" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 -_sections_unfolded = [ "Margin", "custom_fonts" ] +_sections_unfolded = [ "Rect", "custom_fonts" ] -[node name="Sound" type="Node" parent="." index="6"] +[node name="DiceButton" type="Button" parent="." index="11"] -[node name="Dice1" type="AudioStreamPlayer" parent="Sound" index="0"] - -stream = ExtResource( 8 ) -volume_db = 0.0 -autoplay = false -mix_target = 0 -bus = "Master" +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 190.0 +margin_right = 630.0 +margin_bottom = 267.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 4 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Dice!" +flat = true +align = 1 +_sections_unfolded = [ "Theme", "custom_fonts" ] -[node name="Dice2" type="AudioStreamPlayer" parent="Sound" index="1"] +[node name="DiceHiddenButton" type="Button" parent="." index="12"] -stream = ExtResource( 9 ) -volume_db = 0.0 -autoplay = false -mix_target = 0 -bus = "Master" +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 450.0 +margin_top = 270.0 +margin_right = 570.0 +margin_bottom = 390.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +flat = true +align = 1 -[node name="Dice3" type="AudioStreamPlayer" parent="Sound" index="2"] +[node name="ArrowRight" type="TextureButton" parent="." index="13"] -stream = ExtResource( 10 ) -volume_db = 0.0 -autoplay = false -mix_target = 0 -bus = "Master" +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 610.0 +margin_top = 400.0 +margin_right = 710.0 +margin_bottom = 500.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 9 ) +_sections_unfolded = [ "Rect", "Textures" ] -[node name="Dice4" type="AudioStreamPlayer" parent="Sound" index="3"] +[node name="ArrowLeft" type="TextureButton" parent="." index="14"] -stream = ExtResource( 11 ) -volume_db = 0.0 -autoplay = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 410.0 +margin_top = 500.0 +margin_right = 510.0 +margin_bottom = 600.0 +rect_rotation = 180.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 9 ) +_sections_unfolded = [ "Offset", "Rect", "Textures", "Visibility" ] + +[node name="DiceAudio1" type="AudioStreamPlayer" parent="." index="15"] + +stream = ExtResource( 10 ) +volume_db = 0.0 +pitch_scale = 1.0 +autoplay = false +mix_target = 0 +bus = "Master" + +[node name="DiceAudio2" type="AudioStreamPlayer" parent="." index="16"] + +stream = ExtResource( 11 ) +volume_db = 0.0 +pitch_scale = 1.0 +autoplay = false mix_target = 0 bus = "Master" -[node name="Hold" type="AudioStreamPlayer" parent="Sound" index="4"] +[node name="DiceAudio3" type="AudioStreamPlayer" parent="." index="17"] stream = ExtResource( 12 ) volume_db = 0.0 +pitch_scale = 1.0 autoplay = false mix_target = 0 bus = "Master" -[node name="Pig" type="AudioStreamPlayer" parent="Sound" index="5"] +[node name="DiceAudio4" type="AudioStreamPlayer" parent="." index="18"] stream = ExtResource( 13 ) volume_db = 0.0 +pitch_scale = 1.0 autoplay = false mix_target = 0 bus = "Master" -[connection signal="pressed" from="DiceButton" to="." method="_on_DiceButton_pressed"] +[node name="PigAudio" type="AudioStreamPlayer" parent="." index="19"] + +stream = ExtResource( 14 ) +volume_db = 0.0 +pitch_scale = 1.0 +autoplay = false +mix_target = 0 +bus = "Master" + +[node name="HoldAudio" type="AudioStreamPlayer" parent="." index="20"] + +stream = ExtResource( 15 ) +volume_db = 0.0 +pitch_scale = 1.0 +autoplay = false +mix_target = 0 +bus = "Master" + +[node name="enemy1" type="Sprite" parent="." index="21"] + +position = Vector2( 770, 570 ) +scale = Vector2( 0.25, 0.25 ) +texture = ExtResource( 16 ) +_sections_unfolded = [ "Transform" ] + +[node name="enemy2" type="Sprite" parent="." index="22"] + +position = Vector2( 850, 560 ) +scale = Vector2( 0.3, 0.3 ) +texture = ExtResource( 17 ) +_sections_unfolded = [ "Transform" ] + +[node name="enemy3" type="Sprite" parent="." index="23"] + +position = Vector2( 940, 550 ) +scale = Vector2( 0.4, 0.4 ) +texture = ExtResource( 6 ) +_sections_unfolded = [ "Offset", "Transform" ] + +[node name="pig1" type="Sprite" parent="." index="24"] + +position = Vector2( 90, 570 ) +scale = Vector2( 0.3, 0.3 ) +texture = ExtResource( 6 ) +_sections_unfolded = [ "Transform" ] + +[node name="pig2" type="Sprite" parent="." index="25"] + +position = Vector2( 170, 570 ) +scale = Vector2( 0.3, 0.3 ) +texture = ExtResource( 6 ) +_sections_unfolded = [ "Transform" ] + +[node name="pig3" type="Sprite" parent="." index="26"] + +position = Vector2( 250, 570 ) +scale = Vector2( 0.3, 0.3 ) +texture = ExtResource( 6 ) +_sections_unfolded = [ "Transform" ] + +[node name="Menu" type="Button" parent="." index="27"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 30.0 +margin_top = 30.0 +margin_right = 220.0 +margin_bottom = 76.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 5 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Menu" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="HighScore" type="Button" parent="." index="28"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 40.0 +margin_top = 90.0 +margin_right = 230.0 +margin_bottom = 136.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 5 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "High Score" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="VS" type="Label" parent="." index="29"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 290.0 +margin_top = 550.0 +margin_right = 380.0 +margin_bottom = 596.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 5 ) +text = "VS" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Score" type="Button" parent="." index="30"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 30.0 +margin_top = 40.0 +margin_right = 230.0 +margin_bottom = 77.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 5 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Score" +flat = true +align = 0 +_sections_unfolded = [ "custom_fonts" ] + +[node name="ScoreValue" type="Label" parent="." index="31"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 100.0 +margin_top = 90.0 +margin_right = 347.0 +margin_bottom = 121.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 5 ) +text = "123456 + 300" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="MenuButton" type="TextureButton" parent="." index="32"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 920.0 +margin_top = 30.0 +margin_right = 1012.0 +margin_bottom = 122.0 +rect_scale = Vector2( 0.8, 0.8 ) +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 18 ) +_sections_unfolded = [ "Rect", "Textures" ] + +[node name="ScoreButton" type="TextureButton" parent="." index="33"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 30.0 +margin_top = 30.0 +margin_right = 127.0 +margin_bottom = 128.0 +rect_scale = Vector2( 0.7, 0.7 ) +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 19 ) +_sections_unfolded = [ "Rect", "Textures" ] + +[node name="MusicPlayer" type="AudioStreamPlayer" parent="." index="34"] + +stream = ExtResource( 20 ) +volume_db = -0.3 +pitch_scale = 1.0 +autoplay = true +mix_target = 0 +bus = "Master" + +[node name="Player2Name" type="Label" parent="." index="35"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 740.0 +margin_top = 100.0 +margin_right = 920.0 +margin_bottom = 120.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 6 ) +text = "Chuck E. Cheese" +align = 2 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Player2Info" type="Label" parent="." index="36"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 110.0 +margin_top = 40.0 +margin_right = 234.0 +margin_bottom = 60.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 6 ) +text = "x2 (1Up > 200)" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="LevelProgress" type="ProgressBar" parent="." index="37"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 445.0 +margin_top = 553.0 +margin_right = 575.0 +margin_bottom = 573.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 0 +custom_styles/fg = SubResource( 7 ) +custom_styles/bg = SubResource( 8 ) +min_value = 0.0 +max_value = 9.0 +step = 1.0 +page = 0.0 +value = 4.0 +exp_edit = false +rounded = true +percent_visible = false +_sections_unfolded = [ "Percent", "Rect", "custom_styles" ] + +[node name="LevelProgressBorder" type="Line2D" parent="." index="38"] + +position = Vector2( 27.9451, -8.30573 ) +scale = Vector2( 0.945206, 1.01973 ) +points = PoolVector2Array( 440, 550, 580, 550, 580, 570, 504.322, 570, 440, 570, 440, 550 ) +width = 3.0 +default_color = Color( 0, 0, 0, 1 ) +texture_mode = 297 +sharp_limit = 2.0 +round_precision = 8 + +[node name="SpeechAnger" type="TextureRect" parent="." index="39"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 640.0 +margin_top = 150.0 +margin_right = 1098.0 +margin_bottom = 541.0 +rect_scale = Vector2( 0.3, 0.3 ) +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 1 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +texture = ExtResource( 21 ) +stretch_mode = 0 +_sections_unfolded = [ "Offset", "Rect", "Transform", "Visibility", "Z Index" ] + +[node name="Label" type="Label" parent="SpeechAnger" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 100.0 +margin_top = 133.0 +margin_right = 415.0 +margin_bottom = 213.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 9 ) +custom_colors/font_color = Color( 0, 0, 0, 1 ) +text = "&#@ยง!!!" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="HighScoreView" type="PopupPanel" parent="." index="40"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 130.0 +margin_right = 420.0 +margin_bottom = 570.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="HighScoreView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 390.0 +margin_bottom = 430.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="Title" type="Label" parent="HighScoreView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 10.0 +margin_right = 380.0 +margin_bottom = 70.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 10 ) +text = "High Score" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Label1" type="Label" parent="HighScoreView/Background" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 110.0 +margin_right = 380.0 +margin_bottom = 150.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "4000" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Label2" type="Label" parent="HighScoreView/Background" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 170.0 +margin_right = 380.0 +margin_bottom = 210.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "3000" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Label3" type="Label" parent="HighScoreView/Background" index="3"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 230.0 +margin_right = 380.0 +margin_bottom = 270.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "2000" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Label4" type="Label" parent="HighScoreView/Background" index="4"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 290.0 +margin_right = 380.0 +margin_bottom = 330.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "1000" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Label5" type="Label" parent="HighScoreView/Background" index="5"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 350.0 +margin_right = 380.0 +margin_bottom = 390.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "500" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="SettingsView" type="PopupPanel" parent="." index="41"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 130.0 +margin_right = 580.0 +margin_bottom = 570.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="SettingsView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 550.0 +margin_bottom = 430.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="Title" type="Label" parent="SettingsView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 10.0 +margin_right = 540.0 +margin_bottom = 70.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 10 ) +text = "Settings" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="FullScreen" type="Label" parent="SettingsView/Background" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 110.0 +margin_right = 380.0 +margin_bottom = 150.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "Full Screen" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Music" type="Label" parent="SettingsView/Background" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 170.0 +margin_right = 380.0 +margin_bottom = 210.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "Music" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Effects" type="Label" parent="SettingsView/Background" index="3"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 230.0 +margin_right = 380.0 +margin_bottom = 270.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "Sound Effects" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Tougher" type="Label" parent="SettingsView/Background" index="4"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 290.0 +margin_right = 380.0 +margin_bottom = 330.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "Tougher" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="FastMode" type="Label" parent="SettingsView/Background" index="5"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 350.0 +margin_right = 380.0 +margin_bottom = 390.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 11 ) +text = "Fast Mode" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="FullScreenButton" type="Button" parent="SettingsView/Background" index="6"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 110.0 +margin_right = 473.0 +margin_bottom = 156.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 12 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "On" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="MusicButton" type="Button" parent="SettingsView/Background" index="7"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 170.0 +margin_right = 473.0 +margin_bottom = 216.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 12 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "On" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="EffectsButton" type="Button" parent="SettingsView/Background" index="8"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 230.0 +margin_right = 473.0 +margin_bottom = 276.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 12 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "On" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="TougherButton" type="Button" parent="SettingsView/Background" index="9"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 290.0 +margin_right = 473.0 +margin_bottom = 336.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 12 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "On" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="FastModeButton" type="Button" parent="SettingsView/Background" index="10"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_top = 350.0 +margin_right = 473.0 +margin_bottom = 396.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 12 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "On" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="InstructionsView" type="PopupPanel" parent="." index="42"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 130.0 +margin_right = 580.0 +margin_bottom = 570.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="InstructionsView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 550.0 +margin_bottom = 430.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="Title" type="Label" parent="InstructionsView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 10.0 +margin_right = 540.0 +margin_bottom = 70.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 10 ) +text = "Instructions" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Info" type="RichTextLabel" parent="InstructionsView/Background" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 90.0 +margin_right = 520.0 +margin_bottom = 420.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = true +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/normal_font = SubResource( 13 ) +bbcode_enabled = true +bbcode_text = "[center]Pig is a deceptively simple dice game +that anyone can learn in a snap: + + +Step 1: Roll the die. +If you roll a one, you lose all the points you +accumulated during that turn, and you lose your turn. + +Step 2: +Continue rolling the die until you're happy with the number of points you've scored. Then, \"hold\" by handing the die over to your opponent, and track all points earned during your turn. + +Step 3: Reach 100 points first and win the round. + + +Tip: +Knowing when to stop rolling and end your turn is the key to winning this game. It's an exercise in deciding between +gut instinct and greed.[/center] +" +visible_characters = -1 +percent_visible = 1.0 +meta_underlined = true +tab_size = 4 +text = "Pig is a deceptively simple dice game +that anyone can learn in a snap: + + +Step 1: Roll the die. +If you roll a one, you lose all the points you +accumulated during that turn, and you lose your turn. + +Step 2: +Continue rolling the die until you're happy with the number of points you've scored. Then, \"hold\" by handing the die over to your opponent, and track all points earned during your turn. + +Step 3: Reach 100 points first and win the round. + + +Tip: +Knowing when to stop rolling and end your turn is the key to winning this game. It's an exercise in deciding between +gut instinct and greed. +" +scroll_active = false +scroll_following = false +selection_enabled = false +override_selected_font_color = false +_sections_unfolded = [ "BBCode", "custom_fonts" ] + +[node name="GameStateView" type="PopupPanel" parent="." index="43"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 70.0 +margin_top = 126.0 +margin_right = 960.0 +margin_bottom = 200.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="GameStateView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 883.0 +margin_bottom = 63.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="Title" type="Label" parent="GameStateView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 10.0 +margin_right = 870.0 +margin_bottom = 46.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 14 ) +text = "Wow... You have won!" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="CreditsView" type="PopupPanel" parent="." index="44"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 130.0 +margin_right = 580.0 +margin_bottom = 570.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="CreditsView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 550.0 +margin_bottom = 430.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="Title" type="Label" parent="CreditsView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 10.0 +margin_right = 540.0 +margin_bottom = 70.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 10 ) +text = "Credits" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "custom_colors", "custom_fonts" ] + +[node name="Info" type="RichTextLabel" parent="CreditsView/Background" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 20.0 +margin_top = 70.0 +margin_right = 520.0 +margin_bottom = 420.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = true +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/normal_font = SubResource( 15 ) +bbcode_enabled = true +bbcode_text = " +[center]Dice Pig is a game designed and produced by + + +Lava Block + + +Music +Composer and Producer - BEN94z +Mixing and Mastering - Yung Milo + + +Graphics & Sounds +OpenGameArt.org + + +Inspired by + +John Scarne (1945) [/center] +" +visible_characters = -1 +percent_visible = 1.0 +meta_underlined = true +tab_size = 4 +text = " +Dice Pig is a game designed and produced by + + +Lava Block + + +Music +Composer and Producer - BEN94z +Mixing and Mastering - Yung Milo + + +Graphics & Sounds +OpenGameArt.org + + +Inspired by + +John Scarne (1945) +" +scroll_active = false +scroll_following = false +selection_enabled = false +override_selected_font_color = false +_sections_unfolded = [ "BBCode", "custom_fonts" ] + +[node name="Link" type="Button" parent="CreditsView/Background" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 220.0 +margin_top = 130.0 +margin_right = 320.0 +margin_bottom = 160.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +flat = true +align = 1 + +[node name="MenuView" type="PopupPanel" parent="." index="45"] + +visible = false +self_modulate = Color( 1, 1, 1, 0.784314 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 600.0 +margin_top = 130.0 +margin_right = 1000.0 +margin_bottom = 570.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +popup_exclusive = false +_sections_unfolded = [ "Visibility" ] + +[node name="Background" type="ColorRect" parent="MenuView" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = 390.0 +margin_bottom = 430.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +color = Color( 0, 0, 0, 0.313726 ) +_sections_unfolded = [ "Visibility" ] + +[node name="NewGame" type="Button" parent="MenuView/Background" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 20.0 +margin_right = 370.0 +margin_bottom = 77.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 16 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "New Game" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Instruments" type="Button" parent="MenuView/Background" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 110.0 +margin_right = 370.0 +margin_bottom = 167.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 16 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Instructions" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Settings" type="Button" parent="MenuView/Background" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 180.0 +margin_right = 370.0 +margin_bottom = 237.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 16 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Settings" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Credits" type="Button" parent="MenuView/Background" index="3"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 250.0 +margin_right = 370.0 +margin_bottom = 307.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 16 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Credits" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Quit" type="Button" parent="MenuView/Background" index="4"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 10.0 +margin_top = 340.0 +margin_right = 370.0 +margin_bottom = 397.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 16 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Quit" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="DemoButton" type="Button" parent="." index="46"] + +visible = false +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 774.0 +margin_top = 18.0 +margin_right = 846.0 +margin_bottom = 44.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 17 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Demo" +flat = true +align = 1 +_sections_unfolded = [ "custom_fonts" ] + +[node name="Thinking" type="Label" parent="." index="47"] + +modulate = Color( 0.564706, 0.564706, 0.564706, 1 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 878.0 +margin_top = 42.0 +margin_right = 907.0 +margin_bottom = 93.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 18 ) +text = "?" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "Visibility", "custom_fonts" ] + +[node name="Node" type="Node2D" parent="." index="48"] + +visible = false + +[node name="Background2" type="TextureRect" parent="Node" index="0"] + +modulate = Color( 0.439216, 0.439216, 0.439216, 1 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 1024.0 +margin_bottom = 600.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 1 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +texture = ExtResource( 2 ) +expand = true +stretch_mode = 2 +_sections_unfolded = [ "Rect", "Visibility" ] + +[node name="WhiteBottom4" type="TextureRect" parent="Node" index="1"] + +modulate = Color( 0.196078, 0.196078, 0.196078, 1 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 560.0 +margin_right = 1024.0 +margin_bottom = 600.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +texture = ExtResource( 3 ) +expand = true +stretch_mode = 2 +_sections_unfolded = [ "Rect", "Visibility" ] + +[node name="WhiteBottom3" type="TextureRect" parent="Node" index="2"] + +modulate = Color( 0.196078, 0.196078, 0.196078, 1 ) +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 1024.0 +margin_bottom = 140.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +texture = ExtResource( 3 ) +expand = true +stretch_mode = 2 +_sections_unfolded = [ "Rect", "Visibility" ] + +[node name="Title2" type="Label" parent="Node" index="3"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 1024.0 +margin_bottom = 120.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +custom_fonts/font = SubResource( 1 ) +text = "Dice Pig" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_sections_unfolded = [ "Rect", "custom_fonts" ] + +[connection signal="pressed" from="RoundButton" to="." method="_on_RoundButton_pressed"] + +[connection signal="pressed" from="DiceButton" to="." method="_on_DiceButton_pressed"] + +[connection signal="pressed" from="DiceHiddenButton" to="." method="_on_DiceHiddenButton_pressed"] + +[connection signal="pressed" from="ArrowLeft" to="." method="_on_ArrowLeft_pressed"] + +[connection signal="pressed" from="MenuButton" to="." method="_on_MenuButton_pressed"] + +[connection signal="pressed" from="ScoreButton" to="." method="_on_ScoreButton_pressed"] + +[connection signal="pressed" from="SettingsView/Background/FullScreenButton" to="." method="_on_FullScreenButton_pressed"] + +[connection signal="pressed" from="SettingsView/Background/MusicButton" to="." method="_on_MusicButton_pressed"] + +[connection signal="pressed" from="SettingsView/Background/EffectsButton" to="." method="_on_EffectsButton_pressed"] + +[connection signal="pressed" from="SettingsView/Background/TougherButton" to="." method="_on_TougherButton_pressed"] + +[connection signal="pressed" from="SettingsView/Background/FastModeButton" to="." method="_on_FastModeButton_pressed"] + +[connection signal="pressed" from="CreditsView/Background/Link" to="." method="_on_Link_pressed"] + +[connection signal="pressed" from="MenuView/Background/NewGame" to="." method="_on_NewGame_pressed"] + +[connection signal="pressed" from="MenuView/Background/Instruments" to="." method="_on_Instruments_pressed"] + +[connection signal="pressed" from="MenuView/Background/Settings" to="." method="_on_Settings_pressed"] + +[connection signal="pressed" from="MenuView/Background/Credits" to="." method="_on_Credits_pressed"] -[connection signal="pressed" from="Turn/Left" to="." method="_on_Left_pressed"] +[connection signal="pressed" from="MenuView/Background/Quit" to="." method="_on_Quit_pressed"] -[connection signal="pressed" from="Turn/Right" to="." method="_on_Right_pressed"] +[connection signal="pressed" from="DemoButton" to="." method="_on_DemoButton_pressed"] diff --git a/README.md b/README.md index 6c65763..284ffbd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,34 @@ -# Dice-Pig -Dice Pig is a simple dice game made with Godot Engine +[![Dice-Pig Screenshot1](doc/screenshot1.png)](https://youtu.be/gpEOv_URsuk) + +**Dice Pig** is a simple dice game made with [Godot Engine](https://godotengine.org) | Free to Play: [itch.io](https://thelavablock.itch.io/dice-pig) + +![Dice-Pig Screenshot2](doc/screenshot2.png) + +**Dice Pig** is a deceptively simple dice game that anyone can learn in a snap: + +**Step 1: Roll the die.** + +If you roll a one, you lose all the points you accumulated during that turn, and you lose your turn. + +**Step 2:** + +Continue rolling the die until you're happy with the number of points you've scored. Then, "hold" by handing the die over to your opponent, and track all points earned during your turn. + +**Step 3:** + +Reach 100 points first and win the round. + +![Dice-Pig Screenshot3](doc/screenshot3.png) + +**Tip:** + +Knowing when to stop rolling and end your turn is the key to winning this game. It's an exercise in deciding between gut instinct and greed. + + +You are the pig on the left and you play against 9 individual animals (rat, cat, rabbit, dog, monkey, bear, cow and two specials). Get a high score! + +You have 3 lives. (Get extra life by playing risky) + +![Dice-Pig Screenshot4](doc/screenshot4.png) + + diff --git a/assets/image/arrow.png.import b/assets/image/arrow.png.import index e0f3d36..71798ce 100644 --- a/assets/image/arrow.png.import +++ b/assets/image/arrow.png.import @@ -7,10 +7,7 @@ path="res://.import/arrow.png-77eb76099e6587f59b22ffbd6a1e950b.stex" [deps] source_file="res://assets/image/arrow.png" -source_md5="1415545393eb1c0a021480d218697a42" - dest_files=[ "res://.import/arrow.png-77eb76099e6587f59b22ffbd6a1e950b.stex" ] -dest_md5="273a0853225e6b2908f74d0fbd79af72" [params] diff --git a/assets/image/bear.png.import b/assets/image/bear.png.import index 9c5bb22..46f92bc 100644 --- a/assets/image/bear.png.import +++ b/assets/image/bear.png.import @@ -7,10 +7,7 @@ path="res://.import/bear.png-6fd8d28e3ec19b176dfc0efd08d8aa66.stex" [deps] source_file="res://assets/image/bear.png" -source_md5="59ecb1d2df29a6311672ef0de467510b" - dest_files=[ "res://.import/bear.png-6fd8d28e3ec19b176dfc0efd08d8aa66.stex" ] -dest_md5="f7ba0304e12b45fa4e0259b566157a32" [params] diff --git a/assets/image/cat.png.import b/assets/image/cat.png.import index d78e574..675649d 100644 --- a/assets/image/cat.png.import +++ b/assets/image/cat.png.import @@ -7,10 +7,7 @@ path="res://.import/cat.png-4d7e392a066f0206ea65c5901d9e1722.stex" [deps] source_file="res://assets/image/cat.png" -source_md5="2d9a785c9253afbb726671e762b90600" - dest_files=[ "res://.import/cat.png-4d7e392a066f0206ea65c5901d9e1722.stex" ] -dest_md5="d5d027e7ff753352b5783a1b4e039723" [params] diff --git a/assets/image/comic.png.import b/assets/image/comic.png.import index 296f343..b5fe311 100644 --- a/assets/image/comic.png.import +++ b/assets/image/comic.png.import @@ -7,10 +7,7 @@ path="res://.import/comic.png-0a5d6e550c6154ecd72c57768f627e34.stex" [deps] source_file="res://assets/image/comic.png" -source_md5="f00a2fe35ec66c775ccf7c47a01e08c0" - dest_files=[ "res://.import/comic.png-0a5d6e550c6154ecd72c57768f627e34.stex" ] -dest_md5="06de51f6e10b241a34e771f1f12cdb4c" [params] diff --git a/assets/image/cow.png.import b/assets/image/cow.png.import index 72db458..058f88a 100644 --- a/assets/image/cow.png.import +++ b/assets/image/cow.png.import @@ -7,10 +7,7 @@ path="res://.import/cow.png-0a165b7e00c8a1976c9bfe8e45cc005c.stex" [deps] source_file="res://assets/image/cow.png" -source_md5="d67ef2a292c038202ed4ac7a8eb7bd94" - dest_files=[ "res://.import/cow.png-0a165b7e00c8a1976c9bfe8e45cc005c.stex" ] -dest_md5="0fe6e2ce6cf1083b5ac5bf865625d2df" [params] diff --git a/assets/image/dices.png.import b/assets/image/dices.png.import index efafe03..770f69b 100644 --- a/assets/image/dices.png.import +++ b/assets/image/dices.png.import @@ -7,10 +7,7 @@ path="res://.import/dices.png-df6f738ef18dde5ea9c00155210a6c72.stex" [deps] source_file="res://assets/image/dices.png" -source_md5="30a5d4e5349f9e8a928bb3f83da5af94" - dest_files=[ "res://.import/dices.png-df6f738ef18dde5ea9c00155210a6c72.stex" ] -dest_md5="e1b49415f6fd20c99c80ec8d5545bd1f" [params] diff --git a/assets/image/dog.png.import b/assets/image/dog.png.import index 90374ae..31936da 100644 --- a/assets/image/dog.png.import +++ b/assets/image/dog.png.import @@ -7,10 +7,7 @@ path="res://.import/dog.png-df8fbb38937888a1e03a751cf108c57b.stex" [deps] source_file="res://assets/image/dog.png" -source_md5="7022ad4e080ff127332d460fb30f6717" - dest_files=[ "res://.import/dog.png-df8fbb38937888a1e03a751cf108c57b.stex" ] -dest_md5="273bd7c7cfafb0456b391fec1973bea0" [params] diff --git a/assets/image/dragon.png.import b/assets/image/dragon.png.import index f4187db..20b4986 100644 --- a/assets/image/dragon.png.import +++ b/assets/image/dragon.png.import @@ -7,10 +7,7 @@ path="res://.import/dragon.png-b66b1f479f4df9de3442228b66f24094.stex" [deps] source_file="res://assets/image/dragon.png" -source_md5="814e4a08f6588c809462853b1125d7bc" - dest_files=[ "res://.import/dragon.png-b66b1f479f4df9de3442228b66f24094.stex" ] -dest_md5="1467630c086fba60cd9e85afa6d9fb34" [params] diff --git a/assets/image/menu.png.import b/assets/image/menu.png.import index 38ac898..1928cbc 100644 --- a/assets/image/menu.png.import +++ b/assets/image/menu.png.import @@ -7,10 +7,7 @@ path="res://.import/menu.png-879cb095b09c0aa304f7831118170b0a.stex" [deps] source_file="res://assets/image/menu.png" -source_md5="16b4b5c9d92d0eef03f4b9a3f14cc46d" - dest_files=[ "res://.import/menu.png-879cb095b09c0aa304f7831118170b0a.stex" ] -dest_md5="72d35332fd909a72559d40a6116a4c47" [params] diff --git a/assets/image/monkey.png.import b/assets/image/monkey.png.import index 231aa0e..45b25bb 100644 --- a/assets/image/monkey.png.import +++ b/assets/image/monkey.png.import @@ -7,10 +7,7 @@ path="res://.import/monkey.png-2c582750e86a5506c95c2e084cf67ae2.stex" [deps] source_file="res://assets/image/monkey.png" -source_md5="c23277cc8f5907ff682acb2dfa886318" - dest_files=[ "res://.import/monkey.png-2c582750e86a5506c95c2e084cf67ae2.stex" ] -dest_md5="49412d2f7cf2cf5f8b55fe1a3a6608ed" [params] diff --git a/assets/image/pig.png.import b/assets/image/pig.png.import index c0e721d..a4998ea 100644 --- a/assets/image/pig.png.import +++ b/assets/image/pig.png.import @@ -7,10 +7,7 @@ path="res://.import/pig.png-275b3a4d7163563050ab4b7088f643ef.stex" [deps] source_file="res://assets/image/pig.png" -source_md5="af0d67e8a98bcb7778f1417f98ce8573" - dest_files=[ "res://.import/pig.png-275b3a4d7163563050ab4b7088f643ef.stex" ] -dest_md5="ee9f8c6a8c75ee9076a85375362acde6" [params] diff --git a/assets/image/rabbit.png.import b/assets/image/rabbit.png.import index 4d72376..7df6d98 100644 --- a/assets/image/rabbit.png.import +++ b/assets/image/rabbit.png.import @@ -7,10 +7,7 @@ path="res://.import/rabbit.png-b3e2663326917352a7e066a359cb9614.stex" [deps] source_file="res://assets/image/rabbit.png" -source_md5="75146e318324a1e2172022538259dab7" - dest_files=[ "res://.import/rabbit.png-b3e2663326917352a7e066a359cb9614.stex" ] -dest_md5="b81a567afae3e614924d0d17f9d60c4c" [params] diff --git a/assets/image/rat.png.import b/assets/image/rat.png.import index e2675d9..b9e8988 100644 --- a/assets/image/rat.png.import +++ b/assets/image/rat.png.import @@ -7,10 +7,7 @@ path="res://.import/rat.png-4482f899218f27487a4cd80a01c1e721.stex" [deps] source_file="res://assets/image/rat.png" -source_md5="f3c5a7bcc3fee4b1bf30a07b7a30fcdf" - dest_files=[ "res://.import/rat.png-4482f899218f27487a4cd80a01c1e721.stex" ] -dest_md5="a340c64122b6cf4aeed4165eafdab890" [params] diff --git a/assets/image/score.png.import b/assets/image/score.png.import index da255e7..5e0a137 100644 --- a/assets/image/score.png.import +++ b/assets/image/score.png.import @@ -7,10 +7,7 @@ path="res://.import/score.png-f2f766afa9bc4becc3a75be54cedabb0.stex" [deps] source_file="res://assets/image/score.png" -source_md5="563787e1248292ae8854b4f4779066bb" - dest_files=[ "res://.import/score.png-f2f766afa9bc4becc3a75be54cedabb0.stex" ] -dest_md5="561641b486e84d2510e41a3707918082" [params] diff --git a/assets/image/splashscreen.png.import b/assets/image/splashscreen.png.import index bc932cc..59bf599 100644 --- a/assets/image/splashscreen.png.import +++ b/assets/image/splashscreen.png.import @@ -7,10 +7,7 @@ path="res://.import/splashscreen.png-442a914c4eb338ca9dcb29356b2c1460.stex" [deps] source_file="res://assets/image/splashscreen.png" -source_md5="8b3e8735dd8c38c5a788fd6bed59f242" - dest_files=[ "res://.import/splashscreen.png-442a914c4eb338ca9dcb29356b2c1460.stex" ] -dest_md5="4f80e335cd40c7d7b724d35443962f12" [params] diff --git a/assets/image/wood.png.import b/assets/image/wood.png.import index 44b8af7..a4b8dfb 100644 --- a/assets/image/wood.png.import +++ b/assets/image/wood.png.import @@ -7,10 +7,7 @@ path="res://.import/wood.png-fc1f7ff49aa363346d51fe6d62429aea.stex" [deps] source_file="res://assets/image/wood.png" -source_md5="d2780b4191e6195c211233b01f8e25f3" - dest_files=[ "res://.import/wood.png-fc1f7ff49aa363346d51fe6d62429aea.stex" ] -dest_md5="65610f18247060333286dd4be7c6bedf" [params] diff --git a/assets/image/wood2.png.import b/assets/image/wood2.png.import index e08b1de..4de7824 100644 --- a/assets/image/wood2.png.import +++ b/assets/image/wood2.png.import @@ -7,10 +7,7 @@ path="res://.import/wood2.png-daecabdc3899adb7393d437e445f3793.stex" [deps] source_file="res://assets/image/wood2.png" -source_md5="efc10c8ead2b1b81959b06379317a738" - dest_files=[ "res://.import/wood2.png-daecabdc3899adb7393d437e445f3793.stex" ] -dest_md5="e9c044a489c1a676cd5e60dfc265a6c4" [params] diff --git a/assets/sound/dice1.wav.import b/assets/sound/dice1.wav.import index 0d679f6..871443f 100644 --- a/assets/sound/dice1.wav.import +++ b/assets/sound/dice1.wav.import @@ -7,10 +7,7 @@ path="res://.import/dice1.wav-fc52aaa3b7e1e96d67a7cc8fea12bd8a.sample" [deps] source_file="res://assets/sound/dice1.wav" -source_md5="33151d6920699fc05568dd7fe81f2d08" - dest_files=[ "res://.import/dice1.wav-fc52aaa3b7e1e96d67a7cc8fea12bd8a.sample" ] -dest_md5="79ec2cf6745650880a612dfdd61d7b5e" [params] diff --git a/assets/sound/dice2.wav.import b/assets/sound/dice2.wav.import index e1b4f6e..7128546 100644 --- a/assets/sound/dice2.wav.import +++ b/assets/sound/dice2.wav.import @@ -7,10 +7,7 @@ path="res://.import/dice2.wav-e621da2bddad3ed326fb1f304bd6ab8b.sample" [deps] source_file="res://assets/sound/dice2.wav" -source_md5="641d9eb78e38b71fb2c3da3b9ac0284c" - dest_files=[ "res://.import/dice2.wav-e621da2bddad3ed326fb1f304bd6ab8b.sample" ] -dest_md5="5c5517bc4f42557f816fc9c8f8e9b0b9" [params] diff --git a/assets/sound/dice3.wav.import b/assets/sound/dice3.wav.import index 1db8a93..4b98271 100644 --- a/assets/sound/dice3.wav.import +++ b/assets/sound/dice3.wav.import @@ -7,10 +7,7 @@ path="res://.import/dice3.wav-2ee88686605e2f5dfd792bd2c2808323.sample" [deps] source_file="res://assets/sound/dice3.wav" -source_md5="671851c3259d1af96ee7e947c2fb1c3b" - dest_files=[ "res://.import/dice3.wav-2ee88686605e2f5dfd792bd2c2808323.sample" ] -dest_md5="8728f9cca2ded291161a955772f777bc" [params] diff --git a/assets/sound/dice4.wav.import b/assets/sound/dice4.wav.import index 02b3a56..5eb16fd 100644 --- a/assets/sound/dice4.wav.import +++ b/assets/sound/dice4.wav.import @@ -7,10 +7,7 @@ path="res://.import/dice4.wav-17b8375cea833ad6c3a2e1324329f5ab.sample" [deps] source_file="res://assets/sound/dice4.wav" -source_md5="81d004a0d92a4b098e1203b70a7120df" - dest_files=[ "res://.import/dice4.wav-17b8375cea833ad6c3a2e1324329f5ab.sample" ] -dest_md5="f679fe1b38d193d35ded0ce81923d2f3" [params] diff --git a/assets/sound/hold.wav.import b/assets/sound/hold.wav.import index 67d2d11..1633bf2 100644 --- a/assets/sound/hold.wav.import +++ b/assets/sound/hold.wav.import @@ -7,10 +7,7 @@ path="res://.import/hold.wav-367f92c3b4f60bc509e8e313576506f7.sample" [deps] source_file="res://assets/sound/hold.wav" -source_md5="4dbfb496ca0424237ed0dbaf4e34dcb8" - dest_files=[ "res://.import/hold.wav-367f92c3b4f60bc509e8e313576506f7.sample" ] -dest_md5="70d7a411def4c6df9f2b64356ce2e84b" [params] diff --git a/assets/sound/music.ogg.import b/assets/sound/music.ogg.import index a9df395..02432e6 100644 --- a/assets/sound/music.ogg.import +++ b/assets/sound/music.ogg.import @@ -7,10 +7,7 @@ path="res://.import/music.ogg-165ece032a61ed7e5da15262a609cba3.oggstr" [deps] source_file="res://assets/sound/music.ogg" -source_md5="b8505cbc09301348c4b039556251c082" - dest_files=[ "res://.import/music.ogg-165ece032a61ed7e5da15262a609cba3.oggstr" ] -dest_md5="d2b4ed5417b975e570a9d40d7d9f54b1" [params] diff --git a/assets/sound/pig.wav.import b/assets/sound/pig.wav.import index 0b2448e..03e4ed8 100644 --- a/assets/sound/pig.wav.import +++ b/assets/sound/pig.wav.import @@ -7,10 +7,7 @@ path="res://.import/pig.wav-f376ddcf52f36907b4fdf6d91df14652.sample" [deps] source_file="res://assets/sound/pig.wav" -source_md5="21f115232035c3830106b01aa44d9dfc" - dest_files=[ "res://.import/pig.wav-f376ddcf52f36907b4fdf6d91df14652.sample" ] -dest_md5="5e15ca87ad18c862a83c353f2e8432cc" [params] diff --git a/doc/screenshot1.png b/doc/screenshot1.png new file mode 100644 index 0000000..f55fb7f Binary files /dev/null and b/doc/screenshot1.png differ diff --git a/doc/screenshot2.png b/doc/screenshot2.png new file mode 100644 index 0000000..1cb728a Binary files /dev/null and b/doc/screenshot2.png differ diff --git a/doc/screenshot3.png b/doc/screenshot3.png new file mode 100644 index 0000000..16cb536 Binary files /dev/null and b/doc/screenshot3.png differ diff --git a/doc/screenshot4.png b/doc/screenshot4.png new file mode 100644 index 0000000..541ad2b Binary files /dev/null and b/doc/screenshot4.png differ diff --git a/icon.png.import b/icon.png.import index 714e4e4..0041ef8 100644 --- a/icon.png.import +++ b/icon.png.import @@ -7,10 +7,7 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="59ddd5f459568d6e8b09632bbbedff87" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="7e316fb862aa80d8760084096a4aa4a7" [params]