Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BattleGoose
BattleGoose
Commits
4c9265d3
Verified
Commit
4c9265d3
authored
Mar 22, 2022
by
Lars Mitsem Selbekk
Browse files
Rename package to se.battlegoose.battlegoose
parent
b39772af
Pipeline
#167473
passed with stages
in 3 minutes and 2 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
android/AndroidManifest.xml
View file @
4c9265d3
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"
com.progark
.battlegoose"
>
package=
"
se.battlegoo
.battlegoose"
>
<application
android:allowBackup=
"true"
...
...
@@ -10,10 +10,11 @@
android:label=
"@string/app_name"
android:theme=
"@style/GdxTheme"
>
<activity
android:name=
"
com.progark
.battlegoose.AndroidLauncher"
android:name=
"
se.battlegoo
.battlegoose.AndroidLauncher"
android:label=
"@string/app_name"
android:screenOrientation=
"landscape"
android:configChanges=
"keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout"
>
android:configChanges=
"keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout"
android:exported=
"true"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
...
...
android/build.gradle
View file @
4c9265d3
...
...
@@ -17,7 +17,7 @@ android {
exclude
'META-INF/robovm/ios/robovm.xml'
}
defaultConfig
{
applicationId
"
com.progark
.battlegoose"
applicationId
"
se.battlegoo
.battlegoose"
minSdkVersion
21
targetSdkVersion
32
versionCode
1
...
...
@@ -86,7 +86,7 @@ task run(type: Exec) {
}
def
adb
=
path
+
"/platform-tools/adb"
commandLine
"$adb"
,
'shell'
,
'am'
,
'start'
,
'-n'
,
'
com.progark
.battlegoose/
com.progark
.battlegoose.AndroidLauncher'
commandLine
"$adb"
,
'shell'
,
'am'
,
'start'
,
'-n'
,
'
se.battlegoo
.battlegoose/
se.battlegoo
.battlegoose.AndroidLauncher'
}
eclipse
.
project
.
name
=
appName
+
"-android"
android/src/
com/progark
/battlegoose/AndroidLauncher.kt
→
android/src/
se/battlegoo
/battlegoose/AndroidLauncher.kt
View file @
4c9265d3
package
com.progark
.battlegoose
package
se.battlegoo
.battlegoose
import
com.badlogic.gdx.backends.android.AndroidApplication
import
android.os.Bundle
...
...
@@ -10,4 +10,4 @@ class AndroidLauncher : AndroidApplication() {
val
config
=
AndroidApplicationConfiguration
()
initialize
(
Game
(),
config
)
}
}
\ No newline at end of file
}
core/src/
com/progark
/battlegoose/Game.kt
→
core/src/
se/battlegoo
/battlegoose/Game.kt
View file @
4c9265d3
package
com.progark
.battlegoose
package
se.battlegoo
.battlegoose
import
com.badlogic.gdx.ApplicationAdapter
import
com.badlogic.gdx.Gdx
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
import
com.badlogic.gdx.utils.ScreenUtils
import
gamestates.GameStateManager
import
gamestates.MainMenuState
import
se.battlegoo.battlegoose.
gamestates.GameStateManager
import
se.battlegoo.battlegoose.
gamestates.MainMenuState
class
Game
:
ApplicationAdapter
()
{
private
lateinit
var
batch
:
SpriteBatch
...
...
@@ -27,4 +27,4 @@ class Game : ApplicationAdapter() {
}
}
\ No newline at end of file
}
core/src/gamestates/BattleState.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/BattleState.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.Gdx
import
com.badlogic.gdx.graphics.Texture
...
...
@@ -20,4 +20,4 @@ class BattleState : GameState() {
override
fun
dispose
()
{
texture
.
dispose
()
}
}
\ No newline at end of file
}
core/src/gamestates/GameState.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/GameState.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
...
...
@@ -7,4 +7,4 @@ abstract class GameState {
abstract
fun
render
(
sb
:
SpriteBatch
)
abstract
fun
dispose
()
}
\ No newline at end of file
}
core/src/gamestates/GameStateManager.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/GameStateManager.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
import
java.util.*
...
...
@@ -30,4 +30,4 @@ object GameStateManager {
fun
render
(
sb
:
SpriteBatch
)
{
states
.
peek
().
render
(
sb
)
}
}
\ No newline at end of file
}
core/src/gamestates/LeaderboardState.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/LeaderboardState.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
...
...
@@ -14,4 +14,4 @@ class LeaderboardState : GameState() {
override
fun
dispose
()
{
TODO
(
"Not yet implemented"
)
}
}
\ No newline at end of file
}
core/src/gamestates/MainMenuState.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/MainMenuState.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.Gdx
import
com.badlogic.gdx.graphics.Texture
...
...
@@ -34,4 +34,4 @@ class MainMenuState
}
}
\ No newline at end of file
}
core/src/gamestates/MoveState.kt
→
core/src/
se/battlegoo/battlegoose/
gamestates/MoveState.kt
View file @
4c9265d3
package
gamestates
package
se.battlegoo.battlegoose.
gamestates
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
...
...
desktop/build.gradle
View file @
4c9265d3
...
...
@@ -2,7 +2,7 @@ sourceCompatibility = 1.7
sourceSets
.
main
.
java
.
srcDirs
=
[
"src/"
]
sourceSets
.
main
.
resources
.
srcDirs
=
[
"../android/assets"
]
project
.
ext
.
mainClassName
=
"
com.progark
.battlegoose.desktop.DesktopLauncher"
project
.
ext
.
mainClassName
=
"
se.battlegoo
.battlegoose.desktop.DesktopLauncher"
project
.
ext
.
assetsDir
=
new
File
(
"../android/assets"
)
task
run
(
dependsOn:
classes
,
type:
JavaExec
)
{
...
...
desktop/src/
com/progark
/battlegoose/desktop/DesktopLauncher.kt
→
desktop/src/
se/battlegoo
/battlegoose/desktop/DesktopLauncher.kt
View file @
4c9265d3
package
com.progark
.battlegoose.desktop
package
se.battlegoo
.battlegoose.desktop
import
kotlin.jvm.JvmStatic
import
com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import
com.badlogic.gdx.backends.lwjgl.LwjglApplication
import
com.progark
.battlegoose.Game
import
se.battlegoo
.battlegoose.Game
object
DesktopLauncher
{
@JvmStatic
...
...
@@ -11,4 +11,4 @@ object DesktopLauncher {
val
config
=
LwjglApplicationConfiguration
()
LwjglApplication
(
Game
(),
config
)
}
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment