skysphere
This commit is contained in:
parent
5be3c9c2d5
commit
dc0b6efa43
BIN
assets/Models/skyboxSphere.fbx
Normal file
BIN
assets/Models/skyboxSphere.fbx
Normal file
Binary file not shown.
BIN
assets/Textures/Thumbs.db
Normal file
BIN
assets/Textures/Thumbs.db
Normal file
Binary file not shown.
@ -245,6 +245,12 @@
|
||||
"/Textures/cloudRing.png",
|
||||
"/Textures/cloudRing.png"
|
||||
]
|
||||
},
|
||||
"Models/skyboxSphere.fbx" : {
|
||||
"Sphere" : [
|
||||
"/Textures/starrySky.png",
|
||||
"/Textures/starrySky.png"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/Textures/starrySky.png
Normal file
BIN
assets/Textures/starrySky.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
@ -5,6 +5,9 @@ public class Control {
|
||||
boolean isMouse;
|
||||
boolean state;
|
||||
int keyValue;
|
||||
ControlMethod onPress;
|
||||
ControlMethod onRelease;
|
||||
ControlMethod onRepeat;
|
||||
|
||||
public boolean isIsKey() {
|
||||
return isKey;
|
||||
@ -32,6 +35,22 @@ public class Control {
|
||||
this.keyValue = keyValue;
|
||||
this.state = false;
|
||||
}
|
||||
|
||||
public void setOnPress(ControlMethod method){
|
||||
onPress = method;
|
||||
}
|
||||
|
||||
public void setOnRelease(ControlMethod method){
|
||||
onRelease = method;
|
||||
}
|
||||
|
||||
public void setOnRepeat(ControlMethod method){
|
||||
onRepeat = method;
|
||||
}
|
||||
|
||||
|
||||
public interface ControlMethod {
|
||||
public void execute();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -523,6 +523,11 @@ public class LoadingThread extends Thread {
|
||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
|
||||
|
||||
//starry sky true skybox
|
||||
Entity skybox = EntityUtils.spawnDrawableEntity("Models/skyboxSphere.fbx");
|
||||
EntityUtils.getRotation(skybox).rotateX((float)(-Math.PI/2.0f));
|
||||
EntityUtils.getScale(skybox).mul(2000.0f);
|
||||
|
||||
//cloud ring pseudo skybox
|
||||
Entity cloudRing = EntityUtils.spawnDrawableEntity("Models/cloudRing.fbx");
|
||||
EntityUtils.getRotation(cloudRing).rotateX((float)(-Math.PI/2.0f));
|
||||
@ -672,9 +677,9 @@ public class LoadingThread extends Thread {
|
||||
// OpportunisticAttacker.attachToCreature(goblin);
|
||||
|
||||
Entity shorts = ItemUtils.spawnBasicItem("boots1");
|
||||
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,1));
|
||||
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,2));
|
||||
Entity hair = ItemUtils.spawnBasicItem("hairshort1");
|
||||
EntityUtils.getPosition(hair).set(new Vector3f(1,1,1));
|
||||
EntityUtils.getPosition(hair).set(new Vector3f(2,1,1));
|
||||
|
||||
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
|
||||
// CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 4));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user