Added my own splash screen
This commit is contained in:
parent
ef2356b03f
commit
97beeb177e
|
@ -4,7 +4,7 @@ A game about avoiding climate catastrophe.
|
|||
|
||||
## Documentation
|
||||
|
||||
There is documentation [here](https://simon-brooke.github.io/climate-game/)
|
||||
There is documentation [here](https://simon-brooke.github.io/climate-game/).
|
||||
|
||||
## Warning
|
||||
|
||||
|
|
BIN
resources/heightmaps/earthbump1k.jpg
Normal file
BIN
resources/heightmaps/earthbump1k.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
BIN
resources/images/climategamesplash.png
Normal file
BIN
resources/images/climategamesplash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 413 KiB |
BIN
resources/images/climategamesplash.xcf
Normal file
BIN
resources/images/climategamesplash.xcf
Normal file
Binary file not shown.
BIN
resources/images/playful-smiling-monkey.png
Normal file
BIN
resources/images/playful-smiling-monkey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 285 KiB |
|
@ -10,9 +10,11 @@
|
|||
(defn -main
|
||||
"This should be pretty simple."
|
||||
[& args]
|
||||
(let [app (ClimateGameApp.)]
|
||||
(let [app (ClimateGameApp.)
|
||||
settings (app-settings true :title "The Climate Game")]
|
||||
(try
|
||||
(.setSettings app (app-settings true :title "The Climate Game"))
|
||||
(.setSettingsDialogImage settings "images/climategamesplash.png")
|
||||
(.setSettings app settings)
|
||||
(start app)
|
||||
(catch Exception any
|
||||
(println (.getMessage any))
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
package aaronperkins.planeteg;
|
||||
|
||||
import com.jme3.math.FastMath;
|
||||
import com.jme3.math.Vector3f;
|
||||
import com.jme3.scene.Mesh;
|
||||
import com.jme3.scene.VertexBuffer.Type;
|
||||
import com.jme3.terrain.heightmap.AbstractHeightMap;
|
||||
import com.jme3.terrain.heightmap.ImageBasedHeightMap;
|
||||
import com.jme3.texture.Texture;
|
||||
import com.jme3.util.BufferUtils;
|
||||
import com.jme3.math.FastMath;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
@ -168,6 +171,21 @@ public class PlanetMeshGen {
|
|||
public void generateHeightmap( ) {
|
||||
generateHeightmap( 750, 19580427, 30, 90, 25000, .8f, .3f );
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a heightmap from this heightmapImage. Added by simon@journeyman.cc, so that we can actually
|
||||
* get planet Earth.
|
||||
*
|
||||
* NOTE: This doesn't even nearly work yet.
|
||||
*
|
||||
* @param heightmapImage the path of the asset to use: expected to be a monochrome heightmap
|
||||
*/
|
||||
public AbstractHeightMap generateHeightmap( Texture heightmapImage) {
|
||||
AbstractHeightMap heightmap = new ImageBasedHeightMap(heightmapImage.getImage(), 1f);
|
||||
heightmap.load();
|
||||
|
||||
return heightmap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue