-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileLoader.java
More file actions
21 lines (17 loc) · 767 Bytes
/
FileLoader.java
File metadata and controls
21 lines (17 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.thrus.test;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
public class FileLoader {
public Texture shipTex,th,btup,btrig,btlef,starTex;
public String vert,frag;
public FileLoader(){
th = new Texture(Gdx.files.internal("thrust/f.png"));
btup = new Texture(Gdx.files.internal("bt/up.png"));
btlef = new Texture(Gdx.files.internal("bt/lef.png"));
btrig = new Texture(Gdx.files.internal("bt/rig.png"));
shipTex = new Texture(Gdx.files.internal("ship/rocket.png"));
starTex = new Texture(Gdx.files.internal("bg/star2.png"));
vert = Gdx.files.internal("shaders/vert.glsl").readString();
frag = Gdx.files.internal("shaders/frag.glsl").readString();
}
}