Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -1,9 +1,9 @@
################################################################################
#===============================================================================
# "Mining" mini-game
# By Maruno
#-------------------------------------------------------------------------------
# Run with: pbMiningGame
################################################################################
#===============================================================================
class MiningGameCounter < BitmapSprite
attr_accessor :hits
@@ -32,8 +32,9 @@ class MiningGameCounter < BitmapSprite
end
end
#===============================================================================
#
#===============================================================================
class MiningGameTile < BitmapSprite
attr_reader :layer
@@ -70,8 +71,9 @@ class MiningGameTile < BitmapSprite
end
end
#===============================================================================
#
#===============================================================================
class MiningGameCursor < BitmapSprite
attr_accessor :mode
attr_accessor :position
@@ -138,8 +140,9 @@ class MiningGameCursor < BitmapSprite
end
end
#===============================================================================
#
#===============================================================================
class MiningGameScene
BOARD_WIDTH = 13
BOARD_HEIGHT = 10
@@ -606,8 +609,9 @@ class MiningGameScene
end
end
#===============================================================================
#
#===============================================================================
class MiningGame
def initialize(scene)
@scene = scene
@@ -620,8 +624,9 @@ class MiningGame
end
end
#===============================================================================
#
#===============================================================================
def pbMiningGame
pbFadeOutIn {
scene = MiningGameScene.new