mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 20:05:20 +01:00
Rename project from Mintris to Pixel Mint Drop, updating all relevant namespaces, package names, and UI elements to reflect the new branding. Adjust styles, themes, and repository links accordingly.
This commit is contained in:
parent
5ace9d7fc5
commit
ce85debfe5
34 changed files with 108 additions and 128 deletions
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.animation.ValueAnimator
|
||||
import android.content.Context
|
||||
|
@ -20,11 +20,10 @@ import android.view.View
|
|||
import android.view.animation.LinearInterpolator
|
||||
import android.hardware.display.DisplayManager
|
||||
import android.view.Display
|
||||
import com.mintris.model.GameBoard
|
||||
import com.mintris.model.Tetromino
|
||||
import com.mintris.model.TetrominoType
|
||||
import com.pixelmintdrop.model.GameBoard
|
||||
import com.pixelmintdrop.model.Tetromino
|
||||
import com.pixelmintdrop.model.TetrominoType
|
||||
import kotlin.math.abs
|
||||
import kotlin.math.min
|
||||
|
||||
/**
|
||||
* GameView that renders the Tetris game and handles touch input
|
||||
|
@ -216,7 +215,7 @@ class GameView @JvmOverloads constructor(
|
|||
pause()
|
||||
|
||||
// Load saved block skin
|
||||
val prefs = context.getSharedPreferences("mintris_progression", Context.MODE_PRIVATE)
|
||||
val prefs = context.getSharedPreferences("pixelmintdrop_progression", Context.MODE_PRIVATE)
|
||||
currentBlockSkin = prefs.getString("selected_block_skin", "block_skin_1") ?: "block_skin_1"
|
||||
|
||||
// Connect our callbacks to the GameBoard
|
||||
|
@ -329,7 +328,7 @@ class GameView @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
// Save the selection to SharedPreferences
|
||||
val prefs = context.getSharedPreferences("mintris_progression", Context.MODE_PRIVATE)
|
||||
val prefs = context.getSharedPreferences("pixelmintdrop_progression", Context.MODE_PRIVATE)
|
||||
prefs.edit().putString("selected_block_skin", skinId).commit()
|
||||
|
||||
// Force a refresh of the view
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.os.SystemClock
|
||||
import android.view.InputDevice
|
||||
|
@ -8,13 +8,11 @@ import android.util.Log
|
|||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.os.VibrationEffect
|
||||
import android.view.InputDevice.MotionRange
|
||||
import android.os.Vibrator
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
|
||||
/**
|
||||
* GamepadController handles gamepad input for the Mintris game.
|
||||
* GamepadController handles gamepad input for the pixelmintdrop game.
|
||||
* Supports multiple gamepad types including:
|
||||
* - Microsoft Xbox controllers
|
||||
* - Sony PlayStation controllers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.BlurMaskFilter
|
||||
|
@ -7,8 +7,7 @@ import android.graphics.Color
|
|||
import android.graphics.Paint
|
||||
import android.util.AttributeSet
|
||||
import android.view.View
|
||||
import com.mintris.model.GameBoard
|
||||
import com.mintris.model.Tetromino
|
||||
import com.pixelmintdrop.model.GameBoard
|
||||
import kotlin.math.min
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Canvas
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.mintris.game
|
||||
package com.pixelmintdrop.game
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Canvas
|
||||
|
@ -10,9 +10,9 @@ import android.view.MotionEvent
|
|||
import android.view.View
|
||||
import java.util.Random
|
||||
import android.util.Log
|
||||
import com.mintris.model.HighScoreManager
|
||||
import com.mintris.model.HighScore
|
||||
import com.mintris.model.PlayerProgressionManager
|
||||
import com.pixelmintdrop.model.HighScoreManager
|
||||
import com.pixelmintdrop.model.HighScore
|
||||
import com.pixelmintdrop.model.PlayerProgressionManager
|
||||
import kotlin.math.abs
|
||||
import androidx.core.graphics.withTranslation
|
||||
import androidx.core.graphics.withScale
|
||||
|
@ -240,7 +240,7 @@ class TitleScreen @JvmOverloads constructor(
|
|||
|
||||
// Draw title
|
||||
val titleY = height * 0.4f
|
||||
canvas.drawText("mintris", width / 2f, titleY, titlePaint)
|
||||
canvas.drawText("Pixel Mint Drop", width / 2f, titleY, titlePaint)
|
||||
|
||||
// Draw high scores using pre-allocated manager
|
||||
val highScores: List<HighScore> = highScoreManager.getHighScores()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue