Skip to content

Commit fd3f95e

Browse files
committed
Rather monstrous test of the runtime packer.
1 parent 0a28f5f commit fd3f95e

File tree

5,360 files changed

+312
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,360 files changed

+312
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ target/
3030
*.so
3131

3232
**/gifexport/
33+
SquidSquad/DawnlikeDemo-beta2/assets/Dawnlike.png
34+
SquidSquad/DawnlikeDemo-beta2/assets/Dawnlike.atlas
35+
SquidSquad/DawnlikeDemo-beta2/assets/Dawnlike-license.txt
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
DawnLike is licensed under the Creative Commons Attribution 4.0 International License.
2+
To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or
3+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
4+
5+
DawnLike was made by DragonDePlatino and DawnBringer; see
6+
https://opengameart.org/comment/60159 for the original source.
7+
8+
To use DawnLike you must credit DawnBringer.
9+
10+
DawnLikeAtlas is licensed under the Creative Commons Attribution 4.0 International License.
11+
To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or
12+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
13+
14+
DawnLikeAtlas was made by Tommy Ettinger, using DawnLike; see
15+
https://github.com/tommyettinger/DawnLikeAtlas for more.
16+
17+
To use DawnLikeAtlas you must credit DawnBringer.

SquidSquad/DawnlikeDemo-beta2/assets/PlainAndSimplePlus.fnt

Lines changed: 219 additions & 0 deletions
Large diffs are not rendered by default.

SquidSquad/DawnlikeDemo-beta2/core/src/main/java/com/github/tommyettinger/DawnlikeDemo.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ public void create () {
146146
camera = mainViewport.getCamera();
147147
camera.update();
148148

149-
atlas = new TextureAtlas(Gdx.files.internal("dawnlike/Dawnlike.atlas"), Gdx.files.internal("dawnlike"));
150-
font = new BitmapFont(Gdx.files.internal("dawnlike/PlainAndSimplePlus.fnt"), atlas.findRegion("PlainAndSimplePlus"));
149+
atlas =
150+
Gdx.app.getType() != Application.ApplicationType.Desktop
151+
? new TextureAtlas(Gdx.files.internal("dawnlike/Dawnlike.atlas"), Gdx.files.internal("dawnlike"))
152+
: new TextureAtlas(Gdx.files.internal("Dawnlike.atlas"), Gdx.files.internal(""));
153+
font = new BitmapFont(Gdx.files.internal(Gdx.app.getType() != Application.ApplicationType.Desktop
154+
? "dawnlike/PlainAndSimplePlus.fnt" : "PlainAndSimplePlus.fnt"), atlas.findRegion("font"));
151155
font.setUseIntegerPositions(false);
152156
font.getData().setScale(1f/cellWidth, 1f/cellHeight);
153157
font.getData().markupEnabled = true;
@@ -480,6 +484,7 @@ public boolean mouseMoved(int screenX, int screenY) {
480484
*/
481485
private void move(int newX, int newY) {
482486
if (health <= 0) return;
487+
// resets the color of playerSprite to "no tint"
483488
playerSprite.setPackedColor(Color.WHITE_FLOAT_BITS);
484489
if (newX >= 0 && newY >= 0 && newX < bigWidth && newY < bigHeight
485490
&& bareDungeon[newX][newY] != '#') {
@@ -608,6 +613,7 @@ public void putMap()
608613
}
609614
}
610615
}
616+
// resets the batch tint color to "no tint"
611617
batch.setPackedColor(Color.WHITE_FLOAT_BITS);
612618
AnimatedGlidingSprite monster;
613619
for (int i = 0; i < bigWidth; i++) {

SquidSquad/DawnlikeDemo-beta2/gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ org.gradle.configureondemand=false
44
squidPathVersion=4.0.0-beta2
55
squidGridVersion=4.0.0-beta2
66
squidCoreVersion=4.0.0-beta2
7-
jdkgdxdsVersion=1.6.0
7+
jdkgdxdsVersion=1.6.5
88
funderbyVersion=0.1.2
9-
digitalVersion=0.4.8
10-
juniperVersion=0.6.1
11-
regExodusVersion=0.1.15
9+
digitalVersion=0.5.3
10+
juniperVersion=0.6.2
11+
regExodusVersion=0.1.16
1212
cruxVersion=0.0.1
1313
squidPlaceVersion=4.0.0-beta2
1414
squidSmoothVersion=4.0.0-beta2

SquidSquad/DawnlikeDemo-beta2/lwjgl3/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies {
2727
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
2828
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
2929
implementation project(':core')
30+
implementation "com.github.tommyettinger:libgdx-texturepacker:1.12.1.0"
3031
}
3132

3233
def jarName = "${appName}-${version}.jar"

SquidSquad/DawnlikeDemo-beta2/lwjgl3/src/main/java/com/github/tommyettinger/lwjgl3/Lwjgl3Launcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
44
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
55
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
6+
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
67
import com.github.tommyettinger.DawnlikeDemo;
78

89
import static com.github.tommyettinger.DawnlikeDemo.*;
9-
import static com.github.tommyettinger.DawnlikeDemo.cellHeight;
1010

1111
/** Launches the desktop (LWJGL3) application. */
1212
public class Lwjgl3Launcher {
@@ -16,6 +16,7 @@ public static void main(String[] args) {
1616
}
1717

1818
private static Lwjgl3Application createApplication() {
19+
TexturePacker.processIfModified("../raw_assets", "./", "Dawnlike.atlas");
1920
return new Lwjgl3Application(new DawnlikeDemo(), getDefaultConfiguration());
2021
}
2122

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
DawnLike is licensed under the Creative Commons Attribution 4.0 International License.
2+
To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or
3+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
4+
5+
DawnLike was made by DragonDePlatino and DawnBringer; see
6+
https://opengameart.org/comment/60159 for the original source.
7+
8+
To use DawnLike you must credit DawnBringer.
9+
10+
DawnLikeAtlas is licensed under the Creative Commons Attribution 4.0 International License.
11+
To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or
12+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
13+
14+
DawnLikeAtlas was made by Tommy Ettinger, using DawnLike; see
15+
https://github.com/tommyettinger/DawnLikeAtlas for more.
16+
17+
To use DawnLikeAtlas you must credit DawnBringer.
167 Bytes
162 Bytes

0 commit comments

Comments
 (0)