Compare commits
12 Commits
main
...
89ff480c2e
| Author | SHA256 | Date | |
|---|---|---|---|
| 89ff480c2e | |||
| c009746bc4 | |||
| 99719f5b79 | |||
| fe79c271fa | |||
| ddab82ec7f | |||
| 7974cbd0af | |||
| bdcbfece3b | |||
| 1960fa51a7 | |||
| 75d7e3e101 | |||
| f915f7bbba | |||
| 1136fd018d | |||
| 01da51665e |
1422
Excalidraw/Drawing 2026-03-03 16.04.17.excalidraw.md
Normal file
7932
Excalidraw/class-structure.excalidraw.md
Normal file
2
Excalidraw/class-structure.excalidraw.svg
Normal file
|
After Width: | Height: | Size: 4.6 MiB |
BIN
Raw Assets/player-frame-pressed.aseprite
Normal file
BIN
Raw Assets/player-frame.aseprite
Normal file
BIN
Raw Assets/prepared-item-frame.aseprite
Normal file
@@ -2,6 +2,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:fullBackupContent="true"
|
||||
@@ -14,7 +15,7 @@
|
||||
<activity
|
||||
android:name="com.iofferyoutea.WitchQueen.android.AndroidLauncher"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="landscape"
|
||||
android:screenOrientation="portrait"
|
||||
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
|
||||
@@ -12,7 +12,7 @@ class AndroidLauncher : AndroidApplication() {
|
||||
super.onCreate(savedInstanceState)
|
||||
initialize(Main(), AndroidApplicationConfiguration().apply {
|
||||
// Configure your application here.
|
||||
useImmersiveMode = true // Recommended, but not required.
|
||||
//useImmersiveMode = true // Recommended, but not required.
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
BIN
WitchQueen/assets/default_flipped.png
Normal file
|
After Width: | Height: | Size: 94 B |
BIN
WitchQueen/assets/grey-plus.png
Normal file
|
After Width: | Height: | Size: 108 B |
BIN
WitchQueen/assets/player-frame-down.png
Normal file
|
After Width: | Height: | Size: 197 B |
BIN
WitchQueen/assets/player-frame-up.png
Normal file
|
After Width: | Height: | Size: 216 B |
BIN
WitchQueen/assets/player-frame.png
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
WitchQueen/assets/prepared-item-frame.png
Normal file
|
After Width: | Height: | Size: 154 B |
BIN
WitchQueen/assets/red-x.png
Normal file
|
After Width: | Height: | Size: 129 B |
BIN
WitchQueen/assets/transparent.png
Normal file
|
After Width: | Height: | Size: 81 B |
@@ -7,7 +7,6 @@ dependencies {
|
||||
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
api "com.github.kotcrab.vis-ui:vis-ui:$visUiVersion"
|
||||
api "io.github.libktx:ktx-actors:$ktxVersion"
|
||||
api "io.github.libktx:ktx-ai:$ktxVersion"
|
||||
api "io.github.libktx:ktx-app:$ktxVersion"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
class Client(val hostAddress: String, val hostPort: Int, val playerProfile: PlayerProfile) {
|
||||
val preparedItems: MutableList<Int> = mutableListOf(0, 0, 0, 0) // Item ID. 0 for no item
|
||||
lateinit var map: Map
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
import com.badlogic.gdx.Game
|
||||
import com.badlogic.gdx.graphics.Texture
|
||||
import com.badlogic.gdx.graphics.Texture.TextureFilter.Linear
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
||||
@@ -10,6 +11,7 @@ import ktx.assets.disposeSafely
|
||||
import ktx.assets.toInternalFile
|
||||
import ktx.async.KtxAsync
|
||||
import ktx.graphics.use
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
class Main : KtxGame<KtxScreen>() {
|
||||
override fun create() {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
class Map(val mapType: MapType) {
|
||||
val rooms = Array(2) { Array<Room>(2) { Room.new } } // We use an array instead of list i think
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
enum class MapType {
|
||||
DUNGEON, STREETS
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
enum class PlayerState {
|
||||
IDLE, LOOTING, FIGHTING
|
||||
}
|
||||
|
||||
class Player(val map: Map) {
|
||||
var currentState = PlayerState.IDLE
|
||||
val currentRoom
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
class PlayerProfile {
|
||||
var iconPath = "default.png"
|
||||
var username = "Default"
|
||||
val availableItems: MutableList<Int> = mutableListOf() // Use Item IDs?
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.iofferyoutea.WitchQueen
|
||||
|
||||
enum class RoomActivity {
|
||||
EMPTY, LOOT, FIGHT
|
||||
}
|
||||
|
||||
class Room(val mapType: MapType) {
|
||||
var availableActivities: MutableList<RoomActivity> = mutableListOf()
|
||||
init {
|
||||
// Generate Room in this init block!
|
||||
}
|
||||
}
|
||||