Initial commit
18
.editorconfig
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# https://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{java,scala,groovy,kt,kts}]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.gradle]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
|
*.bat text=auto eol=crlf
|
||||||
164
.gitignore
vendored
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
## Gradle:
|
||||||
|
.gradle/
|
||||||
|
gradle-app.setting
|
||||||
|
/build/
|
||||||
|
/android/build/
|
||||||
|
/core/build/
|
||||||
|
/lwjgl2/build/
|
||||||
|
/lwjgl3/build/
|
||||||
|
/html/build/
|
||||||
|
/teavm/build/
|
||||||
|
/ios/build/
|
||||||
|
/ios-moe/build/
|
||||||
|
/headless/build/
|
||||||
|
/server/build/
|
||||||
|
/shared/build/
|
||||||
|
|
||||||
|
## Java:
|
||||||
|
*.class
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
hs_err_pid*
|
||||||
|
.attach_pid*
|
||||||
|
|
||||||
|
## Android:
|
||||||
|
/android/libs/armeabi-v7a/
|
||||||
|
/android/libs/arm64-v8a/
|
||||||
|
/android/libs/x86/
|
||||||
|
/android/libs/x86_64/
|
||||||
|
/android/gen/
|
||||||
|
/android/out/
|
||||||
|
local.properties
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
|
||||||
|
## Robovm:
|
||||||
|
/ios/robovm-build/
|
||||||
|
|
||||||
|
## iOS:
|
||||||
|
/ios/xcode/*.xcodeproj/*
|
||||||
|
!/ios/xcode/*.xcodeproj/xcshareddata
|
||||||
|
!/ios/xcode/*.xcodeproj/project.pbxproj
|
||||||
|
/ios/xcode/native/
|
||||||
|
/ios/IOSLauncher.app
|
||||||
|
/ios/IOSLauncher.app.dSYM
|
||||||
|
|
||||||
|
## GWT:
|
||||||
|
/html/war/
|
||||||
|
/html/gwt-unitCache/
|
||||||
|
.apt_generated/
|
||||||
|
/html/war/WEB-INF/deploy/
|
||||||
|
/html/war/WEB-INF/classes/
|
||||||
|
.gwt/
|
||||||
|
gwt-unitCache/
|
||||||
|
www-test/
|
||||||
|
.gwt-tmp/
|
||||||
|
|
||||||
|
## TeaVM:
|
||||||
|
# Not sure yet...
|
||||||
|
|
||||||
|
## IntelliJ, Android Studio:
|
||||||
|
.idea/
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
## Eclipse:
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
.metadata/
|
||||||
|
/android/bin/
|
||||||
|
/core/bin/
|
||||||
|
/lwjgl2/bin/
|
||||||
|
/lwjgl3/bin/
|
||||||
|
/html/bin/
|
||||||
|
/teavm/bin/
|
||||||
|
/ios/bin/
|
||||||
|
/ios-moe/bin/
|
||||||
|
/headless/bin/
|
||||||
|
/server/bin/
|
||||||
|
/shared/bin/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
*~.nib
|
||||||
|
.settings/
|
||||||
|
.loadpath
|
||||||
|
.externalToolBuilders/
|
||||||
|
*.launch
|
||||||
|
|
||||||
|
|
||||||
|
## NetBeans:
|
||||||
|
|
||||||
|
/nbproject/private/
|
||||||
|
/android/nbproject/private/
|
||||||
|
/core/nbproject/private/
|
||||||
|
/lwjgl2/nbproject/private/
|
||||||
|
/lwjgl3/nbproject/private/
|
||||||
|
/html/nbproject/private/
|
||||||
|
/teavm/nbproject/private/
|
||||||
|
/ios/nbproject/private/
|
||||||
|
/ios-moe/nbproject/private/
|
||||||
|
/headless/nbproject/private/
|
||||||
|
/server/nbproject/private/
|
||||||
|
/shared/nbproject/private/
|
||||||
|
|
||||||
|
/nbbuild/
|
||||||
|
/android/nbbuild/
|
||||||
|
/core/nbbuild/
|
||||||
|
/lwjgl2/nbbuild/
|
||||||
|
/lwjgl3/nbbuild/
|
||||||
|
/html/nbbuild/
|
||||||
|
/teavm/nbbuild/
|
||||||
|
/ios/nbbuild/
|
||||||
|
/ios-moe/nbbuild/
|
||||||
|
/headless/nbbuild/
|
||||||
|
/server/nbbuild/
|
||||||
|
/shared/nbbuild/
|
||||||
|
|
||||||
|
/dist/
|
||||||
|
/android/dist/
|
||||||
|
/core/dist/
|
||||||
|
/lwjgl2/dist/
|
||||||
|
/lwjgl3/dist/
|
||||||
|
/html/dist/
|
||||||
|
/teavm/dist/
|
||||||
|
/ios/dist/
|
||||||
|
/ios-moe/dist/
|
||||||
|
/headless/dist/
|
||||||
|
/server/dist/
|
||||||
|
/shared/dist/
|
||||||
|
|
||||||
|
/nbdist/
|
||||||
|
/android/nbdist/
|
||||||
|
/core/nbdist/
|
||||||
|
/lwjgl2/nbdist/
|
||||||
|
/lwjgl3/nbdist/
|
||||||
|
/html/nbdist/
|
||||||
|
/teavm/nbdist/
|
||||||
|
/ios/nbdist/
|
||||||
|
/ios-moe/nbdist/
|
||||||
|
/headless/nbdist/
|
||||||
|
/server/nbdist/
|
||||||
|
/shared/nbdist/
|
||||||
|
|
||||||
|
nbactions.xml
|
||||||
|
nb-configuration.xml
|
||||||
|
|
||||||
|
## OS-Specific:
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
## Miscellaneous:
|
||||||
|
*~
|
||||||
|
*.*#
|
||||||
|
*#*#
|
||||||
|
/.kotlin/
|
||||||
|
/assets/assets.txt
|
||||||
|
|
||||||
|
## Special cases:
|
||||||
|
|
||||||
|
## There is a resource-config.json file generated by nativeimage.gradle if you use Graal Native Image.
|
||||||
|
## Some usage may need extra resource configuration in a different file with the same name.
|
||||||
|
## You could also add that configuration to the text in nativeimage.gradle .
|
||||||
|
## You should delete or comment out the next line if you have configuration in a different resource-config.json .
|
||||||
|
**/resource-config.json
|
||||||
35
README.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Technic-GDX
|
||||||
|
|
||||||
|
A [libGDX](https://libgdx.com/) project generated with [gdx-liftoff](https://github.com/libgdx/gdx-liftoff).
|
||||||
|
|
||||||
|
This project was generated with a template including simple application launchers and an `ApplicationAdapter` extension that draws a simple GUI on the screen.
|
||||||
|
|
||||||
|
## Platforms
|
||||||
|
|
||||||
|
- `core`: Main module with the application logic shared by all platforms.
|
||||||
|
- `lwjgl3`: Primary desktop platform using LWJGL3; was called 'desktop' in older docs.
|
||||||
|
- `server`: A separate application without access to the `core` module.
|
||||||
|
|
||||||
|
## Gradle
|
||||||
|
|
||||||
|
This project uses [Gradle](https://gradle.org/) to manage dependencies.
|
||||||
|
The Gradle wrapper was included, so you can run Gradle tasks using `gradlew.bat` or `./gradlew` commands.
|
||||||
|
Useful Gradle tasks and flags:
|
||||||
|
|
||||||
|
- `--continue`: when using this flag, errors will not stop the tasks from running.
|
||||||
|
- `--daemon`: thanks to this flag, Gradle daemon will be used to run chosen tasks.
|
||||||
|
- `--offline`: when using this flag, cached dependency archives will be used.
|
||||||
|
- `--refresh-dependencies`: this flag forces validation of all dependencies. Useful for snapshot versions.
|
||||||
|
- `build`: builds sources and archives of every project.
|
||||||
|
- `cleanEclipse`: removes Eclipse project data.
|
||||||
|
- `cleanIdea`: removes IntelliJ project data.
|
||||||
|
- `clean`: removes `build` folders, which store compiled classes and built archives.
|
||||||
|
- `eclipse`: generates Eclipse project data.
|
||||||
|
- `idea`: generates IntelliJ project data.
|
||||||
|
- `lwjgl3:jar`: builds application's runnable jar, which can be found at `lwjgl3/build/libs`.
|
||||||
|
- `lwjgl3:run`: starts the application.
|
||||||
|
- `server:run`: runs the server application.
|
||||||
|
- `test`: runs unit tests (if any).
|
||||||
|
|
||||||
|
Note that most tasks that are not specific to a single project can be run with `name:` prefix, where the `name` should be replaced with the ID of a specific project.
|
||||||
|
For example, `core:clean` removes `build` folder only from the `core` project.
|
||||||
174
assets/cards/cards.atlas
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
|
||||||
|
cards.png
|
||||||
|
size: 2048, 2048
|
||||||
|
format: RGBA8888
|
||||||
|
filter: Nearest, Nearest
|
||||||
|
repeat: none
|
||||||
|
academy-training
|
||||||
|
rotate: false
|
||||||
|
xy: 908, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
blood-money
|
||||||
|
rotate: false
|
||||||
|
xy: 1210, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
dark-mber-vault
|
||||||
|
rotate: false
|
||||||
|
xy: 606, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
dominator-bauble
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
early-birds
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
freebooter-faye--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 1512, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
ganger-chieftain
|
||||||
|
rotate: false
|
||||||
|
xy: 304, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
gauntlet-of-command
|
||||||
|
rotate: false
|
||||||
|
xy: 1512, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
general-sherman
|
||||||
|
rotate: false
|
||||||
|
xy: 908, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
horrid-synan--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 1512, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
implosion
|
||||||
|
rotate: false
|
||||||
|
xy: 1210, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
kaupe--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 908, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
library-card
|
||||||
|
rotate: false
|
||||||
|
xy: 304, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
mark-of-dis
|
||||||
|
rotate: false
|
||||||
|
xy: 908, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
physicus-felix--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 1210, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
pocket-universe
|
||||||
|
rotate: false
|
||||||
|
xy: 304, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
sea-urchin--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 1512, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
shoulder-armor
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
slrs-austeralis
|
||||||
|
rotate: false
|
||||||
|
xy: 606, 2
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
soboggs-thingamabob
|
||||||
|
rotate: false
|
||||||
|
xy: 606, 1268
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
strange-ordination
|
||||||
|
rotate: false
|
||||||
|
xy: 1210, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
thalassophobia
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
undagnathus--evil-twin
|
||||||
|
rotate: false
|
||||||
|
xy: 304, 846
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
xanthyx-harvester
|
||||||
|
rotate: false
|
||||||
|
xy: 606, 424
|
||||||
|
size: 300, 420
|
||||||
|
orig: 300, 420
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
BIN
assets/cards/cards.png
Normal file
|
After Width: | Height: | Size: 2.7 MiB |
198
assets/ui/font-list.fnt
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
info face="font-list" size=12 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=2 padding=1,1,1,1 spacing=0,0
|
||||||
|
common lineHeight=15 base=11 scaleW=505 scaleH=30 pages=1 packed=0 alphaChnl=0 redChnl=0 greenChnl=0 blueChnl=0
|
||||||
|
page id=0 file="font-list.png"
|
||||||
|
chars count=193
|
||||||
|
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=11 xadvance=3 page=0 chnl=0
|
||||||
|
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=-1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=33 x=391 y=14 width=2 height=7 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=34 x=248 y=23 width=3 height=3 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=35 x=466 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=36 x=9 y=2 width=5 height=10 xoffset=-1 yoffset=3 xadvance=7 page=0 chnl=0
|
||||||
|
char id=37 x=490 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=38 x=450 y=14 width=7 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=39 x=267 y=23 width=2 height=3 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=40 x=126 y=2 width=3 height=9 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=41 x=131 y=2 width=2 height=9 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=42 x=46 y=23 width=4 height=5 xoffset=-1 yoffset=3 xadvance=5 page=0 chnl=0
|
||||||
|
char id=43 x=73 y=23 width=6 height=5 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=44 x=263 y=23 width=2 height=3 xoffset=-1 yoffset=9 xadvance=3 page=0 chnl=0
|
||||||
|
char id=45 x=306 y=23 width=4 height=1 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
|
||||||
|
char id=46 x=296 y=23 width=2 height=1 xoffset=-1 yoffset=10 xadvance=3 page=0 chnl=0
|
||||||
|
char id=47 x=354 y=2 width=4 height=8 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=48 x=383 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=49 x=317 y=14 width=3 height=7 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=50 x=322 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=51 x=329 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=52 x=336 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=53 x=344 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=54 x=352 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=55 x=360 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=56 x=367 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=57 x=375 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=58 x=201 y=23 width=2 height=4 xoffset=-1 yoffset=7 xadvance=3 page=0 chnl=0
|
||||||
|
char id=59 x=118 y=23 width=2 height=5 xoffset=-1 yoffset=7 xadvance=3 page=0 chnl=0
|
||||||
|
char id=60 x=59 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=61 x=271 y=23 width=5 height=3 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=62 x=52 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=63 x=395 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=64 x=161 y=2 width=10 height=9 xoffset=-1 yoffset=4 xadvance=11 page=0 chnl=0
|
||||||
|
char id=65 x=443 y=2 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=66 x=494 y=2 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=67 x=0 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=68 x=8 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=69 x=16 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=70 x=24 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=71 x=31 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=72 x=54 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=73 x=502 y=2 width=2 height=7 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=74 x=332 y=2 width=3 height=8 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=75 x=69 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=76 x=77 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=77 x=84 y=14 width=8 height=7 xoffset=-1 yoffset=4 xadvance=9 page=0 chnl=0
|
||||||
|
char id=78 x=94 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=79 x=102 y=14 width=7 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=80 x=111 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=81 x=117 y=2 width=7 height=9 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=82 x=126 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=83 x=134 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=84 x=141 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=85 x=174 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=86 x=199 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=87 x=207 y=14 width=9 height=7 xoffset=-1 yoffset=4 xadvance=10 page=0 chnl=0
|
||||||
|
char id=88 x=218 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=89 x=226 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=90 x=234 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=91 x=135 y=2 width=3 height=9 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=92 x=367 y=2 width=4 height=8 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=93 x=140 y=2 width=3 height=9 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=94 x=187 y=23 width=5 height=4 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=95 x=285 y=23 width=5 height=1 xoffset=0 yoffset=12 xadvance=7 page=0 chnl=0
|
||||||
|
char id=96 x=258 y=23 width=3 height=3 xoffset=-1 yoffset=3 xadvance=3 page=0 chnl=0
|
||||||
|
char id=97 x=88 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=98 x=241 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=99 x=95 y=23 width=4 height=5 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=100 x=248 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=101 x=101 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=102 x=255 y=14 width=4 height=7 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=103 x=261 y=14 width=5 height=7 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=104 x=268 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=105 x=275 y=14 width=2 height=7 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=106 x=4 y=2 width=3 height=10 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=107 x=279 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=108 x=286 y=14 width=2 height=7 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=109 x=108 y=23 width=8 height=5 xoffset=-1 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=110 x=122 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=111 x=129 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=112 x=290 y=14 width=5 height=7 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=113 x=297 y=14 width=5 height=7 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=114 x=15 y=23 width=4 height=6 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=115 x=136 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=116 x=304 y=14 width=4 height=7 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=117 x=143 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=118 x=150 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=119 x=157 y=23 width=8 height=5 xoffset=-1 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=120 x=167 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=121 x=310 y=14 width=5 height=7 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=122 x=174 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=123 x=145 y=2 width=4 height=9 xoffset=-1 yoffset=3 xadvance=5 page=0 chnl=0
|
||||||
|
char id=124 x=157 y=2 width=2 height=9 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=125 x=151 y=2 width=4 height=9 xoffset=-1 yoffset=3 xadvance=5 page=0 chnl=0
|
||||||
|
char id=126 x=278 y=23 width=5 height=2 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=160 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=11 xadvance=3 page=0 chnl=0
|
||||||
|
char id=161 x=195 y=14 width=2 height=7 xoffset=-1 yoffset=6 xadvance=3 page=0 chnl=0
|
||||||
|
char id=162 x=189 y=14 width=4 height=7 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=163 x=182 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=164 x=8 y=23 width=5 height=6 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=165 x=166 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=166 x=180 y=2 width=2 height=9 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=167 x=415 y=2 width=5 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=168 x=312 y=23 width=4 height=1 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=169 x=0 y=23 width=6 height=6 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=170 x=181 y=23 width=4 height=4 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=171 x=66 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=172 x=241 y=23 width=5 height=3 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=174 x=498 y=14 width=6 height=6 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=175 x=300 y=23 width=4 height=1 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=176 x=235 y=23 width=4 height=3 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=177 x=38 y=23 width=6 height=5 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=178 x=230 y=23 width=3 height=3 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=179 x=225 y=23 width=3 height=3 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=180 x=220 y=23 width=3 height=3 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=181 x=47 y=14 width=5 height=7 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=182 x=39 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=183 x=292 y=23 width=2 height=1 xoffset=-1 yoffset=8 xadvance=3 page=0 chnl=0
|
||||||
|
char id=184 x=215 y=23 width=3 height=3 xoffset=-1 yoffset=10 xadvance=4 page=0 chnl=0
|
||||||
|
char id=185 x=211 y=23 width=2 height=3 xoffset=-1 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=186 x=205 y=23 width=4 height=3 xoffset=-1 yoffset=5 xadvance=5 page=0 chnl=0
|
||||||
|
char id=187 x=31 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=188 x=184 y=2 width=5 height=9 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=189 x=191 y=2 width=5 height=9 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=190 x=198 y=2 width=6 height=9 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=191 x=472 y=2 width=5 height=7 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=192 x=16 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=193 x=24 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=194 x=213 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=195 x=221 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=196 x=229 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=197 x=237 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=198 x=149 y=14 width=9 height=7 xoffset=-1 yoffset=4 xadvance=10 page=0 chnl=0
|
||||||
|
char id=199 x=245 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=200 x=39 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=201 x=47 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=202 x=253 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=203 x=261 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=204 x=55 y=2 width=4 height=10 xoffset=-2 yoffset=1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=205 x=61 y=2 width=3 height=10 xoffset=-1 yoffset=1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=206 x=285 y=2 width=4 height=9 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=207 x=291 y=2 width=4 height=9 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=208 x=414 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=209 x=297 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=210 x=66 y=2 width=7 height=10 xoffset=-1 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=211 x=75 y=2 width=7 height=10 xoffset=-1 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=212 x=305 y=2 width=7 height=9 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=213 x=323 y=2 width=7 height=9 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=214 x=314 y=2 width=7 height=9 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=215 x=81 y=23 width=5 height=5 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=216 x=84 y=2 width=7 height=10 xoffset=-1 yoffset=3 xadvance=8 page=0 chnl=0
|
||||||
|
char id=217 x=93 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=218 x=101 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=219 x=277 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=220 x=269 y=2 width=6 height=9 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=221 x=109 y=2 width=6 height=10 xoffset=-1 yoffset=1 xadvance=6 page=0 chnl=0
|
||||||
|
char id=222 x=474 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=223 x=486 y=2 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=224 x=436 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=225 x=429 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=226 x=451 y=2 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=227 x=465 y=2 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=228 x=479 y=2 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=229 x=422 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=230 x=21 y=23 width=8 height=5 xoffset=-1 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=231 x=160 y=14 width=4 height=7 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=232 x=408 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=233 x=360 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=234 x=429 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=235 x=422 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=236 x=349 y=2 width=3 height=8 xoffset=-2 yoffset=3 xadvance=3 page=0 chnl=0
|
||||||
|
char id=237 x=344 y=2 width=3 height=8 xoffset=-1 yoffset=3 xadvance=3 page=0 chnl=0
|
||||||
|
char id=238 x=408 y=14 width=4 height=7 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=239 x=402 y=14 width=4 height=7 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=240 x=337 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=241 x=119 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=242 x=394 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=243 x=387 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=244 x=443 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=245 x=436 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=246 x=62 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=247 x=194 y=23 width=5 height=4 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=248 x=373 y=2 width=5 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=249 x=380 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=250 x=401 y=2 width=5 height=8 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=251 x=459 y=14 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=252 x=458 y=2 width=5 height=7 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=253 x=32 y=2 width=5 height=10 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=254 x=206 y=2 width=5 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=255 x=173 y=2 width=5 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=8226 x=253 y=23 width=3 height=3 xoffset=0 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=8364 x=482 y=14 width=6 height=7 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
kernings count=0
|
||||||
198
assets/ui/font-subtitle.fnt
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
info face="font-subtitle" size=12 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=2 padding=1,1,1,1 spacing=0,0
|
||||||
|
common lineHeight=18 base=13 scaleW=505 scaleH=36 pages=1 packed=0 alphaChnl=0 redChnl=0 greenChnl=0 blueChnl=0
|
||||||
|
page id=0 file="font-subtitle.png"
|
||||||
|
chars count=193
|
||||||
|
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=13 xadvance=3 page=0 chnl=0
|
||||||
|
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=-1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=33 x=9 y=27 width=1 height=8 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=34 x=351 y=27 width=4 height=3 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=35 x=46 y=27 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=36 x=7 y=2 width=6 height=12 xoffset=-1 yoffset=3 xadvance=7 page=0 chnl=0
|
||||||
|
char id=37 x=117 y=16 width=7 height=9 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=38 x=28 y=27 width=8 height=8 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=39 x=370 y=27 width=2 height=3 xoffset=-1 yoffset=5 xadvance=2 page=0 chnl=0
|
||||||
|
char id=40 x=39 y=2 width=3 height=11 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=41 x=44 y=2 width=3 height=11 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=42 x=270 y=27 width=5 height=5 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=43 x=164 y=27 width=7 height=6 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=44 x=379 y=27 width=2 height=3 xoffset=-1 yoffset=11 xadvance=2 page=0 chnl=0
|
||||||
|
char id=45 x=410 y=27 width=5 height=1 xoffset=-1 yoffset=9 xadvance=6 page=0 chnl=0
|
||||||
|
char id=46 x=436 y=27 width=2 height=1 xoffset=-1 yoffset=12 xadvance=2 page=0 chnl=0
|
||||||
|
char id=47 x=341 y=2 width=5 height=10 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=48 x=0 y=27 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=49 x=441 y=16 width=4 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=50 x=447 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=51 x=455 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=52 x=463 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=53 x=472 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=54 x=480 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=55 x=55 y=16 width=5 height=9 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=56 x=489 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=57 x=498 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=58 x=277 y=27 width=2 height=5 xoffset=-1 yoffset=8 xadvance=2 page=0 chnl=0
|
||||||
|
char id=59 x=112 y=27 width=2 height=7 xoffset=-1 yoffset=8 xadvance=3 page=0 chnl=0
|
||||||
|
char id=60 x=148 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=61 x=362 y=27 width=6 height=3 xoffset=-1 yoffset=9 xadvance=7 page=0 chnl=0
|
||||||
|
char id=62 x=139 y=27 width=7 height=6 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=63 x=12 y=27 width=5 height=8 xoffset=-1 yoffset=5 xadvance=5 page=0 chnl=0
|
||||||
|
char id=64 x=348 y=2 width=12 height=10 xoffset=-1 yoffset=5 xadvance=12 page=0 chnl=0
|
||||||
|
char id=65 x=145 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=66 x=154 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=67 x=162 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=68 x=171 y=16 width=7 height=8 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=69 x=180 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=70 x=188 y=16 width=5 height=8 xoffset=0 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=71 x=212 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=72 x=228 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=73 x=236 y=16 width=1 height=8 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=74 x=379 y=2 width=3 height=9 xoffset=-1 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=75 x=249 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=76 x=257 y=16 width=5 height=8 xoffset=0 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=77 x=264 y=16 width=8 height=8 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=78 x=274 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=79 x=282 y=16 width=8 height=8 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=80 x=292 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=81 x=323 y=2 width=8 height=10 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=82 x=300 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=83 x=308 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=84 x=316 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=85 x=325 y=16 width=6 height=8 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=86 x=333 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=87 x=342 y=16 width=10 height=8 xoffset=-1 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=88 x=354 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=89 x=363 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=90 x=372 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=91 x=49 y=2 width=3 height=11 xoffset=0 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=92 x=102 y=16 width=5 height=9 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=93 x=54 y=2 width=3 height=11 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=94 x=310 y=27 width=6 height=4 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=95 x=417 y=27 width=6 height=1 xoffset=0 yoffset=14 xadvance=8 page=0 chnl=0
|
||||||
|
char id=96 x=388 y=27 width=3 height=2 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=97 x=124 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=98 x=384 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=99 x=132 y=27 width=5 height=6 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=100 x=392 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=101 x=156 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=102 x=400 y=2 width=4 height=9 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=103 x=414 y=2 width=6 height=9 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=104 x=453 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=105 x=416 y=16 width=2 height=8 xoffset=-1 yoffset=5 xadvance=2 page=0 chnl=0
|
||||||
|
char id=106 x=34 y=2 width=3 height=11 xoffset=-2 yoffset=5 xadvance=2 page=0 chnl=0
|
||||||
|
char id=107 x=494 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=5 page=0 chnl=0
|
||||||
|
char id=108 x=502 y=2 width=1 height=9 xoffset=0 yoffset=4 xadvance=2 page=0 chnl=0
|
||||||
|
char id=109 x=185 y=27 width=10 height=6 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=110 x=197 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=111 x=205 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=112 x=31 y=16 width=6 height=9 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=113 x=39 y=16 width=6 height=9 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=114 x=106 y=27 width=4 height=7 xoffset=-1 yoffset=6 xadvance=4 page=0 chnl=0
|
||||||
|
char id=115 x=213 y=27 width=5 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=116 x=434 y=16 width=5 height=8 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=117 x=220 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=118 x=228 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=119 x=236 y=27 width=9 height=6 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
|
||||||
|
char id=120 x=247 y=27 width=5 height=6 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=121 x=47 y=16 width=6 height=9 xoffset=-1 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=122 x=254 y=27 width=5 height=6 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=123 x=59 y=2 width=4 height=11 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=124 x=4 y=2 width=1 height=12 xoffset=0 yoffset=4 xadvance=2 page=0 chnl=0
|
||||||
|
char id=125 x=65 y=2 width=4 height=11 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=126 x=393 y=27 width=6 height=2 xoffset=-1 yoffset=9 xadvance=7 page=0 chnl=0
|
||||||
|
char id=160 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=13 xadvance=3 page=0 chnl=0
|
||||||
|
char id=161 x=126 y=16 width=2 height=9 xoffset=-1 yoffset=7 xadvance=2 page=0 chnl=0
|
||||||
|
char id=162 x=130 y=16 width=5 height=9 xoffset=0 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=163 x=221 y=16 width=5 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=164 x=89 y=27 width=6 height=7 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=165 x=203 y=16 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=166 x=15 y=2 width=1 height=12 xoffset=0 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=167 x=362 y=2 width=6 height=10 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=168 x=425 y=27 width=3 height=1 xoffset=-1 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=169 x=80 y=27 width=7 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=170 x=298 y=27 width=4 height=4 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=171 x=290 y=27 width=6 height=4 xoffset=-1 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=172 x=338 y=27 width=6 height=3 xoffset=-1 yoffset=9 xadvance=7 page=0 chnl=0
|
||||||
|
char id=174 x=97 y=27 width=7 height=7 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=175 x=430 y=27 width=4 height=1 xoffset=-2 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=176 x=304 y=27 width=4 height=4 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=177 x=281 y=27 width=7 height=5 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=178 x=383 y=27 width=3 height=3 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=179 x=346 y=27 width=3 height=3 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=180 x=401 y=27 width=3 height=2 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=181 x=78 y=16 width=5 height=9 xoffset=0 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=182 x=19 y=27 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=183 x=406 y=27 width=2 height=1 xoffset=-1 yoffset=9 xadvance=2 page=0 chnl=0
|
||||||
|
char id=184 x=357 y=27 width=3 height=3 xoffset=-1 yoffset=13 xadvance=3 page=0 chnl=0
|
||||||
|
char id=185 x=374 y=27 width=3 height=3 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=186 x=332 y=27 width=4 height=4 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=187 x=324 y=27 width=6 height=4 xoffset=-1 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=188 x=79 y=2 width=6 height=11 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=189 x=87 y=2 width=6 height=11 xoffset=-1 yoffset=3 xadvance=6 page=0 chnl=0
|
||||||
|
char id=190 x=95 y=2 width=7 height=11 xoffset=-1 yoffset=3 xadvance=7 page=0 chnl=0
|
||||||
|
char id=191 x=8 y=16 width=5 height=9 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=192 x=104 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=193 x=113 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=194 x=122 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=195 x=131 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=196 x=140 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=197 x=370 y=2 width=7 height=10 xoffset=-1 yoffset=3 xadvance=7 page=0 chnl=0
|
||||||
|
char id=198 x=404 y=16 width=10 height=8 xoffset=-1 yoffset=5 xadvance=11 page=0 chnl=0
|
||||||
|
char id=199 x=149 y=2 width=7 height=11 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=200 x=158 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=201 x=166 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=202 x=174 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=203 x=182 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=7 page=0 chnl=0
|
||||||
|
char id=204 x=190 y=2 width=4 height=11 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=205 x=196 y=2 width=3 height=11 xoffset=-1 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=206 x=201 y=2 width=5 height=11 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=207 x=208 y=2 width=4 height=11 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=208 x=239 y=16 width=8 height=8 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=209 x=214 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=210 x=222 y=2 width=8 height=11 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=211 x=232 y=2 width=8 height=11 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=212 x=242 y=2 width=8 height=11 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=213 x=252 y=2 width=8 height=11 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=214 x=262 y=2 width=8 height=11 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=215 x=116 y=27 width=6 height=6 xoffset=-1 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=216 x=313 y=2 width=8 height=11 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=217 x=305 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=218 x=297 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=219 x=289 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=220 x=281 y=2 width=6 height=11 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=221 x=272 y=2 width=7 height=11 xoffset=-1 yoffset=2 xadvance=6 page=0 chnl=0
|
||||||
|
char id=222 x=38 y=27 width=6 height=8 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=223 x=85 y=16 width=7 height=9 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=224 x=94 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=225 x=137 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=226 x=469 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=227 x=380 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=228 x=388 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=229 x=406 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=230 x=173 y=27 width=10 height=6 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=231 x=422 y=2 width=5 height=9 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=232 x=429 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=233 x=437 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=234 x=445 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=235 x=396 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=236 x=477 y=2 width=3 height=9 xoffset=-2 yoffset=4 xadvance=2 page=0 chnl=0
|
||||||
|
char id=237 x=482 y=2 width=4 height=9 xoffset=-1 yoffset=4 xadvance=2 page=0 chnl=0
|
||||||
|
char id=238 x=488 y=2 width=4 height=9 xoffset=-2 yoffset=4 xadvance=2 page=0 chnl=0
|
||||||
|
char id=239 x=420 y=16 width=4 height=8 xoffset=-2 yoffset=5 xadvance=2 page=0 chnl=0
|
||||||
|
char id=240 x=0 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=241 x=426 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=242 x=15 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=243 x=23 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=244 x=109 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=245 x=63 y=27 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=246 x=55 y=27 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=247 x=261 y=27 width=7 height=5 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=248 x=333 y=2 width=6 height=10 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=249 x=70 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=250 x=62 y=16 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=251 x=461 y=2 width=6 height=9 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=252 x=195 y=16 width=6 height=8 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=253 x=26 y=2 width=6 height=12 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=254 x=18 y=2 width=6 height=12 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=255 x=71 y=2 width=6 height=11 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=8226 x=318 y=27 width=4 height=4 xoffset=0 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=8364 x=71 y=27 width=7 height=8 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
kernings count=0
|
||||||
198
assets/ui/font-window.fnt
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
info face="font-window" size=12 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=2 padding=1,1,1,1 spacing=0,0
|
||||||
|
common lineHeight=27 base=20 scaleW=506 scaleH=62 pages=1 packed=0 alphaChnl=0 redChnl=0 greenChnl=0 blueChnl=0
|
||||||
|
page id=0 file="font-window.png"
|
||||||
|
chars count=193
|
||||||
|
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=20 xadvance=4 page=0 chnl=0
|
||||||
|
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=-1 xadvance=4 page=0 chnl=0
|
||||||
|
char id=33 x=276 y=38 width=2 height=12 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=34 x=293 y=52 width=5 height=4 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=35 x=370 y=38 width=10 height=12 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=36 x=175 y=2 width=8 height=16 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=37 x=62 y=22 width=10 height=14 xoffset=0 yoffset=7 xadvance=12 page=0 chnl=0
|
||||||
|
char id=38 x=343 y=38 width=13 height=12 xoffset=0 yoffset=8 xadvance=13 page=0 chnl=0
|
||||||
|
char id=39 x=306 y=52 width=2 height=4 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=40 x=392 y=2 width=4 height=15 xoffset=0 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=41 x=398 y=2 width=4 height=15 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=42 x=172 y=52 width=7 height=8 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=43 x=465 y=38 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=44 x=300 y=52 width=4 height=4 xoffset=-1 yoffset=18 xadvance=5 page=0 chnl=0
|
||||||
|
char id=45 x=359 y=52 width=5 height=2 xoffset=0 yoffset=14 xadvance=7 page=0 chnl=0
|
||||||
|
char id=46 x=330 y=52 width=2 height=3 xoffset=0 yoffset=17 xadvance=4 page=0 chnl=0
|
||||||
|
char id=47 x=0 y=22 width=8 height=14 xoffset=-1 yoffset=7 xadvance=8 page=0 chnl=0
|
||||||
|
char id=48 x=265 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=49 x=174 y=38 width=6 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=50 x=182 y=38 width=7 height=12 xoffset=0 yoffset=8 xadvance=9 page=0 chnl=0
|
||||||
|
char id=51 x=191 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=52 x=201 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=53 x=212 y=38 width=9 height=12 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=54 x=223 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=55 x=234 y=38 width=7 height=12 xoffset=0 yoffset=8 xadvance=9 page=0 chnl=0
|
||||||
|
char id=56 x=243 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=57 x=254 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=58 x=192 y=52 width=2 height=8 xoffset=0 yoffset=12 xadvance=4 page=0 chnl=0
|
||||||
|
char id=59 x=444 y=38 width=4 height=10 xoffset=-1 yoffset=12 xadvance=4 page=0 chnl=0
|
||||||
|
char id=60 x=0 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=61 x=204 y=52 width=8 height=6 xoffset=0 yoffset=12 xadvance=10 page=0 chnl=0
|
||||||
|
char id=62 x=495 y=38 width=8 height=9 xoffset=1 yoffset=11 xadvance=11 page=0 chnl=0
|
||||||
|
char id=63 x=280 y=38 width=7 height=12 xoffset=-1 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=64 x=157 y=2 width=16 height=16 xoffset=0 yoffset=8 xadvance=18 page=0 chnl=0
|
||||||
|
char id=65 x=303 y=22 width=11 height=12 xoffset=-1 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=66 x=316 y=22 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=67 x=326 y=22 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=68 x=336 y=22 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=69 x=347 y=22 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=70 x=357 y=22 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=71 x=367 y=22 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=72 x=378 y=22 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=73 x=389 y=22 width=2 height=12 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=74 x=122 y=22 width=4 height=13 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
|
||||||
|
char id=75 x=393 y=22 width=9 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=76 x=404 y=22 width=7 height=12 xoffset=0 yoffset=8 xadvance=9 page=0 chnl=0
|
||||||
|
char id=77 x=413 y=22 width=13 height=12 xoffset=0 yoffset=8 xadvance=15 page=0 chnl=0
|
||||||
|
char id=78 x=440 y=22 width=10 height=12 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=79 x=462 y=22 width=10 height=12 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=80 x=478 y=22 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=81 x=380 y=2 width=10 height=15 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=82 x=0 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=83 x=11 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=84 x=21 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=85 x=32 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=86 x=43 y=38 width=11 height=12 xoffset=-1 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=87 x=56 y=38 width=17 height=12 xoffset=-1 yoffset=8 xadvance=17 page=0 chnl=0
|
||||||
|
char id=88 x=75 y=38 width=11 height=12 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=89 x=88 y=38 width=10 height=12 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=90 x=100 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=91 x=404 y=2 width=5 height=15 xoffset=0 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=92 x=10 y=22 width=9 height=14 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0
|
||||||
|
char id=93 x=411 y=2 width=4 height=15 xoffset=0 yoffset=7 xadvance=6 page=0 chnl=0
|
||||||
|
char id=94 x=222 y=52 width=10 height=6 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=95 x=349 y=52 width=8 height=2 xoffset=1 yoffset=21 xadvance=12 page=0 chnl=0
|
||||||
|
char id=96 x=279 y=52 width=6 height=5 xoffset=-2 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=97 x=32 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=98 x=110 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=99 x=42 y=52 width=7 height=9 xoffset=0 yoffset=11 xadvance=8 page=0 chnl=0
|
||||||
|
char id=100 x=120 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=101 x=51 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=102 x=130 y=38 width=6 height=12 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=103 x=158 y=22 width=8 height=13 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=104 x=138 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=105 x=148 y=38 width=2 height=12 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=106 x=147 y=2 width=4 height=16 xoffset=-2 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=107 x=152 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=9 page=0 chnl=0
|
||||||
|
char id=108 x=162 y=38 width=2 height=12 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=109 x=61 y=52 width=12 height=9 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=0
|
||||||
|
char id=110 x=75 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=111 x=85 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=112 x=215 y=22 width=8 height=13 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=113 x=225 y=22 width=8 height=13 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=114 x=436 y=38 width=6 height=10 xoffset=0 yoffset=10 xadvance=7 page=0 chnl=0
|
||||||
|
char id=115 x=95 y=52 width=7 height=9 xoffset=0 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=116 x=166 y=38 width=6 height=12 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=117 x=104 y=52 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=118 x=114 y=52 width=9 height=9 xoffset=-1 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=119 x=125 y=52 width=14 height=9 xoffset=-1 yoffset=11 xadvance=14 page=0 chnl=0
|
||||||
|
char id=120 x=141 y=52 width=9 height=9 xoffset=-1 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=121 x=235 y=22 width=9 height=13 xoffset=-1 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=122 x=152 y=52 width=7 height=9 xoffset=0 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=123 x=417 y=2 width=6 height=15 xoffset=0 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=124 x=153 y=2 width=2 height=16 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=125 x=425 y=2 width=6 height=15 xoffset=0 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=126 x=320 y=52 width=8 height=3 xoffset=0 yoffset=14 xadvance=10 page=0 chnl=0
|
||||||
|
char id=160 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=20 xadvance=4 page=0 chnl=0
|
||||||
|
char id=161 x=474 y=22 width=2 height=12 xoffset=0 yoffset=11 xadvance=4 page=0 chnl=0
|
||||||
|
char id=162 x=403 y=38 width=7 height=11 xoffset=1 yoffset=10 xadvance=10 page=0 chnl=0
|
||||||
|
char id=163 x=452 y=22 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=164 x=21 y=52 width=9 height=9 xoffset=-1 yoffset=11 xadvance=9 page=0 chnl=0
|
||||||
|
char id=165 x=428 y=22 width=10 height=12 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=166 x=185 y=2 width=2 height=16 xoffset=0 yoffset=8 xadvance=4 page=0 chnl=0
|
||||||
|
char id=167 x=433 y=2 width=8 height=15 xoffset=0 yoffset=9 xadvance=10 page=0 chnl=0
|
||||||
|
char id=168 x=341 y=52 width=6 height=2 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
|
||||||
|
char id=169 x=424 y=38 width=10 height=10 xoffset=0 yoffset=7 xadvance=12 page=0 chnl=0
|
||||||
|
char id=170 x=250 y=52 width=6 height=5 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=171 x=161 y=52 width=9 height=8 xoffset=0 yoffset=12 xadvance=11 page=0 chnl=0
|
||||||
|
char id=172 x=240 y=52 width=8 height=5 xoffset=0 yoffset=14 xadvance=10 page=0 chnl=0
|
||||||
|
char id=174 x=412 y=38 width=10 height=10 xoffset=0 yoffset=7 xadvance=12 page=0 chnl=0
|
||||||
|
char id=175 x=334 y=52 width=5 height=2 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0
|
||||||
|
char id=176 x=196 y=52 width=6 height=6 xoffset=1 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=177 x=485 y=38 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=178 x=265 y=52 width=4 height=5 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=179 x=234 y=52 width=4 height=5 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=180 x=271 y=52 width=6 height=5 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=181 x=266 y=22 width=8 height=13 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=182 x=321 y=38 width=10 height=12 xoffset=-1 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=183 x=316 y=52 width=2 height=3 xoffset=0 yoffset=14 xadvance=4 page=0 chnl=0
|
||||||
|
char id=184 x=310 y=52 width=4 height=4 xoffset=-1 yoffset=20 xadvance=5 page=0 chnl=0
|
||||||
|
char id=185 x=287 y=52 width=4 height=5 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=186 x=214 y=52 width=6 height=6 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=187 x=181 y=52 width=9 height=8 xoffset=0 yoffset=12 xadvance=11 page=0 chnl=0
|
||||||
|
char id=188 x=443 y=2 width=9 height=15 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=189 x=454 y=2 width=9 height=15 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=190 x=189 y=2 width=9 height=16 xoffset=-1 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=191 x=168 y=22 width=7 height=13 xoffset=0 yoffset=11 xadvance=8 page=0 chnl=0
|
||||||
|
char id=192 x=27 y=2 width=11 height=17 xoffset=-1 yoffset=3 xadvance=11 page=0 chnl=0
|
||||||
|
char id=193 x=40 y=2 width=11 height=17 xoffset=-1 yoffset=3 xadvance=11 page=0 chnl=0
|
||||||
|
char id=194 x=222 y=2 width=11 height=16 xoffset=-1 yoffset=4 xadvance=11 page=0 chnl=0
|
||||||
|
char id=195 x=235 y=2 width=11 height=16 xoffset=-1 yoffset=4 xadvance=11 page=0 chnl=0
|
||||||
|
char id=196 x=248 y=2 width=12 height=16 xoffset=-2 yoffset=4 xadvance=10 page=0 chnl=0
|
||||||
|
char id=197 x=465 y=2 width=12 height=15 xoffset=-1 yoffset=5 xadvance=12 page=0 chnl=0
|
||||||
|
char id=198 x=489 y=22 width=15 height=12 xoffset=-1 yoffset=8 xadvance=16 page=0 chnl=0
|
||||||
|
char id=199 x=262 y=2 width=8 height=16 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=200 x=53 y=2 width=8 height=17 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=0
|
||||||
|
char id=201 x=63 y=2 width=8 height=17 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=0
|
||||||
|
char id=202 x=272 y=2 width=8 height=16 xoffset=0 yoffset=4 xadvance=10 page=0 chnl=0
|
||||||
|
char id=203 x=282 y=2 width=8 height=16 xoffset=0 yoffset=4 xadvance=10 page=0 chnl=0
|
||||||
|
char id=204 x=73 y=2 width=6 height=17 xoffset=-2 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=205 x=81 y=2 width=6 height=17 xoffset=-2 yoffset=3 xadvance=4 page=0 chnl=0
|
||||||
|
char id=206 x=292 y=2 width=8 height=16 xoffset=-3 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=207 x=302 y=2 width=6 height=16 xoffset=-1 yoffset=4 xadvance=6 page=0 chnl=0
|
||||||
|
char id=208 x=358 y=38 width=10 height=12 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=209 x=310 y=2 width=10 height=16 xoffset=0 yoffset=4 xadvance=12 page=0 chnl=0
|
||||||
|
char id=210 x=89 y=2 width=10 height=17 xoffset=0 yoffset=3 xadvance=12 page=0 chnl=0
|
||||||
|
char id=211 x=101 y=2 width=10 height=17 xoffset=0 yoffset=3 xadvance=12 page=0 chnl=0
|
||||||
|
char id=212 x=322 y=2 width=10 height=16 xoffset=0 yoffset=4 xadvance=12 page=0 chnl=0
|
||||||
|
char id=213 x=334 y=2 width=10 height=16 xoffset=0 yoffset=4 xadvance=12 page=0 chnl=0
|
||||||
|
char id=214 x=346 y=2 width=10 height=16 xoffset=0 yoffset=4 xadvance=12 page=0 chnl=0
|
||||||
|
char id=215 x=10 y=52 width=9 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=216 x=4 y=2 width=10 height=18 xoffset=0 yoffset=5 xadvance=12 page=0 chnl=0
|
||||||
|
char id=217 x=113 y=2 width=9 height=17 xoffset=0 yoffset=3 xadvance=11 page=0 chnl=0
|
||||||
|
char id=218 x=124 y=2 width=9 height=17 xoffset=0 yoffset=3 xadvance=11 page=0 chnl=0
|
||||||
|
char id=219 x=358 y=2 width=9 height=16 xoffset=0 yoffset=4 xadvance=11 page=0 chnl=0
|
||||||
|
char id=220 x=369 y=2 width=9 height=16 xoffset=0 yoffset=4 xadvance=11 page=0 chnl=0
|
||||||
|
char id=221 x=135 y=2 width=10 height=17 xoffset=-1 yoffset=3 xadvance=10 page=0 chnl=0
|
||||||
|
char id=222 x=289 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=223 x=300 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=224 x=74 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=225 x=84 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=226 x=185 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=227 x=333 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=228 x=256 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=229 x=32 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=230 x=450 y=38 width=13 height=9 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=0
|
||||||
|
char id=231 x=276 y=22 width=7 height=13 xoffset=0 yoffset=11 xadvance=8 page=0 chnl=0
|
||||||
|
char id=232 x=94 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=233 x=112 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=234 x=128 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=235 x=138 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=236 x=104 y=22 width=6 height=14 xoffset=-3 yoffset=6 xadvance=4 page=0 chnl=0
|
||||||
|
char id=237 x=499 y=2 width=6 height=14 xoffset=-1 yoffset=6 xadvance=4 page=0 chnl=0
|
||||||
|
char id=238 x=177 y=22 width=6 height=13 xoffset=-2 yoffset=7 xadvance=4 page=0 chnl=0
|
||||||
|
char id=239 x=285 y=22 width=6 height=13 xoffset=-2 yoffset=7 xadvance=4 page=0 chnl=0
|
||||||
|
char id=240 x=21 y=22 width=9 height=14 xoffset=0 yoffset=6 xadvance=11 page=0 chnl=0
|
||||||
|
char id=241 x=382 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=242 x=489 y=2 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=243 x=479 y=2 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=244 x=148 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=245 x=311 y=38 width=8 height=12 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=246 x=246 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=247 x=475 y=38 width=8 height=9 xoffset=0 yoffset=11 xadvance=10 page=0 chnl=0
|
||||||
|
char id=248 x=205 y=22 width=8 height=13 xoffset=0 yoffset=9 xadvance=10 page=0 chnl=0
|
||||||
|
char id=249 x=42 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=250 x=52 y=22 width=8 height=14 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=0
|
||||||
|
char id=251 x=293 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=252 x=195 y=22 width=8 height=13 xoffset=0 yoffset=7 xadvance=10 page=0 chnl=0
|
||||||
|
char id=253 x=16 y=2 width=9 height=18 xoffset=-1 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=254 x=200 y=2 width=8 height=16 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=0
|
||||||
|
char id=255 x=210 y=2 width=10 height=16 xoffset=-2 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=8226 x=258 y=52 width=5 height=5 xoffset=1 yoffset=13 xadvance=9 page=0 chnl=0
|
||||||
|
char id=8364 x=392 y=38 width=9 height=12 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
kernings count=0
|
||||||
198
assets/ui/font.fnt
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
info face="font" size=12 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=2 padding=1,1,1,1 spacing=0,0
|
||||||
|
common lineHeight=21 base=15 scaleW=504 scaleH=44 pages=1 packed=0 alphaChnl=0 redChnl=0 greenChnl=0 blueChnl=0
|
||||||
|
page id=0 file="font.png"
|
||||||
|
chars count=193
|
||||||
|
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=15 xadvance=3 page=0 chnl=0
|
||||||
|
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=-1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=33 x=393 y=18 width=1 height=10 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=34 x=458 y=30 width=3 height=3 xoffset=0 yoffset=5 xadvance=5 page=0 chnl=0
|
||||||
|
char id=35 x=101 y=30 width=8 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=36 x=142 y=2 width=6 height=13 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=37 x=496 y=18 width=7 height=10 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=38 x=0 y=30 width=9 height=10 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=39 x=463 y=30 width=1 height=3 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=40 x=272 y=2 width=3 height=12 xoffset=0 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=41 x=277 y=2 width=3 height=12 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=42 x=369 y=30 width=6 height=5 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=43 x=315 y=30 width=7 height=7 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=44 x=435 y=30 width=3 height=3 xoffset=-1 yoffset=14 xadvance=3 page=0 chnl=0
|
||||||
|
char id=45 x=497 y=30 width=5 height=1 xoffset=0 yoffset=11 xadvance=6 page=0 chnl=0
|
||||||
|
char id=46 x=466 y=30 width=1 height=2 xoffset=0 yoffset=13 xadvance=3 page=0 chnl=0
|
||||||
|
char id=47 x=446 y=2 width=6 height=11 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=48 x=120 y=30 width=7 height=9 xoffset=0 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=49 x=41 y=30 width=4 height=9 xoffset=0 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=50 x=47 y=30 width=7 height=9 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=51 x=56 y=30 width=6 height=9 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=52 x=64 y=30 width=8 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=53 x=74 y=30 width=7 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=54 x=83 y=30 width=7 height=9 xoffset=0 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=55 x=385 y=18 width=6 height=10 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=56 x=92 y=30 width=7 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=57 x=111 y=30 width=7 height=9 xoffset=0 yoffset=6 xadvance=9 page=0 chnl=0
|
||||||
|
char id=58 x=333 y=30 width=1 height=6 xoffset=0 yoffset=9 xadvance=3 page=0 chnl=0
|
||||||
|
char id=59 x=164 y=30 width=3 height=8 xoffset=-1 yoffset=9 xadvance=3 page=0 chnl=0
|
||||||
|
char id=60 x=214 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=61 x=449 y=30 width=7 height=3 xoffset=-1 yoffset=10 xadvance=8 page=0 chnl=0
|
||||||
|
char id=62 x=206 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=63 x=396 y=18 width=6 height=10 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=64 x=128 y=2 width=12 height=13 xoffset=0 yoffset=5 xadvance=14 page=0 chnl=0
|
||||||
|
char id=65 x=0 y=18 width=8 height=10 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=66 x=18 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=67 x=27 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=68 x=67 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=69 x=76 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=70 x=84 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=71 x=92 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=72 x=101 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=73 x=128 y=18 width=1 height=10 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=74 x=379 y=2 width=3 height=11 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=75 x=131 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=76 x=140 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=77 x=148 y=18 width=9 height=10 xoffset=0 yoffset=5 xadvance=11 page=0 chnl=0
|
||||||
|
char id=78 x=159 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=79 x=168 y=18 width=8 height=10 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=80 x=178 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=81 x=262 y=2 width=8 height=12 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=82 x=195 y=18 width=8 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=83 x=205 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=84 x=213 y=18 width=7 height=10 xoffset=-1 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=85 x=222 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=86 x=231 y=18 width=8 height=10 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=87 x=241 y=18 width=12 height=10 xoffset=-1 yoffset=5 xadvance=12 page=0 chnl=0
|
||||||
|
char id=88 x=260 y=18 width=8 height=10 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=89 x=270 y=18 width=9 height=10 xoffset=-2 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=90 x=281 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=91 x=282 y=2 width=3 height=12 xoffset=0 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=92 x=462 y=2 width=6 height=11 xoffset=-1 yoffset=5 xadvance=6 page=0 chnl=0
|
||||||
|
char id=93 x=287 y=2 width=3 height=12 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=94 x=360 y=30 width=7 height=5 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=95 x=481 y=30 width=7 height=1 xoffset=0 yoffset=16 xadvance=9 page=0 chnl=0
|
||||||
|
char id=96 x=423 y=30 width=4 height=3 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=97 x=198 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=98 x=296 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=99 x=222 y=30 width=5 height=7 xoffset=0 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=100 x=304 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=101 x=229 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=102 x=312 y=18 width=5 height=10 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=103 x=319 y=18 width=7 height=10 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=104 x=328 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=105 x=336 y=18 width=1 height=10 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=106 x=120 y=2 width=3 height=13 xoffset=-2 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=107 x=349 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=108 x=357 y=18 width=1 height=10 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=109 x=237 y=30 width=9 height=7 xoffset=0 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=110 x=248 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=111 x=256 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=112 x=360 y=18 width=6 height=10 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=113 x=368 y=18 width=6 height=10 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=114 x=158 y=30 width=4 height=8 xoffset=0 yoffset=7 xadvance=5 page=0 chnl=0
|
||||||
|
char id=115 x=264 y=30 width=5 height=7 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=116 x=34 y=30 width=5 height=9 xoffset=-1 yoffset=6 xadvance=5 page=0 chnl=0
|
||||||
|
char id=117 x=271 y=30 width=5 height=7 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=118 x=278 y=30 width=7 height=7 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=119 x=287 y=30 width=11 height=7 xoffset=-1 yoffset=8 xadvance=11 page=0 chnl=0
|
||||||
|
char id=120 x=300 y=30 width=6 height=7 xoffset=-1 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=121 x=376 y=18 width=7 height=10 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=122 x=308 y=30 width=5 height=7 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=123 x=292 y=2 width=5 height=12 xoffset=-1 yoffset=5 xadvance=5 page=0 chnl=0
|
||||||
|
char id=124 x=125 y=2 width=1 height=13 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=125 x=299 y=2 width=5 height=12 xoffset=-1 yoffset=5 xadvance=5 page=0 chnl=0
|
||||||
|
char id=126 x=469 y=30 width=7 height=2 xoffset=-1 yoffset=10 xadvance=8 page=0 chnl=0
|
||||||
|
char id=160 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=15 xadvance=3 page=0 chnl=0
|
||||||
|
char id=161 x=31 y=30 width=1 height=9 xoffset=0 yoffset=8 xadvance=3 page=0 chnl=0
|
||||||
|
char id=162 x=289 y=18 width=5 height=10 xoffset=0 yoffset=7 xadvance=7 page=0 chnl=0
|
||||||
|
char id=163 x=22 y=30 width=7 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=164 x=189 y=30 width=7 height=7 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=165 x=11 y=30 width=9 height=9 xoffset=-2 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=166 x=150 y=2 width=1 height=13 xoffset=0 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=167 x=486 y=2 width=5 height=11 xoffset=0 yoffset=6 xadvance=7 page=0 chnl=0
|
||||||
|
char id=168 x=0 y=42 width=4 height=1 xoffset=-1 yoffset=5 xadvance=4 page=0 chnl=0
|
||||||
|
char id=169 x=148 y=30 width=8 height=8 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=170 x=416 y=30 width=5 height=4 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=171 x=352 y=30 width=6 height=5 xoffset=0 yoffset=9 xadvance=7 page=0 chnl=0
|
||||||
|
char id=172 x=440 y=30 width=7 height=3 xoffset=-1 yoffset=10 xadvance=8 page=0 chnl=0
|
||||||
|
char id=174 x=138 y=30 width=8 height=8 xoffset=0 yoffset=5 xadvance=10 page=0 chnl=0
|
||||||
|
char id=175 x=490 y=30 width=5 height=1 xoffset=-2 yoffset=6 xadvance=3 page=0 chnl=0
|
||||||
|
char id=176 x=410 y=30 width=4 height=4 xoffset=1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=177 x=324 y=30 width=7 height=6 xoffset=-1 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=178 x=405 y=30 width=3 height=4 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=179 x=399 y=30 width=4 height=4 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=180 x=429 y=30 width=4 height=3 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=181 x=121 y=18 width=5 height=10 xoffset=0 yoffset=8 xadvance=7 page=0 chnl=0
|
||||||
|
char id=182 x=110 y=18 width=9 height=10 xoffset=-1 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=183 x=478 y=30 width=1 height=2 xoffset=0 yoffset=10 xadvance=3 page=0 chnl=0
|
||||||
|
char id=184 x=394 y=30 width=3 height=4 xoffset=-1 yoffset=14 xadvance=4 page=0 chnl=0
|
||||||
|
char id=185 x=389 y=30 width=3 height=4 xoffset=-1 yoffset=4 xadvance=4 page=0 chnl=0
|
||||||
|
char id=186 x=383 y=30 width=4 height=4 xoffset=0 yoffset=6 xadvance=6 page=0 chnl=0
|
||||||
|
char id=187 x=344 y=30 width=6 height=5 xoffset=0 yoffset=9 xadvance=7 page=0 chnl=0
|
||||||
|
char id=188 x=315 y=2 width=8 height=12 xoffset=-1 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=189 x=325 y=2 width=7 height=12 xoffset=-1 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=190 x=153 y=2 width=8 height=13 xoffset=-1 yoffset=3 xadvance=8 page=0 chnl=0
|
||||||
|
char id=191 x=36 y=18 width=6 height=10 xoffset=-1 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=192 x=4 y=2 width=8 height=14 xoffset=-1 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=193 x=14 y=2 width=8 height=14 xoffset=-1 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=194 x=173 y=2 width=8 height=13 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=195 x=183 y=2 width=8 height=13 xoffset=-1 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=196 x=334 y=2 width=8 height=12 xoffset=-1 yoffset=3 xadvance=8 page=0 chnl=0
|
||||||
|
char id=197 x=344 y=2 width=9 height=12 xoffset=-1 yoffset=3 xadvance=9 page=0 chnl=0
|
||||||
|
char id=198 x=482 y=18 width=12 height=10 xoffset=-1 yoffset=5 xadvance=13 page=0 chnl=0
|
||||||
|
char id=199 x=193 y=2 width=6 height=13 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=200 x=24 y=2 width=6 height=14 xoffset=0 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=201 x=32 y=2 width=6 height=14 xoffset=0 yoffset=1 xadvance=8 page=0 chnl=0
|
||||||
|
char id=202 x=209 y=2 width=6 height=13 xoffset=0 yoffset=2 xadvance=8 page=0 chnl=0
|
||||||
|
char id=203 x=355 y=2 width=7 height=12 xoffset=0 yoffset=3 xadvance=8 page=0 chnl=0
|
||||||
|
char id=204 x=49 y=2 width=4 height=14 xoffset=-2 yoffset=1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=205 x=55 y=2 width=4 height=14 xoffset=-1 yoffset=1 xadvance=3 page=0 chnl=0
|
||||||
|
char id=206 x=217 y=2 width=5 height=13 xoffset=-2 yoffset=2 xadvance=3 page=0 chnl=0
|
||||||
|
char id=207 x=374 y=2 width=3 height=12 xoffset=-1 yoffset=3 xadvance=3 page=0 chnl=0
|
||||||
|
char id=208 x=339 y=18 width=8 height=10 xoffset=-1 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=209 x=224 y=2 width=7 height=13 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0
|
||||||
|
char id=210 x=61 y=2 width=8 height=14 xoffset=0 yoffset=1 xadvance=10 page=0 chnl=0
|
||||||
|
char id=211 x=71 y=2 width=8 height=14 xoffset=0 yoffset=1 xadvance=10 page=0 chnl=0
|
||||||
|
char id=212 x=233 y=2 width=8 height=13 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0
|
||||||
|
char id=213 x=243 y=2 width=8 height=13 xoffset=0 yoffset=2 xadvance=10 page=0 chnl=0
|
||||||
|
char id=214 x=364 y=2 width=8 height=12 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=0
|
||||||
|
char id=215 x=181 y=30 width=6 height=7 xoffset=0 yoffset=8 xadvance=8 page=0 chnl=0
|
||||||
|
char id=216 x=81 y=2 width=8 height=14 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=0
|
||||||
|
char id=217 x=91 y=2 width=7 height=14 xoffset=0 yoffset=1 xadvance=9 page=0 chnl=0
|
||||||
|
char id=218 x=100 y=2 width=7 height=14 xoffset=0 yoffset=1 xadvance=9 page=0 chnl=0
|
||||||
|
char id=219 x=253 y=2 width=7 height=13 xoffset=0 yoffset=2 xadvance=9 page=0 chnl=0
|
||||||
|
char id=220 x=306 y=2 width=7 height=12 xoffset=0 yoffset=3 xadvance=9 page=0 chnl=0
|
||||||
|
char id=221 x=109 y=2 width=9 height=14 xoffset=-2 yoffset=1 xadvance=7 page=0 chnl=0
|
||||||
|
char id=222 x=426 y=18 width=7 height=10 xoffset=0 yoffset=5 xadvance=9 page=0 chnl=0
|
||||||
|
char id=223 x=418 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=224 x=423 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=225 x=407 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=226 x=187 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=227 x=443 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=228 x=451 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=229 x=415 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=230 x=169 y=30 width=10 height=7 xoffset=0 yoffset=8 xadvance=12 page=0 chnl=0
|
||||||
|
char id=231 x=404 y=18 width=5 height=10 xoffset=0 yoffset=8 xadvance=6 page=0 chnl=0
|
||||||
|
char id=232 x=454 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=233 x=470 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=234 x=474 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=235 x=10 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=236 x=499 y=2 width=4 height=11 xoffset=-2 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=237 x=493 y=2 width=4 height=11 xoffset=-1 yoffset=4 xadvance=3 page=0 chnl=0
|
||||||
|
char id=238 x=44 y=18 width=5 height=10 xoffset=-2 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=239 x=255 y=18 width=3 height=10 xoffset=-1 yoffset=5 xadvance=3 page=0 chnl=0
|
||||||
|
char id=240 x=478 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=241 x=466 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=242 x=438 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=243 x=399 y=2 width=6 height=11 xoffset=0 yoffset=4 xadvance=8 page=0 chnl=0
|
||||||
|
char id=244 x=435 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=245 x=59 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=246 x=51 y=18 width=6 height=10 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=247 x=336 y=30 width=6 height=5 xoffset=0 yoffset=9 xadvance=8 page=0 chnl=0
|
||||||
|
char id=248 x=384 y=2 width=6 height=11 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
char id=249 x=392 y=2 width=5 height=11 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=250 x=431 y=2 width=5 height=11 xoffset=0 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=251 x=411 y=18 width=5 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=252 x=459 y=18 width=5 height=10 xoffset=0 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=253 x=40 y=2 width=7 height=14 xoffset=-1 yoffset=4 xadvance=7 page=0 chnl=0
|
||||||
|
char id=254 x=201 y=2 width=6 height=13 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
|
||||||
|
char id=255 x=163 y=2 width=8 height=13 xoffset=-2 yoffset=5 xadvance=7 page=0 chnl=0
|
||||||
|
char id=8226 x=377 y=30 width=4 height=4 xoffset=1 yoffset=10 xadvance=8 page=0 chnl=0
|
||||||
|
char id=8364 x=129 y=30 width=7 height=9 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=0
|
||||||
|
kernings count=0
|
||||||
380
assets/ui/uiskin.atlas
Normal file
@@ -0,0 +1,380 @@
|
|||||||
|
|
||||||
|
uiskin.png
|
||||||
|
size: 512,512
|
||||||
|
format: RGBA8888
|
||||||
|
filter: Nearest,Nearest
|
||||||
|
repeat: none
|
||||||
|
button-normal
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 111
|
||||||
|
size: 41, 42
|
||||||
|
orig: 41, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
button-normal-over
|
||||||
|
rotate: false
|
||||||
|
xy: 102, 263
|
||||||
|
size: 41, 42
|
||||||
|
orig: 41, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
button-normal-pressed
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 67
|
||||||
|
size: 41, 42
|
||||||
|
orig: 41, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
check
|
||||||
|
rotate: false
|
||||||
|
xy: 290, 306
|
||||||
|
size: 24, 24
|
||||||
|
orig: 24, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
check-on
|
||||||
|
rotate: false
|
||||||
|
xy: 316, 306
|
||||||
|
size: 24, 24
|
||||||
|
orig: 24, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
checkbox
|
||||||
|
rotate: false
|
||||||
|
xy: 482, 309
|
||||||
|
size: 20, 21
|
||||||
|
orig: 20, 21
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
checkbox-over
|
||||||
|
rotate: false
|
||||||
|
xy: 438, 309
|
||||||
|
size: 20, 21
|
||||||
|
orig: 20, 21
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
checkbox-selected
|
||||||
|
rotate: false
|
||||||
|
xy: 32, 18
|
||||||
|
size: 20, 21
|
||||||
|
orig: 20, 21
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
checkbox-selected-over
|
||||||
|
rotate: false
|
||||||
|
xy: 460, 309
|
||||||
|
size: 20, 21
|
||||||
|
orig: 20, 21
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
font
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 402
|
||||||
|
size: 504, 44
|
||||||
|
orig: 504, 44
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
font-list
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 332
|
||||||
|
size: 505, 30
|
||||||
|
orig: 505, 30
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
font-subtitle
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 364
|
||||||
|
size: 505, 36
|
||||||
|
orig: 505, 36
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
font-window
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 448
|
||||||
|
size: 506, 62
|
||||||
|
orig: 506, 62
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
knob-h
|
||||||
|
rotate: false
|
||||||
|
xy: 188, 268
|
||||||
|
size: 24, 1
|
||||||
|
orig: 24, 1
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
knob-v
|
||||||
|
rotate: false
|
||||||
|
xy: 508, 422
|
||||||
|
size: 1, 24
|
||||||
|
orig: 1, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
line-h
|
||||||
|
rotate: false
|
||||||
|
xy: 102, 260
|
||||||
|
size: 24, 1
|
||||||
|
orig: 24, 1
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
line-v
|
||||||
|
rotate: false
|
||||||
|
xy: 509, 396
|
||||||
|
size: 1, 24
|
||||||
|
orig: 1, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
list
|
||||||
|
rotate: false
|
||||||
|
xy: 188, 271
|
||||||
|
size: 43, 34
|
||||||
|
orig: 43, 34
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
progress-bar
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 307
|
||||||
|
size: 252, 5
|
||||||
|
orig: 252, 5
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
progress-bar-knob
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 314
|
||||||
|
size: 252, 5
|
||||||
|
orig: 252, 5
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
progress-bar-square
|
||||||
|
rotate: false
|
||||||
|
xy: 256, 309
|
||||||
|
size: 4, 4
|
||||||
|
orig: 4, 4
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
progress-bar-square-knob
|
||||||
|
rotate: false
|
||||||
|
xy: 504, 328
|
||||||
|
size: 2, 2
|
||||||
|
orig: 2, 2
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
radio
|
||||||
|
rotate: false
|
||||||
|
xy: 366, 308
|
||||||
|
size: 22, 22
|
||||||
|
orig: 22, 22
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
radio-over
|
||||||
|
rotate: false
|
||||||
|
xy: 390, 308
|
||||||
|
size: 22, 22
|
||||||
|
orig: 22, 22
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
radio-selected
|
||||||
|
rotate: false
|
||||||
|
xy: 342, 308
|
||||||
|
size: 22, 22
|
||||||
|
orig: 22, 22
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
radio-selected-over
|
||||||
|
rotate: false
|
||||||
|
xy: 414, 308
|
||||||
|
size: 22, 22
|
||||||
|
orig: 22, 22
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
rect
|
||||||
|
rotate: false
|
||||||
|
xy: 32, 41
|
||||||
|
size: 12, 24
|
||||||
|
orig: 12, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
scrollbar
|
||||||
|
rotate: false
|
||||||
|
xy: 46, 150
|
||||||
|
size: 17, 16
|
||||||
|
orig: 17, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
select
|
||||||
|
rotate: false
|
||||||
|
xy: 262, 306
|
||||||
|
size: 26, 24
|
||||||
|
split: 4, 15, 0, 24
|
||||||
|
orig: 26, 24
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
select-box
|
||||||
|
rotate: false
|
||||||
|
xy: 145, 263
|
||||||
|
size: 41, 42
|
||||||
|
orig: 41, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
select-box-open
|
||||||
|
rotate: false
|
||||||
|
xy: 58, 214
|
||||||
|
size: 41, 42
|
||||||
|
orig: 41, 42
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
selection
|
||||||
|
rotate: false
|
||||||
|
xy: 46, 168
|
||||||
|
size: 16, 16
|
||||||
|
orig: 16, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
slider
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 321
|
||||||
|
size: 258, 9
|
||||||
|
orig: 258, 9
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
slider-knob
|
||||||
|
rotate: false
|
||||||
|
xy: 46, 57
|
||||||
|
size: 9, 9
|
||||||
|
orig: 9, 9
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
slider-knob-over
|
||||||
|
rotate: false
|
||||||
|
xy: 46, 46
|
||||||
|
size: 9, 9
|
||||||
|
orig: 9, 9
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-down
|
||||||
|
rotate: false
|
||||||
|
xy: 45, 100
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-down-over
|
||||||
|
rotate: false
|
||||||
|
xy: 45, 68
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-down-pressed
|
||||||
|
rotate: false
|
||||||
|
xy: 45, 116
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-textfield
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 7
|
||||||
|
size: 28, 28
|
||||||
|
orig: 28, 28
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-textfield-selected
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 37
|
||||||
|
size: 28, 28
|
||||||
|
orig: 28, 28
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-up
|
||||||
|
rotate: false
|
||||||
|
xy: 32, 2
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-up-over
|
||||||
|
rotate: false
|
||||||
|
xy: 45, 84
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
spinner-up-pressed
|
||||||
|
rotate: false
|
||||||
|
xy: 50, 2
|
||||||
|
size: 16, 14
|
||||||
|
orig: 16, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
square
|
||||||
|
rotate: false
|
||||||
|
xy: 256, 315
|
||||||
|
size: 4, 4
|
||||||
|
orig: 4, 4
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
textfield
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 155
|
||||||
|
size: 42, 47
|
||||||
|
orig: 42, 47
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
textfield-selected
|
||||||
|
rotate: false
|
||||||
|
xy: 58, 258
|
||||||
|
size: 42, 47
|
||||||
|
orig: 42, 47
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
tree-minus
|
||||||
|
rotate: false
|
||||||
|
xy: 46, 186
|
||||||
|
size: 16, 16
|
||||||
|
orig: 16, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
tree-plus
|
||||||
|
rotate: false
|
||||||
|
xy: 45, 132
|
||||||
|
size: 16, 16
|
||||||
|
orig: 16, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
white
|
||||||
|
rotate: false
|
||||||
|
xy: 509, 393
|
||||||
|
size: 1, 1
|
||||||
|
orig: 1, 1
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
dot
|
||||||
|
rotate: false
|
||||||
|
xy: 509, 393
|
||||||
|
size: 1, 1
|
||||||
|
orig: 1, 1
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
window
|
||||||
|
rotate: false
|
||||||
|
xy: 2, 204
|
||||||
|
size: 54, 101
|
||||||
|
orig: 54, 101
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
window-border
|
||||||
|
rotate: false
|
||||||
|
xy: 248, 279
|
||||||
|
size: 5, 26
|
||||||
|
split: 2, 2, 23, 2
|
||||||
|
orig: 5, 26
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
window-resize
|
||||||
|
rotate: false
|
||||||
|
xy: 233, 271
|
||||||
|
size: 13, 34
|
||||||
|
split: 2, 10, 23, 10
|
||||||
|
orig: 13, 34
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
438
assets/ui/uiskin.json
Normal file
@@ -0,0 +1,438 @@
|
|||||||
|
{
|
||||||
|
com.badlogic.gdx.graphics.g2d.BitmapFont: {
|
||||||
|
default: {
|
||||||
|
file: font.fnt
|
||||||
|
}
|
||||||
|
font: {
|
||||||
|
file: font.fnt
|
||||||
|
}
|
||||||
|
list: {
|
||||||
|
file: font-list.fnt
|
||||||
|
}
|
||||||
|
subtitle: {
|
||||||
|
file: font-subtitle.fnt
|
||||||
|
}
|
||||||
|
window: {
|
||||||
|
file: font-window.fnt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.graphics.Color: {
|
||||||
|
black: {
|
||||||
|
r: 0
|
||||||
|
g: 0
|
||||||
|
b: 0
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
disabled: {
|
||||||
|
r: 0.23137255
|
||||||
|
g: 0.24705882
|
||||||
|
b: 0.25882354
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
highlight: {
|
||||||
|
r: 0.19215687
|
||||||
|
g: 0.6627451
|
||||||
|
b: 0.95686275
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
message: {
|
||||||
|
r: 0.44313726
|
||||||
|
g: 0.47843137
|
||||||
|
b: 0.5372549
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
split: {
|
||||||
|
r: 0.44313726
|
||||||
|
g: 0.47843137
|
||||||
|
b: 0.5372549
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
white: {
|
||||||
|
r: 1
|
||||||
|
g: 1
|
||||||
|
b: 1
|
||||||
|
a: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
|
||||||
|
split: {
|
||||||
|
name: white
|
||||||
|
color: split
|
||||||
|
}
|
||||||
|
black: {
|
||||||
|
name: white
|
||||||
|
color: black
|
||||||
|
}
|
||||||
|
highlight: {
|
||||||
|
name: white
|
||||||
|
color: highlight
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.utils.TiledDrawable: {
|
||||||
|
progress-bar-knob-t: {
|
||||||
|
region: progress-bar-knob
|
||||||
|
minWidth: 0
|
||||||
|
minHeight: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: {
|
||||||
|
default: {
|
||||||
|
up: button-normal
|
||||||
|
down: button-normal-pressed
|
||||||
|
over: button-normal-over
|
||||||
|
focused: button-normal-over
|
||||||
|
}
|
||||||
|
spinner-up: {
|
||||||
|
up: spinner-up
|
||||||
|
down: spinner-up-pressed
|
||||||
|
over: spinner-up-over
|
||||||
|
}
|
||||||
|
spinner-down: {
|
||||||
|
up: spinner-down
|
||||||
|
down: spinner-down-pressed
|
||||||
|
over: spinner-down-over
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle: {
|
||||||
|
default: {
|
||||||
|
checkboxOn: checkbox-selected
|
||||||
|
checkboxOff: checkbox
|
||||||
|
checkboxOnOver: checkbox-selected-over
|
||||||
|
checkboxOver: checkbox-over
|
||||||
|
font: font
|
||||||
|
}
|
||||||
|
radio: {
|
||||||
|
checkboxOn: radio-selected
|
||||||
|
checkboxOff: radio
|
||||||
|
checkboxOnOver: radio-selected-over
|
||||||
|
checkboxOver: radio-over
|
||||||
|
font: font
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ImageButton$ImageButtonStyle: {
|
||||||
|
default: {
|
||||||
|
up: button-normal
|
||||||
|
down: button-normal-pressed
|
||||||
|
over: button-normal-over
|
||||||
|
focused: button-normal-over
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton$ImageTextButtonStyle: {
|
||||||
|
default: {
|
||||||
|
font: font
|
||||||
|
up: button-normal
|
||||||
|
down: button-normal-pressed
|
||||||
|
over: button-normal-over
|
||||||
|
focused: button-normal-pressed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: {
|
||||||
|
default: {
|
||||||
|
font: font
|
||||||
|
}
|
||||||
|
window: {
|
||||||
|
font: window
|
||||||
|
}
|
||||||
|
list: {
|
||||||
|
font: list
|
||||||
|
}
|
||||||
|
subtitle: {
|
||||||
|
font: subtitle
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle: {
|
||||||
|
default: {
|
||||||
|
font: list
|
||||||
|
fontColorSelected: white
|
||||||
|
fontColorUnselected: white
|
||||||
|
selection: selection
|
||||||
|
background: list
|
||||||
|
}
|
||||||
|
list-nobg: {
|
||||||
|
font: list
|
||||||
|
fontColorSelected: white
|
||||||
|
fontColorUnselected: white
|
||||||
|
selection: selection
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle: {
|
||||||
|
default-horizontal: {
|
||||||
|
background: progress-bar-square
|
||||||
|
knobBefore: progress-bar-square-knob
|
||||||
|
}
|
||||||
|
default-vertical: {
|
||||||
|
background: progress-bar-square
|
||||||
|
knobBefore: progress-bar-square-knob
|
||||||
|
}
|
||||||
|
curved: {
|
||||||
|
background: progress-bar
|
||||||
|
knobBefore: progress-bar-knob-t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle: {
|
||||||
|
default: {
|
||||||
|
hScrollKnob: scrollbar
|
||||||
|
vScrollKnob: scrollbar
|
||||||
|
}
|
||||||
|
list: {
|
||||||
|
background: list
|
||||||
|
hScrollKnob: scrollbar
|
||||||
|
vScrollKnob: scrollbar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle: {
|
||||||
|
default: {
|
||||||
|
font: font
|
||||||
|
fontColor: white
|
||||||
|
background: select-box
|
||||||
|
scrollStyle: list
|
||||||
|
listStyle: list-nobg
|
||||||
|
backgroundOpen: select-box-open
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle: {
|
||||||
|
default-horizontal: {
|
||||||
|
knobOver: slider-knob-over
|
||||||
|
knobDown: slider-knob-over
|
||||||
|
background: progress-bar-square
|
||||||
|
knob: slider-knob
|
||||||
|
}
|
||||||
|
default-vertical: {
|
||||||
|
knobOver: slider-knob-over
|
||||||
|
knobDown: slider-knob-over
|
||||||
|
background: progress-bar-square
|
||||||
|
knob: slider-knob
|
||||||
|
}
|
||||||
|
curved: {
|
||||||
|
knobOver: slider-knob-over
|
||||||
|
knobDown: slider-knob-over
|
||||||
|
background: slider
|
||||||
|
knob: slider-knob
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle: {
|
||||||
|
default-horizontal: {
|
||||||
|
handle: split
|
||||||
|
}
|
||||||
|
default-vertical: {
|
||||||
|
handle: split
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
|
||||||
|
default: {
|
||||||
|
font: font
|
||||||
|
up: button-normal
|
||||||
|
down: button-normal-pressed
|
||||||
|
over: button-normal-over
|
||||||
|
focused: button-normal-over
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
|
||||||
|
default: {
|
||||||
|
font: font
|
||||||
|
fontColor: white
|
||||||
|
disabledFontColor: disabled
|
||||||
|
background: textfield
|
||||||
|
focusedBackground: textfield-selected
|
||||||
|
cursor: white
|
||||||
|
selection: highlight
|
||||||
|
messageFont: font
|
||||||
|
messageFontColor: message
|
||||||
|
}
|
||||||
|
spinner: {
|
||||||
|
font: font
|
||||||
|
fontColor: white
|
||||||
|
disabledFontColor: disabled
|
||||||
|
background: spinner-textfield
|
||||||
|
focusedBackground: spinner-textfield-selected
|
||||||
|
cursor: white
|
||||||
|
selection: highlight
|
||||||
|
messageFont: font
|
||||||
|
messageFontColor: message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle: {
|
||||||
|
default: {
|
||||||
|
label: default
|
||||||
|
background: list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle: {
|
||||||
|
default: {
|
||||||
|
background: list
|
||||||
|
knob: slider-knob
|
||||||
|
}
|
||||||
|
}
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle: {
|
||||||
|
default: {
|
||||||
|
background: window
|
||||||
|
titleFont: window
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
com.badlogic.gdx.graphics.Color: {
|
||||||
|
white: { r: 1, g: 1, b: 1, a: 1 },
|
||||||
|
gray: { r: 0.5, g: 0.5, b: 0.5, a: 1 },
|
||||||
|
black: { r: 0, g: 0, b: 0, a: 1 },
|
||||||
|
|
||||||
|
up: { r: 0.1, g: 0.1, b: 0.1, a: 1 },
|
||||||
|
over: { r: 0.3, g: 0.3, b: 0.3, a: 1 },
|
||||||
|
down: { r: 0.3, g: 0, b: 0, a: 1 },
|
||||||
|
checked: { r: 0.3, g: 0, b: 0, a: 1 },
|
||||||
|
checkedOver: { r: 0.4, g: 0, b: 0, a: 1 },
|
||||||
|
disabled: { r: 0.4, g: 0.4, b: 0.4, a: 1 },
|
||||||
|
background: { r: 0.2, g: 0.2, b: 0.2, a: 1 },
|
||||||
|
selection: { r: 0.3, g: 0, b: 0, a: 1 },
|
||||||
|
semiTransparent: { r: 0, g: 0, b: 0, a: 0.6 },
|
||||||
|
|
||||||
|
font: white
|
||||||
|
fontOver: white
|
||||||
|
fontDown: gray
|
||||||
|
fontChecked: white
|
||||||
|
fontCheckedOver: white
|
||||||
|
fontDisabled: gray
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
|
||||||
|
buttonUp: { name: rect, color: up },
|
||||||
|
buttonOver: { name: rect, color: over },
|
||||||
|
buttonDown: { name: rect, color: down },
|
||||||
|
buttonDisabled: { name: rect, color: disabled },
|
||||||
|
buttonChecked: { name: rect, color: checked },
|
||||||
|
buttonCheckedOver: { name: rect, color: checkedOver },
|
||||||
|
checkBoxOn: { name: check-on, color: up },
|
||||||
|
checkBoxOff: { name: check, color: up },
|
||||||
|
checkBoxOver: { name: check, color: over },
|
||||||
|
checkBoxOnDisabled: { name: check-on, color: disabled },
|
||||||
|
checkBoxOffDisabled: { name: check, color: disabled },
|
||||||
|
icon: { name: check-on, color: font },
|
||||||
|
selection: { name: dot, color: selection },
|
||||||
|
list: { name: rect, color: background },
|
||||||
|
progressHorizontal: { name: line-v, color: up },
|
||||||
|
progressHorizontalKnob: { name: line-v, color: down },
|
||||||
|
progressHorizontalDisabled: { name: line-v, color: disabled },
|
||||||
|
progressHorizontalKnobDisabled: { name: line-v, color: disabled },
|
||||||
|
progressVertical: { name: line-h, color: up },
|
||||||
|
progressVerticalKnob: { name: line-h, color: down },
|
||||||
|
progressVerticalDisabled: { name: line-h, color: disabled },
|
||||||
|
progressVerticalKnobDisabled: { name: line-h, color: disabled },
|
||||||
|
scrollHorizontal: { name: line-v, color: up },
|
||||||
|
scrollVertical: { name: line-h, color: up },
|
||||||
|
scrollKnob: { name: knob-v, color: down },
|
||||||
|
scrollKnobVertical: { name: knob-h, color: down },
|
||||||
|
scrollPane: { name: rect, color: background },
|
||||||
|
selectBox: { name: select, color: up },
|
||||||
|
selectOver: { name: select, color: over },
|
||||||
|
selectDown: { name: select, color: over },
|
||||||
|
selectDisabled: { name: select, color: disabled },
|
||||||
|
selectList: { name: rect, color: over },
|
||||||
|
splitPane: { name: square, color: down },
|
||||||
|
sliderHorizontal: { name: square, color: up },
|
||||||
|
sliderKnob: { name: rect, color: up },
|
||||||
|
sliderKnobOver: { name: rect, color: over },
|
||||||
|
sliderKnobDown: { name: rect, color: down },
|
||||||
|
sliderKnobDisabled: { name: rect, color: disabled },
|
||||||
|
sliderVertical: { name: square, color: up },
|
||||||
|
sliderVerticalKnob: { name: rect, color: up },
|
||||||
|
sliderVerticalKnobOver: { name: rect, color: over },
|
||||||
|
sliderVerticalKnobDown: { name: rect, color: down },
|
||||||
|
sliderVerticalKnobDisabled: { name: rect, color: disabled },
|
||||||
|
textField: { name: rect, color: up },
|
||||||
|
textFieldDown: { name: rect, color: over },
|
||||||
|
textFieldDisabled: { name: rect, color: disabled },
|
||||||
|
textFieldCursor: { name: dot, color: font },
|
||||||
|
tooltip: { name: rect, color: up },
|
||||||
|
touchpad: { name: rect, color: over },
|
||||||
|
touchpadKnob: { name: check-on, color: down },
|
||||||
|
tree: { name: rect, color: background },
|
||||||
|
treeOver: { name: dot, color: over },
|
||||||
|
treeMinus: { name: tree-minus, color: up },
|
||||||
|
treePlus: { name: tree-plus, color: up },
|
||||||
|
window: { name: rect, color: background },
|
||||||
|
windowResize: { name: window-resize, color: background },
|
||||||
|
windowBorder: { name: window-border, color: background },
|
||||||
|
alpha: { name: dot, color: semiTransparent }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: {
|
||||||
|
default: { up: buttonUp, over: buttonOver, down: buttonDown, disabled: buttonDisabled },
|
||||||
|
toggle: { up: buttonUp, over: buttonOver, down: buttonDown, checked: buttonChecked, checkedOver: buttonCheckedOver, disabled: buttonDisabled }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle: {
|
||||||
|
default: { checkboxOn: checkBoxOn, checkboxOff: checkBoxOff, checkboxOver: checkBoxOver, checkboxOnDisabled: checkBoxOnDisabled,
|
||||||
|
checkboxOffDisabled: checkBoxOffDisabled, font: default, fontColor: font, overFontColor: fontOver, downFontColor: fontDown,
|
||||||
|
checkedFontColor: fontChecked, checkedOverFontColor: fontCheckedOver, disabledFontColor: fontDisabled, pressedOffsetY: -1, pressedOffsetX: 1 }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ImageButton$ImageButtonStyle: {
|
||||||
|
default: { up: buttonUp, over: buttonOver, down: buttonDown, disabled: buttonDisabled, imageUp: icon }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton$ImageTextButtonStyle: {
|
||||||
|
default: { up: buttonUp, over: buttonOver, down: buttonDown, disabled: buttonDisabled, font: default, fontColor: font,
|
||||||
|
overFontColor: fontOver, downFontColor: fontDown, disabledFontColor: fontDisabled, pressedOffsetY: -1, pressedOffsetX: 1, imageUp: icon }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: {
|
||||||
|
default: { font: default, fontColor: font },
|
||||||
|
white: { font: default, fontColor: white }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle: {
|
||||||
|
default: { fontColorUnselected: font, selection: selection, fontColorSelected: fontDown, font: default },
|
||||||
|
background: { background: list, fontColorUnselected: font, selection: selection, fontColorSelected: fontDown, font: default }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle: {
|
||||||
|
default-horizontal: { background: progressHorizontal, knobBefore: progressHorizontalKnob,
|
||||||
|
disabledBackground: progressHorizontalDisabled, disabledKnobBefore: progressHorizontalKnobDisabled },
|
||||||
|
default-vertical: { background: progressVertical, knobBefore: progressVerticalKnob,
|
||||||
|
disabledBackground: progressVerticalDisabled, disabledKnobBefore: progressVerticalKnobDisabled }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle: {
|
||||||
|
default: { hScrollKnob: scrollKnob, vScrollKnob: scrollKnobVertical, hScroll: scrollHorizontal, vScroll: scrollVertical },
|
||||||
|
clean: { hScrollKnob: scrollKnob, vScrollKnob: scrollKnobVertical },
|
||||||
|
background: { background: scrollPane, hScrollKnob: scrollKnob, vScrollKnob: scrollKnobVertical, hScroll: scrollHorizontal, vScroll: scrollVertical }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle: {
|
||||||
|
default: { font: default, fontColor: font, disabledFontColor: fontDisabled, background: selectBox, backgroundOver: selectOver,
|
||||||
|
backgroundOpen: selectDown, backgroundDisabled: selectDisabled, scrollStyle: default, listStyle:
|
||||||
|
{ background: selectList, fontColorUnselected: font, selection: selection, fontColorSelected: fontDown, font: default }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle: {
|
||||||
|
default-horizontal: { background: sliderHorizontal, knob: sliderKnob, knobOver: sliderKnobOver, knobDown: sliderKnobDown,
|
||||||
|
disabledKnob: sliderKnobDisabled },
|
||||||
|
default-vertical: { background: sliderVertical, knob: sliderVerticalKnob, knobOver: sliderVerticalKnobOver,
|
||||||
|
knobDown: sliderVerticalKnobDown, disabledKnob: sliderVerticalKnobDisabled }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle: {
|
||||||
|
default-vertical: { handle: splitPane },
|
||||||
|
default-horizontal: { handle: splitPane }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
|
||||||
|
default: { up: buttonUp, over: buttonOver, down: buttonDown, disabled: buttonDisabled, font: default, fontColor: font,
|
||||||
|
overFontColor: fontOver, downFontColor: fontDown, disabledFontColor: fontDisabled, pressedOffsetY: -1, pressedOffsetX: 1 },
|
||||||
|
toggle: { up: buttonUp, over: buttonOver, down: buttonDown, checked: buttonChecked, checkedOver: buttonCheckedOver,
|
||||||
|
disabled: buttonDisabled, font: default, fontColor: font, overFontColor: fontOver, downFontColor: fontDown, disabledFontColor:
|
||||||
|
fontDisabled, checkedFontColor: fontChecked, checkedOverFontColor: fontCheckedOver, pressedOffsetY: -1, pressedOffsetX: 1 },
|
||||||
|
text: { font: default, fontColor: up, overFontColor: over, downFontColor: down, disabledFontColor: disabled,
|
||||||
|
pressedOffsetY: -1, pressedOffsetX: 1 },
|
||||||
|
textToggle: { font: default, fontColor: up, overFontColor: over, downFontColor: down, disabledFontColor:
|
||||||
|
disabled, checkedFontColor: font, checkedOverFontColor: fontOver, pressedOffsetY: -1, pressedOffsetX: 1 }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
|
||||||
|
default: { font: default, messageFont: default, fontColor: font, focusedFontColor: fontOver, disabledFontColor: fontDisabled,
|
||||||
|
messageFontColor: fontDown, background: textField, focusedBackground: textFieldDown, disabledBackground: textFieldDisabled,
|
||||||
|
cursor: textFieldCursor, selection: selection }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle: {
|
||||||
|
default: { label: default, background: tooltip }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle: {
|
||||||
|
default: { background: touchpad, knob: touchpadKnob }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Tree$TreeStyle: {
|
||||||
|
default: { minus: treeMinus, plus: treePlus, selection: selection, over: treeOver },
|
||||||
|
background: { background: tree, minus: treeMinus, plus: treePlus, selection: selection, over: treeOver }
|
||||||
|
},
|
||||||
|
com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle: {
|
||||||
|
default: { titleFont: default, background: window, titleFontColor: fontDisabled },
|
||||||
|
resize: { titleFont: default, background: windowResize, titleFontColor: fontDisabled },
|
||||||
|
border: { titleFont: default, background: windowBorder, titleFontColor: fontDisabled },
|
||||||
|
dialog: { titleFont: default, background: window, titleFontColor: fontDisabled, stageBackground: alpha }
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/ui/uiskin.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
73
build.gradle
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven { url 'https://s01.oss.sonatype.org' }
|
||||||
|
gradlePluginPortal()
|
||||||
|
mavenLocal()
|
||||||
|
google()
|
||||||
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
||||||
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'idea'
|
||||||
|
|
||||||
|
// This allows you to "Build and run using IntelliJ IDEA", an option in IDEA's Settings.
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
outputDir file('build/classes/java/main')
|
||||||
|
testOutputDir file('build/classes/java/test')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
configure(subprojects) {
|
||||||
|
apply plugin: 'java-library'
|
||||||
|
sourceCompatibility = 21
|
||||||
|
|
||||||
|
// From https://lyze.dev/2021/04/29/libGDX-Internal-Assets-List/
|
||||||
|
// The article can be helpful when using assets.txt in your project.
|
||||||
|
tasks.register('generateAssetList') {
|
||||||
|
inputs.dir("${project.rootDir}/assets/")
|
||||||
|
// projectFolder/assets
|
||||||
|
File assetsFolder = new File("${project.rootDir}/assets/")
|
||||||
|
// projectFolder/assets/assets.txt
|
||||||
|
File assetsFile = new File(assetsFolder, "assets.txt")
|
||||||
|
// delete that file in case we've already created it
|
||||||
|
assetsFile.delete()
|
||||||
|
|
||||||
|
// iterate through all files inside that folder
|
||||||
|
// convert it to a relative path
|
||||||
|
// and append it to the file assets.txt
|
||||||
|
fileTree(assetsFolder).collect { assetsFolder.relativePath(it) }.sort().each {
|
||||||
|
assetsFile.append(it + "\n")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
processResources.dependsOn 'generateAssetList'
|
||||||
|
|
||||||
|
compileJava {
|
||||||
|
options.incremental = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
version = "$projectVersion"
|
||||||
|
ext.appName = 'Technic-GDX'
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven { url 'https://s01.oss.sonatype.org' }
|
||||||
|
// You may want to remove the following line if you have errors downloading dependencies.
|
||||||
|
mavenLocal()
|
||||||
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
||||||
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
eclipse.project.name = 'Technic-GDX' + '-parent'
|
||||||
12
core/build.gradle
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
eclipse.project.name = appName + '-core'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||||
|
|
||||||
|
if(enableGraalNative == 'true') {
|
||||||
|
implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion"
|
||||||
|
}
|
||||||
|
|
||||||
|
implementation(project(":server"))
|
||||||
|
}
|
||||||
41
core/src/main/java/com/ghost/technic/BattlefieldScreen.java
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
|
import com.badlogic.gdx.Screen;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Stage;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||||
|
import com.badlogic.gdx.utils.ScreenUtils;
|
||||||
|
import com.badlogic.gdx.utils.viewport.FitViewport;
|
||||||
|
|
||||||
|
public class BattlefieldScreen implements Screen {
|
||||||
|
|
||||||
|
private final Stage stage;
|
||||||
|
private final Skin skin;
|
||||||
|
|
||||||
|
public BattlefieldScreen(Skin skin) {
|
||||||
|
this.stage = new Stage(new FitViewport(1280, 720));
|
||||||
|
this.skin = skin;
|
||||||
|
|
||||||
|
// Add the battlefield view
|
||||||
|
BattlefieldView battlefieldView = new BattlefieldView(skin);
|
||||||
|
stage.addActor(battlefieldView);
|
||||||
|
|
||||||
|
Gdx.input.setInputProcessor(stage);
|
||||||
|
|
||||||
|
stage.setDebugAll(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(float delta) {
|
||||||
|
ScreenUtils.clear(0f, 0f, 0f, 1f);
|
||||||
|
stage.act(delta);
|
||||||
|
stage.draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void resize(int width, int height) { stage.getViewport().update(width, height, true); }
|
||||||
|
@Override public void show() {}
|
||||||
|
@Override public void hide() {}
|
||||||
|
@Override public void pause() {}
|
||||||
|
@Override public void resume() {}
|
||||||
|
@Override public void dispose() { stage.dispose(); }
|
||||||
|
}
|
||||||
62
core/src/main/java/com/ghost/technic/BattlefieldView.java
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Label;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Table;
|
||||||
|
|
||||||
|
public class BattlefieldView extends Table {
|
||||||
|
public BattlefieldView(Skin skin) {
|
||||||
|
super(skin);
|
||||||
|
setFillParent(true);
|
||||||
|
|
||||||
|
// Top rows — opponent side
|
||||||
|
Table opponentZones = new Table(skin);
|
||||||
|
// opponentZones.align(Align.left);
|
||||||
|
opponentZones.add(new Label("Archives", skin)).pad(5);
|
||||||
|
opponentZones.add(new Label("Discard", skin)).pad(5);
|
||||||
|
opponentZones.add().expandX(); // spacer
|
||||||
|
opponentZones.add(new Label("Archon", skin)).pad(5);
|
||||||
|
opponentZones.add(new Label("Deck", skin)).pad(5).right();
|
||||||
|
|
||||||
|
Table opponentArtifacts = new Table(skin);
|
||||||
|
opponentArtifacts.add(new Label("Opponent Artifacts", skin)).pad(10);
|
||||||
|
|
||||||
|
Table opponentCreatures = new Table(skin);
|
||||||
|
opponentCreatures.add(new Label("Opponent Creatures", skin)).pad(10);
|
||||||
|
|
||||||
|
Table yourCreatures = new Table(skin);
|
||||||
|
yourCreatures.add(new Label("Your Creatures", skin)).pad(10);
|
||||||
|
|
||||||
|
Table yourArtifacts = new Table(skin);
|
||||||
|
yourArtifacts.add(new Label("Your Artifacts", skin)).pad(10);
|
||||||
|
|
||||||
|
Table yourZones = new Table(skin);
|
||||||
|
// yourZones.align(Align.left);
|
||||||
|
yourZones.add(new Label("Deck", skin)).pad(5);
|
||||||
|
yourZones.add(new Label("Archon", skin)).pad(5);
|
||||||
|
yourZones.add().expandX(); // spacer
|
||||||
|
yourZones.add(new Label("Discard", skin)).pad(5);
|
||||||
|
yourZones.add(new Label("Archives", skin)).pad(5).right();
|
||||||
|
|
||||||
|
// Misc vertical zone (Tide, Prophecy, Tokens, etc.)
|
||||||
|
Table miscZone = new Table(skin);
|
||||||
|
miscZone.top().right();
|
||||||
|
miscZone.add(new Label("Misc Zone", skin)).pad(10).row();
|
||||||
|
miscZone.add(new Label("[Tide]", skin)).pad(5).row();
|
||||||
|
miscZone.add(new Label("[Prophecy]", skin)).pad(5).row();
|
||||||
|
miscZone.add(new Label("[Tokens]", skin)).pad(5);
|
||||||
|
|
||||||
|
// Layout main table with a center content + misc column on right
|
||||||
|
Table mainCenter = new Table(skin);
|
||||||
|
mainCenter.add(opponentZones).expand().fill().row();
|
||||||
|
mainCenter.add(opponentArtifacts).expand().fill().row();
|
||||||
|
mainCenter.add(opponentCreatures).expand().fill().row();
|
||||||
|
mainCenter.add(yourCreatures).expand().fill().row();
|
||||||
|
mainCenter.add(yourArtifacts).expand().fill().row();
|
||||||
|
mainCenter.add(yourZones).expand().fill().row();;
|
||||||
|
|
||||||
|
// Add main and misc to the root table
|
||||||
|
this.add(mainCenter).expand().fill().left();
|
||||||
|
this.add(miscZone).right().padRight(20f);
|
||||||
|
}
|
||||||
|
}
|
||||||
83
core/src/main/java/com/ghost/technic/CardActor.java
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Actor;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.InputEvent;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.InputListener;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.*;
|
||||||
|
import com.ghost.technic.server.card.keyword.Keyword;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
public class CardActor extends Table {
|
||||||
|
private final PlayableCard card;
|
||||||
|
|
||||||
|
public CardActor(PlayableCard card, Skin skin) {
|
||||||
|
this.card = card;
|
||||||
|
setBackground("default-round");
|
||||||
|
pad(10);
|
||||||
|
|
||||||
|
Label nameLabel = new Label(card.getName(), skin);
|
||||||
|
add(nameLabel).row();
|
||||||
|
|
||||||
|
// Example: add keyword display
|
||||||
|
if (card instanceof CreatureCard creature) {
|
||||||
|
for (Keyword k : creature.getKeywords()) {
|
||||||
|
Label kwLabel = new Label(k.toString(), skin);
|
||||||
|
add(kwLabel).row();
|
||||||
|
addTooltip(kwLabel, k.getKeywordAbility().name()); // TODO: add tooltip details
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void addTooltip(Actor actor, String text) {
|
||||||
|
Tooltip<Label> tooltip = new Tooltip<>(new Label(text, getSkin()));
|
||||||
|
TooltipManager.getInstance().initialTime = 0.4f;
|
||||||
|
tooltip.setInstant(true);
|
||||||
|
tooltip.setAlways(true);
|
||||||
|
actor.addListener(tooltip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//public class CardActor extends Image {
|
||||||
|
// private final PlayableCard card;
|
||||||
|
//
|
||||||
|
// public CardActor(PlayableCard card, Skin skin) {
|
||||||
|
// super(skin.getDrawable("card-default")); // Replace with card sprite
|
||||||
|
// this.card = card;
|
||||||
|
//
|
||||||
|
// setSize(100, 150); // Default size
|
||||||
|
// addListener(new InputListener() {
|
||||||
|
// @Override
|
||||||
|
// public boolean mouseMoved(InputEvent event, float x, float y) {
|
||||||
|
// setScale(1.2f);
|
||||||
|
// setZIndex(Integer.MAX_VALUE); // bring to front
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @Override
|
||||||
|
// public void exit(InputEvent event, float x, float y, int pointer, Actor toActor) {
|
||||||
|
// setScale(1f);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @Override
|
||||||
|
// public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
|
||||||
|
// System.out.println("Clicked: " + card.getName());
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// addListener(new Tooltip<>(new Label(generateTooltipText(card), skin)));
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// private String generateTooltipText(PlayableCard card) {
|
||||||
|
// if (card instanceof CreatureCard creature) {
|
||||||
|
// return creature.getKeywords().stream()
|
||||||
|
// .map(Keyword::toString)
|
||||||
|
// .collect(Collectors.joining(", "));
|
||||||
|
// }
|
||||||
|
// return "Playable: " + card.getCardType();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
30
core/src/main/java/com/ghost/technic/CardView.java
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.InputEvent;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Touchable;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Image;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.utils.DragListener;
|
||||||
|
|
||||||
|
public class CardView extends Image {
|
||||||
|
private final String cardId;
|
||||||
|
|
||||||
|
public CardView(TextureAtlas atlas, String cardId) {
|
||||||
|
super(atlas.findRegion(cardId));
|
||||||
|
this.cardId = cardId;
|
||||||
|
|
||||||
|
setSize(150, 210); // Resize for display
|
||||||
|
setTouchable(Touchable.enabled);
|
||||||
|
|
||||||
|
addListener(new DragListener() {
|
||||||
|
@Override
|
||||||
|
public void drag(InputEvent event, float x, float y, int pointer) {
|
||||||
|
moveBy(x - getWidth() / 2, y - getHeight() / 2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCardId() {
|
||||||
|
return cardId;
|
||||||
|
}
|
||||||
|
}
|
||||||
32
core/src/main/java/com/ghost/technic/HandView.java
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.math.Vector2;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Table;
|
||||||
|
import com.badlogic.gdx.utils.Align;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class HandView extends Table {
|
||||||
|
private final List<CardView> cards = new ArrayList<>();
|
||||||
|
|
||||||
|
public HandView(Skin skin) {
|
||||||
|
super(skin);
|
||||||
|
setBackground("default-round"); // Optional
|
||||||
|
setFillParent(false);
|
||||||
|
align(Align.bottomLeft);
|
||||||
|
pad(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addCard(CardView cardView) {
|
||||||
|
cards.add(cardView);
|
||||||
|
add(cardView).pad(5);
|
||||||
|
row();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCardNear(Vector2 cardPos) {
|
||||||
|
Vector2 local = stageToLocalCoordinates(cardPos.cpy());
|
||||||
|
return hit(local.x, local.y, true) != null;
|
||||||
|
}
|
||||||
|
}
|
||||||
74
core/src/main/java/com/ghost/technic/TechnicClient.java
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
package com.ghost.technic;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.ApplicationAdapter;
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
|
import com.badlogic.gdx.Screen;
|
||||||
|
import com.badlogic.gdx.assets.AssetManager;
|
||||||
|
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||||
|
import com.badlogic.gdx.math.MathUtils;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Actor;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Stage;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.ui.Window;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
|
||||||
|
import com.badlogic.gdx.utils.ScreenUtils;
|
||||||
|
import com.badlogic.gdx.utils.viewport.FitViewport;
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import com.ghost.technic.server.game.event.EventBus;
|
||||||
|
|
||||||
|
/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */
|
||||||
|
public class TechnicClient extends ApplicationAdapter {
|
||||||
|
|
||||||
|
private Skin skin;
|
||||||
|
private Screen currentScreen;
|
||||||
|
private AssetManager assetManager;
|
||||||
|
private GameState gameState;
|
||||||
|
private GameActionService gameActionService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void create() {
|
||||||
|
|
||||||
|
skin = new Skin(Gdx.files.internal("ui/uiskin.json"));
|
||||||
|
assetManager = new AssetManager();
|
||||||
|
assetManager.load("cards/cards.atlas", TextureAtlas.class);
|
||||||
|
assetManager.finishLoading();
|
||||||
|
Gdx.app.log("TechnicClient | INFO", "Finished loading assets!");
|
||||||
|
|
||||||
|
gameState = new GameState(new EventBus());
|
||||||
|
gameActionService = new GameActionService(gameState);
|
||||||
|
|
||||||
|
Player playerOne = Player.builder().name("Alice").build();
|
||||||
|
Player playerTwo = Player.builder().name("Bob").build();
|
||||||
|
gameState.setPlayers(playerOne, playerTwo);
|
||||||
|
gameState.setup();
|
||||||
|
|
||||||
|
currentScreen = new BattlefieldScreen(skin); // store reference
|
||||||
|
currentScreen.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render() {
|
||||||
|
if (currentScreen != null) {
|
||||||
|
currentScreen.render(Gdx.graphics.getDeltaTime());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resize(int width, int height) {
|
||||||
|
if (currentScreen != null) {
|
||||||
|
currentScreen.resize(width, height);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void dispose() {
|
||||||
|
if (currentScreen != null) {
|
||||||
|
currentScreen.dispose();
|
||||||
|
}
|
||||||
|
skin.dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
17
gradle.properties
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# This doesn't need to be false, and some projects may be able to take advantage of setting daemon to true.
|
||||||
|
# We set it to false by default in order to avoid too many daemons from being created and persisting; each needs RAM.
|
||||||
|
org.gradle.daemon=false
|
||||||
|
# Sets starting memory usage to 512MB, maximum memory usage to 1GB, and tries to set as much to use Unicode as we can.
|
||||||
|
org.gradle.jvmargs=-Xms512M -Xmx1G -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8
|
||||||
|
# "Configure on-demand" must be false because it breaks projects that have Android modules. The default is also false.
|
||||||
|
org.gradle.configureondemand=false
|
||||||
|
# The logging level determines which messages get shown about how Gradle itself is working, such as if build.gradle
|
||||||
|
# files are fully future-proof (which they never are, because Gradle constantly deprecates working APIs).
|
||||||
|
# You can change 'quiet' below to 'lifecycle' to use Gradle's default behavior, which shows some confusing messages.
|
||||||
|
# You could instead change 'quiet' below to 'info' to see info that's important mainly while debugging build files.
|
||||||
|
# Documented at: https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_logging
|
||||||
|
org.gradle.logging.level=quiet
|
||||||
|
graalHelperVersion=2.0.1
|
||||||
|
enableGraalNative=false
|
||||||
|
gdxVersion=1.13.1
|
||||||
|
projectVersion=1.0.0
|
||||||
12
gradle/gradle-daemon-jvm.properties
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#This file is generated by updateDaemonJvm
|
||||||
|
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect
|
||||||
|
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect
|
||||||
|
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect
|
||||||
|
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect
|
||||||
|
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/73bcfb608d1fde9fb62e462f834a3299/redirect
|
||||||
|
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/846ee0d876d26a26f37aa1ce8de73224/redirect
|
||||||
|
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect
|
||||||
|
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect
|
||||||
|
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9482ddec596298c84656d31d16652665/redirect
|
||||||
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/39701d92e1756bb2f141eb67cd4c660e/redirect
|
||||||
|
toolchainVersion=21
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
7
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
251
gradlew
vendored
Normal file
@@ -0,0 +1,251 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright © 2015-2021 the original authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# Gradle start up script for POSIX generated by Gradle.
|
||||||
|
#
|
||||||
|
# Important for running:
|
||||||
|
#
|
||||||
|
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||||
|
# noncompliant, but you have some other compliant shell such as ksh or
|
||||||
|
# bash, then to run this script, type that shell name before the whole
|
||||||
|
# command line, like:
|
||||||
|
#
|
||||||
|
# ksh Gradle
|
||||||
|
#
|
||||||
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
|
# requires all of these POSIX shell features:
|
||||||
|
# * functions;
|
||||||
|
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||||
|
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||||
|
# * compound commands having a testable exit status, especially «case»;
|
||||||
|
# * various built-in commands including «command», «set», and «ulimit».
|
||||||
|
#
|
||||||
|
# Important for patching:
|
||||||
|
#
|
||||||
|
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||||
|
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||||
|
#
|
||||||
|
# The "traditional" practice of packing multiple parameters into a
|
||||||
|
# space-separated string is a well documented source of bugs and security
|
||||||
|
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||||
|
# options in "$@", and eventually passing that to Java.
|
||||||
|
#
|
||||||
|
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||||
|
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||||
|
# see the in-line comments for details.
|
||||||
|
#
|
||||||
|
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||||
|
# Darwin, MinGW, and NonStop.
|
||||||
|
#
|
||||||
|
# (3) This script is generated from the Groovy template
|
||||||
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
|
# within the Gradle project.
|
||||||
|
#
|
||||||
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Attempt to set APP_HOME
|
||||||
|
|
||||||
|
# Resolve links: $0 may be a link
|
||||||
|
app_path=$0
|
||||||
|
|
||||||
|
# Need this for daisy-chained symlinks.
|
||||||
|
while
|
||||||
|
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||||
|
[ -h "$app_path" ]
|
||||||
|
do
|
||||||
|
ls=$( ls -ld "$app_path" )
|
||||||
|
link=${ls#*' -> '}
|
||||||
|
case $link in #(
|
||||||
|
/*) app_path=$link ;; #(
|
||||||
|
*) app_path=$APP_HOME$link ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# This is normally unused
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
APP_BASE_NAME=${0##*/}
|
||||||
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD=maximum
|
||||||
|
|
||||||
|
warn () {
|
||||||
|
echo "$*"
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
die () {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
# OS specific support (must be 'true' or 'false').
|
||||||
|
cygwin=false
|
||||||
|
msys=false
|
||||||
|
darwin=false
|
||||||
|
nonstop=false
|
||||||
|
case "$( uname )" in #(
|
||||||
|
CYGWIN* ) cygwin=true ;; #(
|
||||||
|
Darwin* ) darwin=true ;; #(
|
||||||
|
MSYS* | MINGW* ) msys=true ;; #(
|
||||||
|
NONSTOP* ) nonstop=true ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
CLASSPATH="\\\"\\\""
|
||||||
|
|
||||||
|
|
||||||
|
# Determine the Java command to use to start the JVM.
|
||||||
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
|
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||||
|
else
|
||||||
|
JAVACMD=$JAVA_HOME/bin/java
|
||||||
|
fi
|
||||||
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
JAVACMD=java
|
||||||
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increase the maximum file descriptors if we can.
|
||||||
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||||
|
case $MAX_FD in #(
|
||||||
|
max*)
|
||||||
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC2039,SC3045
|
||||||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
|
warn "Could not query maximum file descriptor limit"
|
||||||
|
esac
|
||||||
|
case $MAX_FD in #(
|
||||||
|
'' | soft) :;; #(
|
||||||
|
*)
|
||||||
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC2039,SC3045
|
||||||
|
ulimit -n "$MAX_FD" ||
|
||||||
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Collect all arguments for the java command, stacking in reverse order:
|
||||||
|
# * args from the command line
|
||||||
|
# * the main class name
|
||||||
|
# * -classpath
|
||||||
|
# * -D...appname settings
|
||||||
|
# * --module-path (only if needed)
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||||
|
|
||||||
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
|
if "$cygwin" || "$msys" ; then
|
||||||
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
|
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||||
|
|
||||||
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
|
|
||||||
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
for arg do
|
||||||
|
if
|
||||||
|
case $arg in #(
|
||||||
|
-*) false ;; # don't mess with options #(
|
||||||
|
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||||
|
[ -e "$t" ] ;; #(
|
||||||
|
*) false ;;
|
||||||
|
esac
|
||||||
|
then
|
||||||
|
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||||
|
fi
|
||||||
|
# Roll the args list around exactly as many times as the number of
|
||||||
|
# args, so each arg winds up back in the position where it started, but
|
||||||
|
# possibly modified.
|
||||||
|
#
|
||||||
|
# NB: a `for` loop captures its iteration list before it begins, so
|
||||||
|
# changing the positional parameters here affects neither the number of
|
||||||
|
# iterations, nor the values presented in `arg`.
|
||||||
|
shift # remove old arg
|
||||||
|
set -- "$@" "$arg" # push replacement arg
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
|
# Collect all arguments for the java command:
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
|
# and any embedded shellness will be escaped.
|
||||||
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
|
set -- \
|
||||||
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
|
-classpath "$CLASSPATH" \
|
||||||
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
|
"$@"
|
||||||
|
|
||||||
|
# Stop when "xargs" is not available.
|
||||||
|
if ! command -v xargs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "xargs is not available"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use "xargs" to parse quoted args.
|
||||||
|
#
|
||||||
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||||
|
#
|
||||||
|
# In Bash we could simply go:
|
||||||
|
#
|
||||||
|
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||||
|
# set -- "${ARGS[@]}" "$@"
|
||||||
|
#
|
||||||
|
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||||
|
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||||
|
# character that might be a shell metacharacter, then use eval to reverse
|
||||||
|
# that process (while maintaining the separation between arguments), and wrap
|
||||||
|
# the whole thing up as a single "set" statement.
|
||||||
|
#
|
||||||
|
# This will of course break if any of these variables contains a newline or
|
||||||
|
# an unmatched quote.
|
||||||
|
#
|
||||||
|
|
||||||
|
eval "set -- $(
|
||||||
|
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||||
|
xargs -n1 |
|
||||||
|
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||||
|
tr '\n' ' '
|
||||||
|
)" '"$@"'
|
||||||
|
|
||||||
|
exec "$JAVACMD" "$@"
|
||||||
94
gradlew.bat
vendored
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
@rem
|
||||||
|
@rem Copyright 2015 the original author or authors.
|
||||||
|
@rem
|
||||||
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@rem you may not use this file except in compliance with the License.
|
||||||
|
@rem You may obtain a copy of the License at
|
||||||
|
@rem
|
||||||
|
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@rem
|
||||||
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@rem See the License for the specific language governing permissions and
|
||||||
|
@rem limitations under the License.
|
||||||
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
|
@if "%DEBUG%"=="" @echo off
|
||||||
|
@rem ##########################################################################
|
||||||
|
@rem
|
||||||
|
@rem Gradle startup script for Windows
|
||||||
|
@rem
|
||||||
|
@rem ##########################################################################
|
||||||
|
|
||||||
|
@rem Set local scope for the variables with windows NT shell
|
||||||
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
|
set DIRNAME=%~dp0
|
||||||
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
|
@rem This is normally unused
|
||||||
|
set APP_BASE_NAME=%~n0
|
||||||
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
|
@rem Find java.exe
|
||||||
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
|
set JAVA_EXE=java.exe
|
||||||
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
|
echo. 1>&2
|
||||||
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
|
echo. 1>&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:findJavaFromJavaHome
|
||||||
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
|
echo. 1>&2
|
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
|
echo. 1>&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:execute
|
||||||
|
@rem Setup the command line
|
||||||
|
|
||||||
|
set CLASSPATH=
|
||||||
|
|
||||||
|
|
||||||
|
@rem Execute Gradle
|
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
|
|
||||||
|
:end
|
||||||
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
||||||
181
lwjgl3/build.gradle
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath "io.github.fourlastor:construo:1.7.1"
|
||||||
|
if(enableGraalNative == 'true') {
|
||||||
|
classpath "org.graalvm.buildtools.native:org.graalvm.buildtools.native.gradle.plugin:0.9.28"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
plugins {
|
||||||
|
id "application"
|
||||||
|
}
|
||||||
|
apply plugin: 'io.github.fourlastor.construo'
|
||||||
|
|
||||||
|
|
||||||
|
import io.github.fourlastor.construo.Target
|
||||||
|
|
||||||
|
sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ]
|
||||||
|
mainClassName = 'com.ghost.technic.lwjgl3.Lwjgl3Launcher'
|
||||||
|
application.setMainClass(mainClassName)
|
||||||
|
eclipse.project.name = appName + '-lwjgl3'
|
||||||
|
java.sourceCompatibility = 21
|
||||||
|
java.targetCompatibility = 21
|
||||||
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
|
compileJava.options.release.set(21)
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
|
implementation project(':core')
|
||||||
|
|
||||||
|
if(enableGraalNative == 'true') {
|
||||||
|
implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def os = System.properties['os.name'].toLowerCase()
|
||||||
|
|
||||||
|
run {
|
||||||
|
workingDir = rootProject.file('assets').path
|
||||||
|
// You can uncomment the next line if your IDE claims a build failure even when the app closed properly.
|
||||||
|
//setIgnoreExitValue(true)
|
||||||
|
|
||||||
|
if (os.contains('mac')) jvmArgs += "-XstartOnFirstThread"
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
// sets the name of the .jar file this produces to the name of the game or app, with the version after.
|
||||||
|
archiveFileName.set("${appName}-${projectVersion}.jar")
|
||||||
|
// the duplicatesStrategy matters starting in Gradle 7.0; this setting works.
|
||||||
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||||
|
dependsOn configurations.runtimeClasspath
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
// these "exclude" lines remove some unnecessary duplicate files in the output JAR.
|
||||||
|
exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
|
||||||
|
dependencies {
|
||||||
|
exclude('META-INF/INDEX.LIST', 'META-INF/maven/**')
|
||||||
|
}
|
||||||
|
// setting the manifest makes the JAR runnable.
|
||||||
|
manifest {
|
||||||
|
attributes 'Main-Class': project.mainClassName
|
||||||
|
}
|
||||||
|
// this last step may help on some OSes that need extra instruction to make runnable JARs.
|
||||||
|
doLast {
|
||||||
|
file(archiveFile).setExecutable(true, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Builds a JAR that only includes the files needed to run on macOS, not Windows or Linux.
|
||||||
|
// The file size for a Mac-only JAR is about 7MB smaller than a cross-platform JAR.
|
||||||
|
tasks.register("jarMac") {
|
||||||
|
dependsOn("jar")
|
||||||
|
group("build")
|
||||||
|
jar.archiveFileName.set("${appName}-${projectVersion}-mac.jar")
|
||||||
|
jar.exclude("windows/x86/**", "windows/x64/**", "linux/arm32/**", "linux/arm64/**", "linux/x64/**", "**/*.dll", "**/*.so",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
|
||||||
|
dependencies {
|
||||||
|
jar.exclude("windows/x86/**", "windows/x64/**", "linux/arm32/**", "linux/arm64/**", "linux/x64/**",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/maven/**')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Builds a JAR that only includes the files needed to run on Linux, not Windows or macOS.
|
||||||
|
// The file size for a Linux-only JAR is about 5MB smaller than a cross-platform JAR.
|
||||||
|
tasks.register("jarLinux") {
|
||||||
|
dependsOn("jar")
|
||||||
|
group("build")
|
||||||
|
jar.archiveFileName.set("${appName}-${projectVersion}-linux.jar")
|
||||||
|
jar.exclude("windows/x86/**", "windows/x64/**", "macos/arm64/**", "macos/x64/**", "**/*.dll", "**/*.dylib",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
|
||||||
|
dependencies {
|
||||||
|
jar.exclude("windows/x86/**", "windows/x64/**", "macos/arm64/**", "macos/x64/**",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/maven/**')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Builds a JAR that only includes the files needed to run on Windows, not Linux or macOS.
|
||||||
|
// The file size for a Windows-only JAR is about 6MB smaller than a cross-platform JAR.
|
||||||
|
tasks.register("jarWin") {
|
||||||
|
dependsOn("jar")
|
||||||
|
group("build")
|
||||||
|
jar.archiveFileName.set("${appName}-${projectVersion}-win.jar")
|
||||||
|
jar.exclude("macos/arm64/**", "macos/x64/**", "linux/arm32/**", "linux/arm64/**", "linux/x64/**", "**/*.dylib", "**/*.so",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
|
||||||
|
dependencies {
|
||||||
|
jar.exclude("macos/arm64/**", "macos/x64/**", "linux/arm32/**", "linux/arm64/**", "linux/x64/**",
|
||||||
|
'META-INF/INDEX.LIST', 'META-INF/maven/**')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
construo {
|
||||||
|
// name of the executable
|
||||||
|
name.set(appName)
|
||||||
|
// human-readable name, used for example in the `.app` name for macOS
|
||||||
|
humanName.set(appName)
|
||||||
|
// Optional, defaults to project version property
|
||||||
|
version.set("$projectVersion")
|
||||||
|
|
||||||
|
targets.configure {
|
||||||
|
register("linuxX64", Target.Linux) {
|
||||||
|
architecture.set(Target.Architecture.X86_64)
|
||||||
|
jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_x64_linux_hotspot_17.0.15_6.tar.gz")
|
||||||
|
// Linux does not currently have a way to set the icon on the executable
|
||||||
|
}
|
||||||
|
register("macM1", Target.MacOs) {
|
||||||
|
architecture.set(Target.Architecture.AARCH64)
|
||||||
|
jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.15_6.tar.gz")
|
||||||
|
// macOS needs an identifier
|
||||||
|
identifier.set("com.ghost.technic." + appName)
|
||||||
|
// Optional: icon for macOS, as an ICNS file
|
||||||
|
macIcon.set(project.file("icons/logo.icns"))
|
||||||
|
}
|
||||||
|
register("macX64", Target.MacOs) {
|
||||||
|
architecture.set(Target.Architecture.X86_64)
|
||||||
|
jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_x64_mac_hotspot_17.0.15_6.tar.gz")
|
||||||
|
// macOS needs an identifier
|
||||||
|
identifier.set("com.ghost.technic." + appName)
|
||||||
|
// Optional: icon for macOS, as an ICNS file
|
||||||
|
macIcon.set(project.file("icons/logo.icns"))
|
||||||
|
}
|
||||||
|
register("winX64", Target.Windows) {
|
||||||
|
architecture.set(Target.Architecture.X86_64)
|
||||||
|
// Optional: icon for Windows, as a PNG
|
||||||
|
icon.set(project.file("icons/logo.png"))
|
||||||
|
jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_x64_windows_hotspot_17.0.15_6.zip")
|
||||||
|
// Uncomment the next line to show a console when the game runs, to print messages.
|
||||||
|
//useConsole.set(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equivalent to the jar task; here for compatibility with gdx-setup.
|
||||||
|
tasks.register('dist') {
|
||||||
|
dependsOn 'jar'
|
||||||
|
}
|
||||||
|
|
||||||
|
distributions {
|
||||||
|
main {
|
||||||
|
contents {
|
||||||
|
into('libs') {
|
||||||
|
project.configurations.runtimeClasspath.files.findAll { file ->
|
||||||
|
file.getName() != project.tasks.jar.outputs.files.singleFile.name
|
||||||
|
}.each { file ->
|
||||||
|
exclude file.name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
startScripts.dependsOn(':lwjgl3:jar')
|
||||||
|
startScripts.classpath = project.tasks.jar.outputs.files
|
||||||
|
|
||||||
|
if(enableGraalNative == 'true') {
|
||||||
|
apply from: file("nativeimage.gradle")
|
||||||
|
}
|
||||||
BIN
lwjgl3/icons/logo.icns
Normal file
BIN
lwjgl3/icons/logo.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
lwjgl3/icons/logo.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
54
lwjgl3/nativeimage.gradle
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
|
||||||
|
project(":lwjgl3") {
|
||||||
|
apply plugin: "org.graalvm.buildtools.native"
|
||||||
|
|
||||||
|
graalvmNative {
|
||||||
|
binaries {
|
||||||
|
main {
|
||||||
|
imageName = appName
|
||||||
|
mainClass = project.mainClassName
|
||||||
|
requiredVersion = '23.0'
|
||||||
|
buildArgs.add("-march=compatibility")
|
||||||
|
jvmArgs.addAll("-Dfile.encoding=UTF8")
|
||||||
|
sharedLibrary = false
|
||||||
|
resources.autodetect()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
run {
|
||||||
|
doNotTrackState("Running the app should not be affected by Graal.")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modified from https://lyze.dev/2021/04/29/libGDX-Internal-Assets-List/ ; thanks again, Lyze!
|
||||||
|
// This creates a resource-config.json file based on the contents of the assets folder (and the libGDX icons).
|
||||||
|
// This file is used by Graal Native to embed those specific files.
|
||||||
|
// This has to run before nativeCompile, so it runs at the start of an unrelated resource-handling command.
|
||||||
|
generateResourcesConfigFile.doFirst {
|
||||||
|
def assetsFolder = new File("${project.rootDir}/assets/")
|
||||||
|
def lwjgl3 = project(':lwjgl3')
|
||||||
|
def resFolder = new File("${lwjgl3.projectDir}/src/main/resources/META-INF/native-image/${lwjgl3.ext.appName}")
|
||||||
|
resFolder.mkdirs()
|
||||||
|
def resFile = new File(resFolder, "resource-config.json")
|
||||||
|
resFile.delete()
|
||||||
|
resFile.append(
|
||||||
|
"""{
|
||||||
|
"resources":{
|
||||||
|
"includes":[
|
||||||
|
{
|
||||||
|
"pattern": ".*(""")
|
||||||
|
// This adds every filename in the assets/ folder to a pattern that adds those files as resources.
|
||||||
|
fileTree(assetsFolder).each {
|
||||||
|
// The backslash-Q and backslash-E escape the start and end of a literal string, respectively.
|
||||||
|
resFile.append("\\\\Q${it.name}\\\\E|")
|
||||||
|
}
|
||||||
|
// We also match all of the window icon images this way and the font files that are part of libGDX.
|
||||||
|
resFile.append(
|
||||||
|
"""libgdx.+\\\\.png|lsans.+)"
|
||||||
|
}
|
||||||
|
]},
|
||||||
|
"bundles":[]
|
||||||
|
}"""
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package com.ghost.technic.lwjgl3;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
||||||
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
||||||
|
import com.ghost.technic.TechnicClient;
|
||||||
|
|
||||||
|
/** Launches the desktop (LWJGL3) application. */
|
||||||
|
public class Lwjgl3Launcher {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
if (StartupHelper.startNewJvmIfRequired()) return; // This handles macOS support and helps on Windows.
|
||||||
|
createApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Lwjgl3Application createApplication() {
|
||||||
|
return new Lwjgl3Application(new TechnicClient(), getDefaultConfiguration());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Lwjgl3ApplicationConfiguration getDefaultConfiguration() {
|
||||||
|
Lwjgl3ApplicationConfiguration configuration = new Lwjgl3ApplicationConfiguration();
|
||||||
|
configuration.setTitle("Technic-GDX");
|
||||||
|
//// Vsync limits the frames per second to what your hardware can display, and helps eliminate
|
||||||
|
//// screen tearing. This setting doesn't always work on Linux, so the line after is a safeguard.
|
||||||
|
configuration.useVsync(true);
|
||||||
|
//// Limits FPS to the refresh rate of the currently active monitor, plus 1 to try to match fractional
|
||||||
|
//// refresh rates. The Vsync setting above should limit the actual FPS to match the monitor.
|
||||||
|
configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate + 1);
|
||||||
|
//// If you remove the above line and set Vsync to false, you can get unlimited FPS, which can be
|
||||||
|
//// useful for testing performance, but can also be very stressful to some hardware.
|
||||||
|
//// You may also need to configure GPU drivers to fully disable Vsync; this can cause screen tearing.
|
||||||
|
|
||||||
|
configuration.setWindowedMode(640, 480);
|
||||||
|
//// You can change these files; they are in lwjgl3/src/main/resources/ .
|
||||||
|
//// They can also be loaded from the root of assets/ .
|
||||||
|
configuration.setWindowIcon("libgdx128.png", "libgdx64.png", "libgdx32.png", "libgdx16.png");
|
||||||
|
return configuration;
|
||||||
|
}
|
||||||
|
}
|
||||||
204
lwjgl3/src/main/java/com/ghost/technic/lwjgl3/StartupHelper.java
Normal file
@@ -0,0 +1,204 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2020 damios
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at:
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
//Note, the above license and copyright applies to this file only.
|
||||||
|
|
||||||
|
package com.ghost.technic.lwjgl3;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.Version;
|
||||||
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3NativesLoader;
|
||||||
|
import org.lwjgl.system.macosx.LibC;
|
||||||
|
import org.lwjgl.system.macosx.ObjCRuntime;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.lang.management.ManagementFactory;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import static org.lwjgl.system.JNI.invokePPP;
|
||||||
|
import static org.lwjgl.system.JNI.invokePPZ;
|
||||||
|
import static org.lwjgl.system.macosx.ObjCRuntime.objc_getClass;
|
||||||
|
import static org.lwjgl.system.macosx.ObjCRuntime.sel_getUid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds some utilities to ensure that the JVM was started with the
|
||||||
|
* {@code -XstartOnFirstThread} argument, which is required on macOS for LWJGL 3
|
||||||
|
* to function. Also helps on Windows when users have names with characters from
|
||||||
|
* outside the Latin alphabet, a common cause of startup crashes.
|
||||||
|
* <br>
|
||||||
|
* <a href="https://jvm-gaming.org/t/starting-jvm-on-mac-with-xstartonfirstthread-programmatically/57547">Based on this java-gaming.org post by kappa</a>
|
||||||
|
* @author damios
|
||||||
|
*/
|
||||||
|
public class StartupHelper {
|
||||||
|
|
||||||
|
private static final String JVM_RESTARTED_ARG = "jvmIsRestarted";
|
||||||
|
|
||||||
|
private StartupHelper() {
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts a new JVM if the application was started on macOS without the
|
||||||
|
* {@code -XstartOnFirstThread} argument. This also includes some code for
|
||||||
|
* Windows, for the case where the user's home directory includes certain
|
||||||
|
* non-Latin-alphabet characters (without this code, most LWJGL3 apps fail
|
||||||
|
* immediately for those users). Returns whether a new JVM was started and
|
||||||
|
* thus no code should be executed.
|
||||||
|
* <p>
|
||||||
|
* <u>Usage:</u>
|
||||||
|
*
|
||||||
|
* <pre><code>
|
||||||
|
* public static void main(String... args) {
|
||||||
|
* if (StartupHelper.startNewJvmIfRequired(true)) return; // This handles macOS support and helps on Windows.
|
||||||
|
* // after this is the actual main method code
|
||||||
|
* }
|
||||||
|
* </code></pre>
|
||||||
|
*
|
||||||
|
* @param redirectOutput
|
||||||
|
* whether the output of the new JVM should be rerouted to the
|
||||||
|
* old JVM, so it can be accessed in the same place; keeps the
|
||||||
|
* old JVM running if enabled
|
||||||
|
* @return whether a new JVM was started and thus no code should be executed
|
||||||
|
* in this one
|
||||||
|
*/
|
||||||
|
public static boolean startNewJvmIfRequired(boolean redirectOutput) {
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
if (!osName.contains("mac")) {
|
||||||
|
if (osName.contains("windows")) {
|
||||||
|
// Here, we are trying to work around an issue with how LWJGL3 loads its extracted .dll files.
|
||||||
|
// By default, LWJGL3 extracts to the directory specified by "java.io.tmpdir", which is usually the user's home.
|
||||||
|
// If the user's name has non-ASCII (or some non-alphanumeric) characters in it, that would fail.
|
||||||
|
// By extracting to the relevant "ProgramData" folder, which is usually "C:\ProgramData", we avoid this.
|
||||||
|
// We also temporarily change the "user.name" property to one without any chars that would be invalid.
|
||||||
|
// We revert our changes immediately after loading LWJGL3 natives.
|
||||||
|
String programData = System.getenv("ProgramData");
|
||||||
|
if(programData == null) programData = "C:\\Temp\\"; // if ProgramData isn't set, try some fallback.
|
||||||
|
String prevTmpDir = System.getProperty("java.io.tmpdir", programData);
|
||||||
|
String prevUser = System.getProperty("user.name", "libGDX_User");
|
||||||
|
System.setProperty("java.io.tmpdir", programData + "/libGDX-temp");
|
||||||
|
System.setProperty("user.name", ("User_" + prevUser.hashCode() + "_GDX" + Version.VERSION).replace('.', '_'));
|
||||||
|
Lwjgl3NativesLoader.load();
|
||||||
|
System.setProperty("java.io.tmpdir", prevTmpDir);
|
||||||
|
System.setProperty("user.name", prevUser);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// There is no need for -XstartOnFirstThread on Graal native image
|
||||||
|
if (!System.getProperty("org.graalvm.nativeimage.imagecode", "").isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Checks if we are already on the main thread, such as from running via Construo.
|
||||||
|
long objc_msgSend = ObjCRuntime.getLibrary().getFunctionAddress("objc_msgSend");
|
||||||
|
long NSThread = objc_getClass("NSThread");
|
||||||
|
long currentThread = invokePPP(NSThread, sel_getUid("currentThread"), objc_msgSend);
|
||||||
|
boolean isMainThread = invokePPZ(currentThread, sel_getUid("isMainThread"), objc_msgSend);
|
||||||
|
if(isMainThread) return false;
|
||||||
|
|
||||||
|
long pid = LibC.getpid();
|
||||||
|
|
||||||
|
// check whether -XstartOnFirstThread is enabled
|
||||||
|
if ("1".equals(System.getenv("JAVA_STARTED_ON_FIRST_THREAD_" + pid))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check whether the JVM was previously restarted
|
||||||
|
// avoids looping, but most certainly leads to a crash
|
||||||
|
if ("true".equals(System.getProperty(JVM_RESTARTED_ARG))) {
|
||||||
|
System.err.println(
|
||||||
|
"There was a problem evaluating whether the JVM was started with the -XstartOnFirstThread argument.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Restart the JVM with -XstartOnFirstThread
|
||||||
|
ArrayList<String> jvmArgs = new ArrayList<>();
|
||||||
|
String separator = System.getProperty("file.separator", "/");
|
||||||
|
// The following line is used assuming you target Java 8, the minimum for LWJGL3.
|
||||||
|
String javaExecPath = System.getProperty("java.home") + separator + "bin" + separator + "java";
|
||||||
|
// If targeting Java 9 or higher, you could use the following instead of the above line:
|
||||||
|
//String javaExecPath = ProcessHandle.current().info().command().orElseThrow();
|
||||||
|
|
||||||
|
if (!(new File(javaExecPath)).exists()) {
|
||||||
|
System.err.println(
|
||||||
|
"A Java installation could not be found. If you are distributing this app with a bundled JRE, be sure to set the -XstartOnFirstThread argument manually!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
jvmArgs.add(javaExecPath);
|
||||||
|
jvmArgs.add("-XstartOnFirstThread");
|
||||||
|
jvmArgs.add("-D" + JVM_RESTARTED_ARG + "=true");
|
||||||
|
jvmArgs.addAll(ManagementFactory.getRuntimeMXBean().getInputArguments());
|
||||||
|
jvmArgs.add("-cp");
|
||||||
|
jvmArgs.add(System.getProperty("java.class.path"));
|
||||||
|
String mainClass = System.getenv("JAVA_MAIN_CLASS_" + pid);
|
||||||
|
if (mainClass == null) {
|
||||||
|
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
|
||||||
|
if (trace.length > 0) {
|
||||||
|
mainClass = trace[trace.length - 1].getClassName();
|
||||||
|
} else {
|
||||||
|
System.err.println("The main class could not be determined.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jvmArgs.add(mainClass);
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (!redirectOutput) {
|
||||||
|
ProcessBuilder processBuilder = new ProcessBuilder(jvmArgs);
|
||||||
|
processBuilder.start();
|
||||||
|
} else {
|
||||||
|
Process process = (new ProcessBuilder(jvmArgs))
|
||||||
|
.redirectErrorStream(true).start();
|
||||||
|
BufferedReader processOutput = new BufferedReader(
|
||||||
|
new InputStreamReader(process.getInputStream()));
|
||||||
|
String line;
|
||||||
|
|
||||||
|
while ((line = processOutput.readLine()) != null) {
|
||||||
|
System.out.println(line);
|
||||||
|
}
|
||||||
|
|
||||||
|
process.waitFor();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.err.println("There was a problem restarting the JVM");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts a new JVM if the application was started on macOS without the
|
||||||
|
* {@code -XstartOnFirstThread} argument. Returns whether a new JVM was
|
||||||
|
* started and thus no code should be executed. Redirects the output of the
|
||||||
|
* new JVM to the old one.
|
||||||
|
* <p>
|
||||||
|
* <u>Usage:</u>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* public static void main(String... args) {
|
||||||
|
* if (StartupHelper.startNewJvmIfRequired()) return; // This handles macOS support and helps on Windows.
|
||||||
|
* // the actual main method code
|
||||||
|
* }
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @return whether a new JVM was started and thus no code should be executed
|
||||||
|
* in this one
|
||||||
|
*/
|
||||||
|
public static boolean startNewJvmIfRequired() {
|
||||||
|
return startNewJvmIfRequired(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
lwjgl3/src/main/resources/libgdx128.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
lwjgl3/src/main/resources/libgdx16.png
Normal file
|
After Width: | Height: | Size: 806 B |
BIN
lwjgl3/src/main/resources/libgdx32.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
lwjgl3/src/main/resources/libgdx64.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
63
server/build.gradle
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
apply plugin: 'application'
|
||||||
|
|
||||||
|
|
||||||
|
java.sourceCompatibility = 21
|
||||||
|
java.targetCompatibility = 21
|
||||||
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
|
compileJava.options.release.set(21)
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClassName = 'com.ghost.technic.server.ServerLauncher'
|
||||||
|
application.setMainClass(mainClassName)
|
||||||
|
eclipse.project.name = appName + '-server'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'org.projectlombok:lombok:1.18.38'
|
||||||
|
annotationProcessor 'org.projectlombok:lombok:1.18.38'
|
||||||
|
|
||||||
|
testImplementation 'org.projectlombok:lombok:1.18.38'
|
||||||
|
testAnnotationProcessor 'org.projectlombok:lombok:1.18.38'
|
||||||
|
|
||||||
|
implementation 'ch.qos.logback:logback-classic:1.5.18'
|
||||||
|
annotationProcessor 'ch.qos.logback:logback-classic:1.5.18'
|
||||||
|
|
||||||
|
testImplementation 'ch.qos.logback:logback-classic:1.5.18'
|
||||||
|
testAnnotationProcessor 'ch.qos.logback:logback-classic:1.5.18'
|
||||||
|
|
||||||
|
testImplementation 'org.slf4j:slf4j-api:2.0.17'
|
||||||
|
// testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.13.1'
|
||||||
|
// testImplementation 'org.junit.jupiter:junit-jupiter-api:5.13.1'
|
||||||
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.13.1'
|
||||||
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.13.1'
|
||||||
|
testImplementation 'org.junit.platform:junit-platform-launcher:1.13.1'
|
||||||
|
testImplementation 'org.junit.platform:junit-platform-engine:1.13.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
archiveBaseName.set(appName)
|
||||||
|
// the duplicatesStrategy matters starting in Gradle 7.0; this setting works.
|
||||||
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||||
|
dependsOn configurations.runtimeClasspath
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
// these "exclude" lines remove some unnecessary duplicate files in the output JAR.
|
||||||
|
exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
|
||||||
|
dependencies {
|
||||||
|
exclude('META-INF/INDEX.LIST', 'META-INF/maven/**')
|
||||||
|
}
|
||||||
|
// setting the manifest makes the JAR runnable.
|
||||||
|
manifest {
|
||||||
|
attributes 'Main-Class': project.mainClassName
|
||||||
|
}
|
||||||
|
// this last step may help on some OSes that need extra instruction to make runnable JARs.
|
||||||
|
doLast {
|
||||||
|
file(archiveFile).setExecutable(true, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equivalent to the jar task; here for compatibility with gdx-setup.
|
||||||
|
task dist(dependsOn: [jar]) {
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
163
server/src/main/java/com/ghost/technic/server/Player.java
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
package com.ghost.technic.server;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.board.PlayArea;
|
||||||
|
import com.ghost.technic.server.card.impl.ArchonIdentityCard;
|
||||||
|
import com.ghost.technic.server.card.keyword.BeforeFightEffect;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.event.EventBus;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Slf4j
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Player {
|
||||||
|
private String name;
|
||||||
|
private int amber;
|
||||||
|
private int keysForged;
|
||||||
|
@Builder.Default
|
||||||
|
private PlayArea playArea = new PlayArea();
|
||||||
|
@Builder.Default
|
||||||
|
private LinkedList<PlayableCard> deck = new LinkedList<>();
|
||||||
|
@Builder.Default
|
||||||
|
private LinkedList<PlayableCard> discardPile = new LinkedList<>();
|
||||||
|
@Builder.Default
|
||||||
|
private List<PlayableCard> hand = new ArrayList<>();
|
||||||
|
@Builder.Default
|
||||||
|
private List<PlayableCard> archives = new ArrayList<>();
|
||||||
|
private ArchonIdentityCard archonIdentityCard;
|
||||||
|
private House activeHouse;
|
||||||
|
|
||||||
|
public Player(Player player) {
|
||||||
|
this.name = player.getName();
|
||||||
|
this.amber = player.getAmber();
|
||||||
|
this.keysForged = player.getKeysForged();
|
||||||
|
this.playArea = player.getPlayArea();
|
||||||
|
this.deck = player.getDeck();
|
||||||
|
this.discardPile = player.getDiscardPile();
|
||||||
|
this.hand = player.getHand();
|
||||||
|
this.archives = player.getArchives();
|
||||||
|
this.archonIdentityCard = player.getArchonIdentityCard();
|
||||||
|
this.activeHouse = player.getActiveHouse();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<House> getAvailableHouses() {
|
||||||
|
var results = new HashSet<House>();
|
||||||
|
results.addAll(archonIdentityCard.getHouses());
|
||||||
|
results.addAll(playArea.getAllUsableCardsHouse());
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void drawCards(int count) {
|
||||||
|
for (int i = 0; i < count && !deck.isEmpty(); i++) {
|
||||||
|
hand.add(deck.remove(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void drawCardsToSix() {
|
||||||
|
// while (hand.size() < 6) {
|
||||||
|
while (hand.size() < 6 && !deck.isEmpty()) {
|
||||||
|
drawCards(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void forgeKey(int keyCost) {
|
||||||
|
if (amber >= keyCost) {
|
||||||
|
amber -= keyCost;
|
||||||
|
keysForged++;
|
||||||
|
log.info("{} forges a key at cost {}! Keys forged: {}", name, keyCost, keysForged);
|
||||||
|
} else {
|
||||||
|
log.info("{} cannot afford a key (needs {}, has {})", name, keyCost, amber);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public House chooseHouse(Set<House> house) {
|
||||||
|
// Placeholder for UI, use override for testing
|
||||||
|
log.info("{} chooses house: {}", name, activeHouse);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void pickUpArchives() {
|
||||||
|
if (!archives.isEmpty()) {
|
||||||
|
hand.addAll(archives);
|
||||||
|
archives.clear();
|
||||||
|
log.info("{} picked up archives.", name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void readyCards() {
|
||||||
|
for (CreatureCard creatureCard : playArea.getBattleline().getCreatures()) {
|
||||||
|
creatureCard.setReady(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public PlayableCard takeTopCardOfDeck() {
|
||||||
|
if (!deck.isEmpty()) {
|
||||||
|
var topCard = deck.getFirst();
|
||||||
|
deck.remove(topCard);
|
||||||
|
return topCard;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void fightWithCreature(CreatureCard creature, CreatureCard target) {
|
||||||
|
if (!creature.isReady()) return;
|
||||||
|
creature.beforeFight();
|
||||||
|
target.beforeFight();
|
||||||
|
|
||||||
|
log.info(name + "'s " + creature.getName() + " fights " + target.getName());
|
||||||
|
|
||||||
|
// target.takeDamage(creature.);
|
||||||
|
// creature.takeDamage(target.getPower());
|
||||||
|
|
||||||
|
creature.afterFight();
|
||||||
|
target.afterFight();
|
||||||
|
|
||||||
|
creature.setReady(false);
|
||||||
|
removeDestroyedCreatures();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void reapWithCreature(CreatureCard creature, EventBus eventBus) {
|
||||||
|
if (!creature.isReady()) {
|
||||||
|
log.info("Creature is exhausted, cannot reap");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
creature.beforeReap();
|
||||||
|
// Perform the actual reap logic (creature gains 1 amber, exhausts, etc.)
|
||||||
|
creature.reap(this, eventBus);
|
||||||
|
amber++;
|
||||||
|
log.info("{} reaps with {} and gains 1 amber.", name, creature.getName());
|
||||||
|
creature.afterReap();
|
||||||
|
creature.setReady(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<BeforeFightEffect> chooseBeforeFightOrder(List<BeforeFightEffect> effects) {
|
||||||
|
// 🔧 TEMP: Default to resolving in order as-is (assault first, then hazardous)
|
||||||
|
// Later: prompt human or AI to choose order
|
||||||
|
return effects;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CreatureCard chooseCreature(List<CreatureCard> options, String reason) {
|
||||||
|
// Placeholder for UI, use override for testing
|
||||||
|
log.info("[chooseCreature] {} selects creature for: {}", getName(), reason);
|
||||||
|
return options.stream().findFirst().orElse(null); // pick first for now
|
||||||
|
}
|
||||||
|
|
||||||
|
public void removeDestroyedCreatures() {
|
||||||
|
playArea.getBattleline().getCreatures().removeIf(card -> {
|
||||||
|
if (card instanceof CreatureCard creature && creature.isDestroyed()) {
|
||||||
|
log.info("{}'s {} is removed from battleline.", name, creature.getName());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.ghost.technic.server;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import com.ghost.technic.server.game.event.EventBus;
|
||||||
|
|
||||||
|
/** Launches the server application. */
|
||||||
|
public class ServerLauncher {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
EventBus eventBus = new EventBus();
|
||||||
|
GameState gameState = new GameState(eventBus);
|
||||||
|
gameState.setup();
|
||||||
|
gameState.run();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
package com.ghost.technic.server.board;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Battleline {
|
||||||
|
private LinkedList<CreatureCard> creatures = new LinkedList<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a creature to the specified flank (LEFT or RIGHT).
|
||||||
|
*/
|
||||||
|
public void addToFlank(CreatureCard creature, Flank preferredFlank) {
|
||||||
|
if (creatures.isEmpty()) {
|
||||||
|
creatures.add(creature);
|
||||||
|
} else {
|
||||||
|
switch (preferredFlank) {
|
||||||
|
case LEFT -> creatures.addFirst(creature);
|
||||||
|
case RIGHT -> creatures.addLast(creature);
|
||||||
|
default -> throw new IllegalArgumentException("Unknown flank: " + preferredFlank);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the immediate neighbors of the given creature in the battleline.
|
||||||
|
*/
|
||||||
|
public List<CreatureCard> getNeighbors(CreatureCard creature) {
|
||||||
|
int index = creatures.indexOf(creature);
|
||||||
|
List<CreatureCard> neighbors = new ArrayList<>();
|
||||||
|
|
||||||
|
if (index > 0) {
|
||||||
|
neighbors.add(creatures.get(index - 1));
|
||||||
|
}
|
||||||
|
if (index >= 0 && index < creatures.size() - 1) {
|
||||||
|
neighbors.add(creatures.get(index + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
return neighbors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether the creature is at the left or right flank.
|
||||||
|
* First creature is considered both left and right flank.
|
||||||
|
*/
|
||||||
|
public Set<Flank> getEffectiveFlanks(CreatureCard creature) {
|
||||||
|
Set<Flank> flanks = new HashSet<>();
|
||||||
|
int index = creatures.indexOf(creature);
|
||||||
|
|
||||||
|
if (index == 0) {
|
||||||
|
flanks.add(Flank.LEFT);
|
||||||
|
}
|
||||||
|
if (index == creatures.size() - 1) {
|
||||||
|
flanks.add(Flank.RIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If it’s the only creature, it’s left, right and center
|
||||||
|
if (creatures.size() == 1 && index == 0) {
|
||||||
|
flanks.add(Flank.LEFT);
|
||||||
|
flanks.add(Flank.CENTER);
|
||||||
|
flanks.add(Flank.RIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
|
return flanks;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package com.ghost.technic.server.board;
|
||||||
|
|
||||||
|
public enum Flank {
|
||||||
|
LEFT,
|
||||||
|
CENTER,
|
||||||
|
RIGHT
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.ghost.technic.server.board;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.ArtifactCard;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class PlayArea {
|
||||||
|
private Battleline battleline = new Battleline();
|
||||||
|
private List<ArtifactCard> artifactCards = new ArrayList<>();
|
||||||
|
|
||||||
|
public Set<House> getAllUsableCardsHouse() {
|
||||||
|
var results = new HashSet<House>();
|
||||||
|
var creatures = getBattleline().getCreatures().stream().map(PlayableCard::getHouse).collect(Collectors.toSet());
|
||||||
|
var artifact = artifactCards.stream().map(PlayableCard::getHouse).collect(Collectors.toSet());
|
||||||
|
results.addAll(creatures);
|
||||||
|
results.addAll(artifact);
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
}
|
||||||
26
server/src/main/java/com/ghost/technic/server/card/Card.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ghost.technic.server.card;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.misc.CardType;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@ToString(onlyExplicitlyIncluded = true)
|
||||||
|
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
|
||||||
|
public abstract class Card {
|
||||||
|
|
||||||
|
@ToString.Include
|
||||||
|
@EqualsAndHashCode.Include
|
||||||
|
private final UUID id = UUID.randomUUID();
|
||||||
|
|
||||||
|
@ToString.Include
|
||||||
|
@EqualsAndHashCode.Include
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private CardType cardType;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
|
||||||
|
public interface ActivatedAbility {
|
||||||
|
void activate(GameState gameState, Player controller, PlayableCard source);
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public interface CardAbility {
|
||||||
|
void register(GameActionService gameActionService, Player controller, PlayableCard source);
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
|
||||||
|
public interface ConstantAbility {
|
||||||
|
|
||||||
|
void apply();
|
||||||
|
void remove();
|
||||||
|
|
||||||
|
default boolean canReap(CreatureCard creature, Player actingPlayer, GameState gameState) {
|
||||||
|
return true; // by default, allow reaping
|
||||||
|
}
|
||||||
|
|
||||||
|
default boolean canFight(CreatureCard creature, Player actingPlayer, GameState gameState) {
|
||||||
|
return true; // by default, allow reaping
|
||||||
|
}
|
||||||
|
|
||||||
|
default int keyCostModifier(Player forPlayer, GameState gameState) {
|
||||||
|
return 0; // By default, no change
|
||||||
|
}
|
||||||
|
|
||||||
|
default int armorBonus(CreatureCard target, GameState state) {
|
||||||
|
return 0; // By default, no change
|
||||||
|
}
|
||||||
|
|
||||||
|
default boolean blanksTextBox(PlayableCard card) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
|
||||||
|
public interface ConstraintEffect {
|
||||||
|
boolean canReap(CreatureCard creature, Player controller, GameState gameState);
|
||||||
|
boolean canFight(CreatureCard creature, Player controller, GameState gameState);
|
||||||
|
boolean canUse(CreatureCard creature, Player controller, GameState gameState);
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
public interface StartOfOpponentTurnAbility extends StartOfTurnAbility {}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public interface StartOfTurnAbility extends CardAbility {
|
||||||
|
void onStartOfTurn(GameActionService gameActionService, Player activePlayer, PlayableCard source);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.ghost.technic.server.card.effect;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public abstract class StaticEffectData {
|
||||||
|
private final CreatureCard joya;
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.event.AmberChangeType;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class AllusionsOfGrandeurAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService service, Player controller, PlayableCard source) {
|
||||||
|
Player opponent = service.getGameState().getOpponentOf(controller);
|
||||||
|
House chosen = controller.chooseHouse(opponent.getArchonIdentityCard().getHouses());
|
||||||
|
|
||||||
|
service.getGameState().getEventBus().subscribe(EventType.HOUSE_CHOSEN, event -> {
|
||||||
|
Player player = event.get("player");
|
||||||
|
House house = event.get("house");
|
||||||
|
|
||||||
|
if (player.equals(opponent) && house != chosen) {
|
||||||
|
service.adjustAmber(controller, 3, AmberChangeType.GAINED, source);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
|
||||||
|
public class BarristerJoyaAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof CreatureCard joya)) return;
|
||||||
|
|
||||||
|
BarristerJoyaConstantAbility effect = new BarristerJoyaConstantAbility(joya);
|
||||||
|
effect.apply();
|
||||||
|
gameActionService.getGameState().registerStaticEffect(joya, effect);
|
||||||
|
|
||||||
|
gameActionService.getGameState().getEventBus().subscribe(EventType.CREATURE_DESTROYED, event -> {
|
||||||
|
CreatureCard destroyed = event.get("creature");
|
||||||
|
if (destroyed.equals(joya)) {
|
||||||
|
effect.remove();
|
||||||
|
gameActionService.getGameState().unregisterStaticEffect(joya);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.effect.ConstantAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class BarristerJoyaConstantAbility implements ConstantAbility {
|
||||||
|
|
||||||
|
private final CreatureCard joya;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply() {
|
||||||
|
log.info("[apply] Barrister Joya’s effect active: enemy creatures cannot reap");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
log.info("[remove] Barrister Joya’s effect removed");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canReap(CreatureCard creature, Player actingPlayer, GameState gameState) {
|
||||||
|
Player joyaOwner = gameState.getOwnerOf(joya);
|
||||||
|
Player creatureOwner = gameState.getOwnerOf(creature);
|
||||||
|
|
||||||
|
if (creatureOwner == null) {
|
||||||
|
log.warn("[canReap] No owner found for creature: {}", creature.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
return creatureOwner == null || creatureOwner.equals(joyaOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return joya.getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class BlindingLightAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
House chosen = controller.chooseHouse(House.getAllHouses());
|
||||||
|
log.info("{} chooses {} for Blinding Light", controller.getName(), chosen);
|
||||||
|
|
||||||
|
List<CreatureCard> targets = gameActionService.getGameState().getAllCreatures().stream()
|
||||||
|
.filter(c -> c.getHouse() == chosen)
|
||||||
|
.toList();
|
||||||
|
|
||||||
|
for (CreatureCard creature : targets) {
|
||||||
|
creature.getCounters().addStun(); // assumes a stun counter is supported
|
||||||
|
log.info("{} is stunned by Blinding Light", creature.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class BulwarkAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof CreatureCard bulwark)) return;
|
||||||
|
|
||||||
|
BulwarkConstantAbility effect = new BulwarkConstantAbility(
|
||||||
|
bulwark,
|
||||||
|
controller.getPlayArea().getBattleline()
|
||||||
|
);
|
||||||
|
|
||||||
|
gameActionService.getGameState().registerStaticEffect(bulwark, effect);
|
||||||
|
|
||||||
|
log.info("Registered Bulwark ability for {}", bulwark.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.board.Battleline;
|
||||||
|
import com.ghost.technic.server.card.effect.ConstantAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class BulwarkConstantAbility implements ConstantAbility {
|
||||||
|
|
||||||
|
private final CreatureCard bulwark;
|
||||||
|
private final Battleline battleline;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply() {
|
||||||
|
log.info("[apply] Bulwark’s effect active: +2 armor to neighbours");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
log.info("[remove] Bulwark’s effect active: +2 armor to neighbours");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int armorBonus(CreatureCard target, GameState state) {
|
||||||
|
if (!battleline.getCreatures().contains(bulwark)) return 0;
|
||||||
|
List<CreatureCard> neighbors = battleline.getNeighbors(bulwark);
|
||||||
|
return neighbors.contains(target) ? 2 : 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.board.Flank;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import com.ghost.technic.server.game.event.AmberChangeType;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
import com.ghost.technic.server.game.event.UsageType;
|
||||||
|
import com.ghost.technic.server.game.event.UsedEventData;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class DexusTriggeredAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof CreatureCard dexus)) return;
|
||||||
|
|
||||||
|
GameState gameState = gameActionService.getGameState();
|
||||||
|
|
||||||
|
// gameState.getEventBus().subscribe(EventType.CREATURE_ENTERED_PLAY, event -> {
|
||||||
|
gameState.getEventBus().subscribe(EventType.USED, event -> {
|
||||||
|
UsedEventData usedData = event.get("usedEventData");
|
||||||
|
PlayableCard playedCard = usedData.getCard();
|
||||||
|
var usedType = usedData.getUsageType();
|
||||||
|
|
||||||
|
if (usedType.equals(UsageType.PLAY)) {
|
||||||
|
Player playedBy = event.get("player");
|
||||||
|
Set<Flank> flanks = event.get("flanks");
|
||||||
|
|
||||||
|
if (playedBy.equals(gameState.getOwnerOf(dexus))) return;
|
||||||
|
|
||||||
|
if (flanks.contains(Flank.RIGHT)) {
|
||||||
|
gameActionService.adjustAmber(playedBy, -1, AmberChangeType.LOST, dexus);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.StartOfTurnAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class DirectorZYXAbility implements StartOfTurnAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStartOfTurn(GameActionService gameActionService, Player activePlayer, PlayableCard source) {
|
||||||
|
gameActionService.archiveCard(activePlayer.takeTopCardOfDeck(), activePlayer);
|
||||||
|
log.info("Director of Z.Y.X. archives top card of {}", activePlayer.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
// no-op: triggered through GameTurnManager
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class MurmookAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService game, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof CreatureCard murmook)) return;
|
||||||
|
|
||||||
|
MurmookEffect effect = new MurmookEffect(controller);
|
||||||
|
effect.apply();
|
||||||
|
game.getGameState().registerStaticEffect(murmook, effect);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.ConstantAbility;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class MurmookEffect implements ConstantAbility {
|
||||||
|
|
||||||
|
private final Player controller;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply() {
|
||||||
|
log.info("Murmook effect active: opponent's keys cost +1");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
log.info("Murmook effect removed.");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int keyCostModifier(Player forPlayer, GameState state) {
|
||||||
|
Player opponent = state.getOpponentOf(controller);
|
||||||
|
return forPlayer.equals(opponent) ? 1 : 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
import com.ghost.technic.server.game.event.UsageType;
|
||||||
|
import com.ghost.technic.server.game.event.UsedEventData;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class MusthicMurmookAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService game, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof CreatureCard musthicMurmook)) return;
|
||||||
|
|
||||||
|
// Key cost static effect
|
||||||
|
MusthicMurmookEffect effect = new MusthicMurmookEffect();
|
||||||
|
effect.apply();
|
||||||
|
game.getGameState().registerStaticEffect(musthicMurmook, effect);
|
||||||
|
|
||||||
|
game.getGameState().getEventBus().subscribe(EventType.USED, event -> {
|
||||||
|
UsedEventData usedData = event.get("usedEventData");
|
||||||
|
PlayableCard playedCard = usedData.getCard();
|
||||||
|
var usedType = usedData.getUsageType();
|
||||||
|
|
||||||
|
if (playedCard.equals(musthicMurmook) && usedType.equals(UsageType.PLAY)) {
|
||||||
|
List<CreatureCard> choices = game.getGameState().getAllCreaturesInPlay();
|
||||||
|
CreatureCard target = controller.chooseCreature(choices, "Musthic Murmook: Deal 4 damage");
|
||||||
|
|
||||||
|
if (target != null) {
|
||||||
|
game.dealDamage(target, 4);
|
||||||
|
log.info("Musthic Murmook deals 4 damage to {}", target.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.ConstantAbility;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class MusthicMurmookEffect implements ConstantAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply() {
|
||||||
|
log.info("Musthic Murmook effect active: everyone’s keys cost +1");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
log.info("Musthic Murmook effect removed.");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int keyCostModifier(Player forPlayer, GameState state) {
|
||||||
|
return 1; // Affects both players
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class PersistenceHuntingAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
House chosen = controller.chooseHouse(House.getAllHouses());
|
||||||
|
log.info("{} chooses {} for Persistence Hunting", controller.getName(), chosen);
|
||||||
|
|
||||||
|
Player opponent = gameActionService.getGameState().getOpponentOf(controller);
|
||||||
|
List<CreatureCard> targets = opponent.getPlayArea().getBattleline().getCreatures().stream()
|
||||||
|
.filter(creature -> creature.getHouse() == chosen)
|
||||||
|
.toList();
|
||||||
|
|
||||||
|
for (CreatureCard target : targets) {
|
||||||
|
target.setReady(false); // Exhaust
|
||||||
|
log.info("{} is exhausted by Persistence Hunting", target.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.keyword.BeforeFightAbility;
|
||||||
|
import com.ghost.technic.server.card.keyword.BeforeFightEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class RainceFuryheartAbility implements CardAbility, BeforeFightAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService game, Player controller, PlayableCard source) {
|
||||||
|
// Maybe static effects or triggers — not needed here
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<BeforeFightEffect> getBeforeFightEffect(CreatureCard self, CreatureCard opponent, GameActionService service) {
|
||||||
|
return Optional.of(new BeforeFightEffect(
|
||||||
|
"Exalt the creature " + self.getName() + " fights",
|
||||||
|
() -> {
|
||||||
|
log.info("{} Exalting {}",self.getName(), opponent.getName());
|
||||||
|
opponent.getCounters().addAmber(1); // or however you represent exalt
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.event.EventType;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class ScreeyanAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService service, Player controller, PlayableCard source) {
|
||||||
|
service.getEventBus().subscribe(EventType.TURN_ENDS, event -> {
|
||||||
|
Player current = event.get("player");
|
||||||
|
Player opponent = service.getGameState().getOpponentOf(current);
|
||||||
|
|
||||||
|
PlayableCard discardedCard = service.discordTopCardOfDeck(opponent);
|
||||||
|
if (discardedCard != null) {
|
||||||
|
House discardedHouse = discardedCard.getHouse();
|
||||||
|
log.info("[Screeyan] {} discarded. {} may not choose {} next turn.",
|
||||||
|
discardedCard.getName(), opponent.getName(), discardedHouse);
|
||||||
|
|
||||||
|
service.getGameState().restrictHouseNextTurn(opponent, discardedHouse);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.StartOfOpponentTurnAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class SibylWaimareAbility implements StartOfOpponentTurnAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStartOfTurn(GameActionService gameActionService, Player activePlayer, PlayableCard source) {
|
||||||
|
Player opponent = gameActionService.getGameState().getOwnerOf(source);
|
||||||
|
var discardedCard = gameActionService.discordTopCardOfDeck(activePlayer);
|
||||||
|
|
||||||
|
if (discardedCard instanceof PlayableCard playCard) {
|
||||||
|
House house = playCard.getHouse();
|
||||||
|
List<CreatureCard> creatures = activePlayer.getPlayArea().getBattleline().getCreatures();
|
||||||
|
for (CreatureCard c : creatures) {
|
||||||
|
if (c.getHouse() == house) {
|
||||||
|
c.setReady(false); // exhaust
|
||||||
|
log.info("Sibyl Waimare exhausts {}", c.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService gameActionService, Player controller, PlayableCard source) {
|
||||||
|
// no-op
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.impl.UpgradeCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class WayOfTheBearAbility implements CardAbility {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void register(GameActionService game, Player controller, PlayableCard source) {
|
||||||
|
if (!(source instanceof UpgradeCard upgrade)) return;
|
||||||
|
|
||||||
|
CreatureCard target = findAttachedCreature(game.getGameState(), upgrade);
|
||||||
|
if (target == null) return;
|
||||||
|
|
||||||
|
var effect = new WayOfTheBearEffect(target);
|
||||||
|
effect.apply();
|
||||||
|
|
||||||
|
game.getGameState().registerStaticEffect(upgrade, effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
private CreatureCard findAttachedCreature(GameState gameState, UpgradeCard upgrade) {
|
||||||
|
for (Player player : List.of(gameState.getPlayerOne(), gameState.getPlayerTwo())) {
|
||||||
|
for (CreatureCard creature : player.getPlayArea().getBattleline().getCreatures()) {
|
||||||
|
if (creature.getUpgrades().contains(upgrade)) return creature;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ghost.technic.server.card.effect.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.effect.ConstantAbility;
|
||||||
|
import com.ghost.technic.server.card.keyword.Keyword;
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class WayOfTheBearEffect implements ConstantAbility {
|
||||||
|
|
||||||
|
private final CreatureCard target;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply() {
|
||||||
|
target.getKeywords().add(new Keyword(KeywordAbility.ASSAULT, 2));
|
||||||
|
log.info("[Way of the Bear] {} gains Assault 2", target.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove() {
|
||||||
|
target.getKeywords().removeIf(k -> k.getKeywordAbility() == KeywordAbility.ASSAULT && k.getValue() == 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.ghost.technic.server.card.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.Card;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@SuperBuilder
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class ArchonIdentityCard extends Card {
|
||||||
|
private Set<House> houses;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface BeforeFightAbility {
|
||||||
|
Optional<BeforeFightEffect> getBeforeFightEffect(CreatureCard self, CreatureCard opponent, GameActionService service);
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
public record BeforeFightEffect(String description, Runnable action) {}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Keyword {
|
||||||
|
|
||||||
|
private KeywordAbility keywordAbility;
|
||||||
|
private int value;
|
||||||
|
|
||||||
|
public Keyword(KeywordAbility keywordAbility) {
|
||||||
|
this.keywordAbility = keywordAbility;
|
||||||
|
this.value = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasValue() {
|
||||||
|
return keywordAbility.hasValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return hasValue() ? keywordAbility.name() + " (" + value + ")" : keywordAbility.name();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
public enum KeywordAbility {
|
||||||
|
ALPHA,
|
||||||
|
ASSAULT, // has value
|
||||||
|
DEPLOY,
|
||||||
|
ELUSIVE,
|
||||||
|
HAZARDOUS, // has value
|
||||||
|
INVULNERABLE,
|
||||||
|
OMEGA,
|
||||||
|
POISON,
|
||||||
|
SKIRMISH,
|
||||||
|
SPLASH_ATTACK, // has value
|
||||||
|
TAUNT,
|
||||||
|
TREACHERY,
|
||||||
|
VERSATILE;
|
||||||
|
|
||||||
|
public boolean hasValue() {
|
||||||
|
return switch (this) {
|
||||||
|
case ASSAULT, HAZARDOUS, SPLASH_ATTACK -> true;
|
||||||
|
default -> false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public interface KeywordEffect {
|
||||||
|
default void onFight(GameActionService service, CreatureCard attacker, CreatureCard defender) {}
|
||||||
|
default void onReap(GameActionService service, CreatureCard creature) {}
|
||||||
|
default void onPlay(GameActionService service, PlayableCard card, Player controller) {}
|
||||||
|
default void onDestroyed(GameActionService service, CreatureCard creature) {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.impl.*;
|
||||||
|
|
||||||
|
import java.util.EnumMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public class KeywordEffectRegistry {
|
||||||
|
private final Map<KeywordAbility, KeywordEffect> registry = new EnumMap<>(KeywordAbility.class);
|
||||||
|
|
||||||
|
public KeywordEffectRegistry() {
|
||||||
|
registry.put(KeywordAbility.SKIRMISH, new SkirmishEffect());
|
||||||
|
registry.put(KeywordAbility.ELUSIVE, new ElusiveEffect());
|
||||||
|
registry.put(KeywordAbility.POISON, new PoisonEffect());
|
||||||
|
registry.put(KeywordAbility.ALPHA, new AlphaEffect());
|
||||||
|
// registry.put(KeywordAbility.DESTROYED, new DestroyedEffect());
|
||||||
|
// registry.put(KeywordAbility.SCRAP, new ScrapEffect());
|
||||||
|
// registry.put(KeywordAbility.OMNI, new OmniEffect());
|
||||||
|
registry.put(KeywordAbility.DEPLOY, new DeployEffect());
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<KeywordEffect> getEffect(KeywordAbility keywordAbility) {
|
||||||
|
return Optional.ofNullable(registry.get(keywordAbility));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class AlphaEffect implements KeywordEffect {
|
||||||
|
// @Override
|
||||||
|
// public void onPlay(GameActionService service, PlayableCard card, Player controller) {
|
||||||
|
// if (!service.isFirstCardPlayedThisTurn(card)) {
|
||||||
|
// throw new IllegalStateException("Alpha cards must be the first card played on your turn.");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
@Override
|
||||||
|
public void onPlay(GameActionService service, PlayableCard card, Player controller) {
|
||||||
|
if (!service.isFirstCardPlayedThisTurn(card)) {
|
||||||
|
service.flagRuleViolation(card, "Alpha cards must be the first card played on your turn.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
|
||||||
|
public class DeployEffect implements KeywordEffect {
|
||||||
|
// Deploy allows placement anywhere on the battleline (not just flanks)
|
||||||
|
// Usually checked during placement, not as a triggered effect
|
||||||
|
// GameActionService should consult card.hasKeyword(DEPLOY) when positioning
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class DestroyedEffect implements KeywordEffect {
|
||||||
|
@Override
|
||||||
|
public void onDestroyed(GameActionService service, CreatureCard creature) {
|
||||||
|
// Trigger destroyed abilities
|
||||||
|
service.resolveDestroyedAbilities(creature);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class ElusiveEffect implements KeywordEffect {
|
||||||
|
@Override
|
||||||
|
public void onFight(GameActionService service, CreatureCard attacker, CreatureCard defender) {
|
||||||
|
// First time attacked, Elusive prevents all damage to defender
|
||||||
|
if (service.isFirstAttackAgainst(defender)) {
|
||||||
|
service.preventDamageTo(defender);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
|
||||||
|
public class OmniEffect implements KeywordEffect {
|
||||||
|
// Omni is more of a tag that allows abilities to be used regardless of house
|
||||||
|
// Effects using this should check card.hasKeyword(OMNI) before checking house
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class PoisonEffect implements KeywordEffect {
|
||||||
|
@Override
|
||||||
|
public void onFight(GameActionService service, CreatureCard attacker, CreatureCard defender) {
|
||||||
|
// Any damage dealt by this creature destroys the other
|
||||||
|
service.markAsPoisonous(attacker);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class ScrapEffect implements KeywordEffect {
|
||||||
|
@Override
|
||||||
|
public void onPlay(GameActionService service, PlayableCard card, Player controller) {
|
||||||
|
if (!service.isPlayedFromDiscard(card)) {
|
||||||
|
throw new IllegalStateException("Scrap effects only trigger when played from discard.");
|
||||||
|
}
|
||||||
|
service.resolveScrapEffect(card);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.ghost.technic.server.card.keyword.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordEffect;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.impl.CreatureCard;
|
||||||
|
import com.ghost.technic.server.game.GameActionService;
|
||||||
|
|
||||||
|
public class SkirmishEffect implements KeywordEffect {
|
||||||
|
@Override
|
||||||
|
public void onFight(GameActionService service, CreatureCard attacker, CreatureCard defender) {
|
||||||
|
// Skirmish: This creature takes no damage when it is used to fight
|
||||||
|
service.ignoreRetaliatoryDamage(attacker);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.LinkedList;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class BonusIcons {
|
||||||
|
private LinkedList<IBonusIcon> bonusIcons;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
public enum CardType {
|
||||||
|
ARCHON_IDENTITY,
|
||||||
|
CREATURE,
|
||||||
|
ARTIFACT,
|
||||||
|
ACTION,
|
||||||
|
UPGRADE,
|
||||||
|
TIDE,
|
||||||
|
PROPHECY,
|
||||||
|
ARCHON_POWER
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public enum House {
|
||||||
|
BROBNAR,
|
||||||
|
DIS,
|
||||||
|
EKWIDON,
|
||||||
|
GEISTOID,
|
||||||
|
LOGOS,
|
||||||
|
MARS,
|
||||||
|
REDEMPTION,
|
||||||
|
SANCTUM,
|
||||||
|
SAURIAN,
|
||||||
|
SHADOWS,
|
||||||
|
SKYBORN,
|
||||||
|
STAR_ALLIANCE,
|
||||||
|
UNFATHOMABLE,
|
||||||
|
UNTAMED;
|
||||||
|
|
||||||
|
public static Set<House> getAllHouses() {
|
||||||
|
return Set.of(values());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@ToString
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class HouseBonusIcon implements IBonusIcon {
|
||||||
|
private final House house;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
public interface IBonusIcon {
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ghost.technic.server.card.misc;
|
||||||
|
|
||||||
|
public enum StandardBonusIcon implements IBonusIcon {
|
||||||
|
ÆMBER,
|
||||||
|
CAPTURE,
|
||||||
|
DAMAGE,
|
||||||
|
DRAW,
|
||||||
|
DISCARD
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
package com.ghost.technic.server.card.playable;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.card.Card;
|
||||||
|
import com.ghost.technic.server.card.effect.CardAbility;
|
||||||
|
import com.ghost.technic.server.card.misc.BonusIcons;
|
||||||
|
import com.ghost.technic.server.card.misc.House;
|
||||||
|
import com.ghost.technic.server.game.event.*;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Slf4j
|
||||||
|
@SuperBuilder
|
||||||
|
@ToString(callSuper = true, onlyExplicitlyIncluded = true)
|
||||||
|
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
|
||||||
|
public abstract class PlayableCard extends Card {
|
||||||
|
@ToString.Include
|
||||||
|
private House house;
|
||||||
|
private BonusIcons bonusIcons;
|
||||||
|
@Builder.Default
|
||||||
|
private List<CardAbility> abilities = new ArrayList<>();
|
||||||
|
|
||||||
|
public void play(Player player, EventBus eventBus) {
|
||||||
|
publishUsedEvent(player, UsageType.PLAY, eventBus);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void publishUsedEvent(Player player, UsageType usageType, EventBus eventBus) {
|
||||||
|
UsedEventData usedData = new UsedEventData(this, usageType);
|
||||||
|
Map<String, Object> payload = Map.of("usedEventData", usedData);
|
||||||
|
GameEvent usedEvent = new GameEvent(EventType.USED, payload);
|
||||||
|
eventBus.publish(usedEvent);
|
||||||
|
log.info("{} {} {}", player.getName(), usageType, getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addAbility(CardAbility ability) {
|
||||||
|
abilities.add(ability);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.ghost.technic.server.card.playable.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class ActionCard extends PlayableCard {
|
||||||
|
// No additional fields for now
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.ghost.technic.server.card.playable.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
|
||||||
|
public class UpgradeCard extends PlayableCard {
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package com.ghost.technic.server.card.playable.usable;
|
||||||
|
|
||||||
|
public interface Usable {
|
||||||
|
boolean isReady();
|
||||||
|
void setReady(boolean ready);
|
||||||
|
|
||||||
|
default void exhaust() {
|
||||||
|
setReady(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
default void ready() {
|
||||||
|
setReady(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cards are played exhausted by default
|
||||||
|
default void enterPlay() {
|
||||||
|
exhaust(); // enters play exhausted
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package com.ghost.technic.server.card.playable.usable.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.Usable;
|
||||||
|
import com.ghost.technic.server.counter.Counters;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Slf4j
|
||||||
|
@SuperBuilder
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class ArtifactCard extends PlayableCard implements Usable {
|
||||||
|
private boolean ready;
|
||||||
|
@Builder.Default
|
||||||
|
private Counters counters = new Counters();
|
||||||
|
private List<String> traits;
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
package com.ghost.technic.server.card.playable.usable.impl;
|
||||||
|
|
||||||
|
import com.ghost.technic.server.Player;
|
||||||
|
import com.ghost.technic.server.board.Flank;
|
||||||
|
import com.ghost.technic.server.card.keyword.Keyword;
|
||||||
|
import com.ghost.technic.server.card.keyword.KeywordAbility;
|
||||||
|
import com.ghost.technic.server.card.playable.PlayableCard;
|
||||||
|
import com.ghost.technic.server.card.playable.impl.UpgradeCard;
|
||||||
|
import com.ghost.technic.server.card.playable.usable.Usable;
|
||||||
|
import com.ghost.technic.server.counter.Counters;
|
||||||
|
import com.ghost.technic.server.game.GameState;
|
||||||
|
import com.ghost.technic.server.game.event.*;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Slf4j
|
||||||
|
@SuperBuilder
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
|
||||||
|
public class CreatureCard extends PlayableCard implements Usable {
|
||||||
|
private int power;
|
||||||
|
private int armor;
|
||||||
|
private boolean ready;
|
||||||
|
private List<String> traits;
|
||||||
|
@Builder.Default
|
||||||
|
private Counters counters = new Counters();
|
||||||
|
@Builder.Default
|
||||||
|
private Set<Keyword> keywords = new HashSet<>();
|
||||||
|
@Builder.Default
|
||||||
|
private List<UpgradeCard> upgrades = new ArrayList<>();
|
||||||
|
|
||||||
|
public void play(Player player, Set<Flank> flanks, EventBus eventBus) {
|
||||||
|
publishUsedEvent(player, UsageType.PLAY, flanks, eventBus);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void publishUsedEvent(Player player, UsageType usageType, Set<Flank> flanks, EventBus eventBus) {
|
||||||
|
UsedEventData usedData = new UsedEventData(this, usageType);
|
||||||
|
Map<String, Object> payload = Map.of(
|
||||||
|
"usedEventData", usedData,
|
||||||
|
"flanks", flanks,
|
||||||
|
"player", player);
|
||||||
|
GameEvent usedEvent = new GameEvent(EventType.USED, payload);
|
||||||
|
eventBus.publish(usedEvent);
|
||||||
|
log.info("{} {} {}", player.getName(), usageType, getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDamage() {
|
||||||
|
return counters.getDmg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void takeDamage(int amount) {
|
||||||
|
counters.addDmg(amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDestroyed() {
|
||||||
|
return counters.getDmg() >= power;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void beforeFight() {
|
||||||
|
log.info("{} triggers before fight effects.", getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void afterFight() {
|
||||||
|
log.info("{} triggers after fight effects.", getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void beforeReap() {
|
||||||
|
log.info("{} triggers before reap effects.", getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void fight(Player player, EventBus eventBus) {
|
||||||
|
publishUsedEvent(player, UsageType.FIGHT, eventBus);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void reap(Player player, EventBus eventBus) {
|
||||||
|
publishUsedEvent(player, UsageType.REAP, eventBus);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void afterReap() {
|
||||||
|
log.info("{} triggers after reap effects.", getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasKeyword(KeywordAbility keywordAbility) {
|
||||||
|
return keywords.stream().anyMatch(k -> k.getKeywordAbility() == keywordAbility);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<Keyword> getKeyword(KeywordAbility keywordAbility) {
|
||||||
|
return keywords.stream().filter(k -> k.getKeywordAbility() == keywordAbility).findFirst();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEffectiveArmor(GameState state) {
|
||||||
|
return armor + state.getArmorBuffs(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getKeywordValue(KeywordAbility ability) {
|
||||||
|
return keywords.stream()
|
||||||
|
.filter(k -> k.getKeywordAbility() == ability)
|
||||||
|
.map(Keyword::getValue)
|
||||||
|
.findFirst()
|
||||||
|
.orElse(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.ghost.technic.server.counter;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Counter {
|
||||||
|
private CounterType counterType;
|
||||||
|
private int numberOfCounter;
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.ghost.technic.server.counter;
|
||||||
|
|
||||||
|
public enum CounterType {
|
||||||
|
ÆMBER,
|
||||||
|
DAMAGE,
|
||||||
|
WARD,
|
||||||
|
ENRAGE,
|
||||||
|
POWER,
|
||||||
|
STUN,
|
||||||
|
DOOM,
|
||||||
|
TIME,
|
||||||
|
FUSE,
|
||||||
|
YEA,
|
||||||
|
NAY,
|
||||||
|
GLORY,
|
||||||
|
AWAKENING,
|
||||||
|
HATCH,
|
||||||
|
DEPTH,
|
||||||
|
GROWTH,
|
||||||
|
SCHEME,
|
||||||
|
WISDOM,
|
||||||
|
KNOWLEDGE,
|
||||||
|
WARRANT,
|
||||||
|
PAINT,
|
||||||
|
MINERALIZE,
|
||||||
|
TRADE
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
package com.ghost.technic.server.counter;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class Counters {
|
||||||
|
|
||||||
|
private Set<Counter> counters = new HashSet<>();
|
||||||
|
|
||||||
|
public int getDmg() {
|
||||||
|
return counters.stream()
|
||||||
|
.filter(counter -> counter.getCounterType().equals(CounterType.DAMAGE))
|
||||||
|
.findFirst()
|
||||||
|
.map(Counter::getNumberOfCounter)
|
||||||
|
.orElse(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addDmg(int dmg) {
|
||||||
|
var dmgToken = getToken(CounterType.DAMAGE);
|
||||||
|
if (dmgToken != null) {
|
||||||
|
var newDmg = dmgToken.getNumberOfCounter() + dmg;
|
||||||
|
dmgToken.setNumberOfCounter(newDmg);
|
||||||
|
counters.add(dmgToken);
|
||||||
|
} else {
|
||||||
|
var dmgTokens = Counter.builder()
|
||||||
|
.counterType(CounterType.DAMAGE)
|
||||||
|
.numberOfCounter(dmg)
|
||||||
|
.build();
|
||||||
|
counters.add(dmgTokens);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAmber() {
|
||||||
|
return counters.stream()
|
||||||
|
.filter(counter -> counter.getCounterType().equals(CounterType.ÆMBER))
|
||||||
|
.findFirst()
|
||||||
|
.map(Counter::getNumberOfCounter)
|
||||||
|
.orElse(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addAmber(int amber) {
|
||||||
|
var ambers = getToken(CounterType.ÆMBER);
|
||||||
|
if (ambers != null) {
|
||||||
|
var newAmbers = ambers.getNumberOfCounter() + amber;
|
||||||
|
ambers.setNumberOfCounter(newAmbers);
|
||||||
|
counters.add(ambers);
|
||||||
|
} else {
|
||||||
|
var amberTokens = Counter.builder()
|
||||||
|
.counterType(CounterType.ÆMBER)
|
||||||
|
.numberOfCounter(amber)
|
||||||
|
.build();
|
||||||
|
counters.add(amberTokens);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addStun() {
|
||||||
|
var stun = getToken(CounterType.STUN);
|
||||||
|
if (stun == null) {
|
||||||
|
counters.add(Counter.builder().counterType(CounterType.STUN).build());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Counter getToken(CounterType counterType) {
|
||||||
|
return counters.stream()
|
||||||
|
.filter(counter -> counter.getCounterType().equals(counterType))
|
||||||
|
.findFirst()
|
||||||
|
.orElse(null);
|
||||||
|
}
|
||||||
|
}
|
||||||