fix: fucking broken shit
This commit is contained in:
parent
49a8b39f9e
commit
a2d445ef62
|
@ -60,12 +60,12 @@ public class Arrow extends EntityQuad {
|
||||||
arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/player_death.wav"));
|
arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/player_death.wav"));
|
||||||
|
|
||||||
texture = new ArrayList<>();
|
texture = new ArrayList<>();
|
||||||
String path = "core/assets/arrow" + MathUtils.random(2);
|
String path = "arrow" + MathUtils.random(2);
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
Pixmap pm = new Pixmap(new FileHandle(path + "-" + i + ".png"));
|
Pixmap pm = new Pixmap(Gdx.files.internal(path + "-" + i + ".png"));
|
||||||
pm.setBlending(Pixmap.Blending.None);
|
pm.setBlending(Pixmap.Blending.None);
|
||||||
for (int x = 0; x < pm.getWidth(); x++) {
|
for (int x = 0; x < pm.getWidth(); x++) {
|
||||||
for (int y = 0; y < pm.getHeight(); y++) {
|
for (int y = 0; y < pm.getHeight(); y++) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package sagittarius.model;
|
package sagittarius.model;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.files.FileHandle;
|
import com.badlogic.gdx.files.FileHandle;
|
||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import com.badlogic.gdx.graphics.Pixmap;
|
import com.badlogic.gdx.graphics.Pixmap;
|
||||||
|
@ -20,7 +21,7 @@ public class Planet extends EntityCircle {
|
||||||
public Planet(Vector2 position, float mass, float radius, Color color) {
|
public Planet(Vector2 position, float mass, float radius, Color color) {
|
||||||
super(0, mass, color, position, radius);
|
super(0, mass, color, position, radius);
|
||||||
|
|
||||||
Pixmap pm = new Pixmap(new FileHandle("core/assets/planet" + MathUtils.random(4) + ".png"));
|
Pixmap pm = new Pixmap(Gdx.files.internal("planet" + MathUtils.random(4) + ".png"));
|
||||||
|
|
||||||
pm.setBlending(Pixmap.Blending.None);
|
pm.setBlending(Pixmap.Blending.None);
|
||||||
for (int x = 0; x < pm.getWidth(); x++) {
|
for (int x = 0; x < pm.getWidth(); x++) {
|
||||||
|
@ -40,7 +41,7 @@ public class Planet extends EntityCircle {
|
||||||
}
|
}
|
||||||
texture = new Texture(pm);
|
texture = new Texture(pm);
|
||||||
|
|
||||||
pm = new Pixmap(new FileHandle("core/assets/planet0.png"));
|
pm = new Pixmap(Gdx.files.internal("planet0.png"));
|
||||||
pm.setBlending(Pixmap.Blending.None);
|
pm.setBlending(Pixmap.Blending.None);
|
||||||
for (int x = 0; x < pm.getWidth(); x++) {
|
for (int x = 0; x < pm.getWidth(); x++) {
|
||||||
for (int y = 0; y < pm.getHeight(); y++) {
|
for (int y = 0; y < pm.getHeight(); y++) {
|
||||||
|
|
|
@ -33,12 +33,12 @@ public class Player extends EntityQuad {
|
||||||
this.home = home;
|
this.home = home;
|
||||||
|
|
||||||
texture = new ArrayList<>();
|
texture = new ArrayList<>();
|
||||||
String path = "core/assets/player0";
|
String path = "player0";
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
Pixmap pm = new Pixmap(new FileHandle(path + "-" + i + ".png"));
|
Pixmap pm = new Pixmap(Gdx.files.internal(path + "-" + i + ".png"));
|
||||||
pm.setBlending(Pixmap.Blending.None);
|
pm.setBlending(Pixmap.Blending.None);
|
||||||
for (int x = 0; x < pm.getWidth(); x++) {
|
for (int x = 0; x < pm.getWidth(); x++) {
|
||||||
for (int y = 0; y < pm.getHeight(); y++) {
|
for (int y = 0; y < pm.getHeight(); y++) {
|
||||||
|
|
Loading…
Reference in a new issue