Very beginnings of functionality: it builds and runs but does nothing.
This commit is contained in:
parent
6f4a23423d
commit
ef2356b03f
49
README.md
49
README.md
|
@ -2,41 +2,9 @@
|
|||
|
||||
A game about avoiding climate catastrophe.
|
||||
|
||||
## Motivation and concept
|
||||
## Documentation
|
||||
|
||||
The primary concerns I have which are driving this project is we're failing to communicate, even to the young but certainly to the old, just how intractable and serious the climate emergency is; that we lack critical infrastructure for a survivable planet; and that, unless we get the management of strategic materials right, it will be impossible to build the infrastructure for a survivable planet without tipping the climate system over the edge into utter catastrophe.
|
||||
|
||||
To illustrate what I mean here: we presently have some capacity to smelt steel by electric arc. We currently have some renewable electricity generation plant. But the amount of steel we can actually make using only renewable energy is quite limited. If we use that limited 'green' steel to make new renewable electricity generation plant and new electric arc steelworks, then we can increase the amount of 'green' steel we can make, and gradually we can build other 'green' infrastructure. But if we use that 'green' steel to make things which aren't actually on the critical path, like electric cars, we're going to be stuffed.
|
||||
|
||||
So the concept here is something between a sim and a god-game. The player will play as government of one of a number of playable territories, on a recognisable model of planet Earth as it is now. As the government, the player can
|
||||
|
||||
1. Raise taxes on a number of things;
|
||||
2. Build infrastructure using available materials;
|
||||
3. Ban certain things;
|
||||
4. Provide social benefits;
|
||||
5. Put down revolts by force;
|
||||
6. Engage in diplomacy with other governments;
|
||||
7. Engage in war with other governments.
|
||||
|
||||
The government does not control the population directly, but only indirectly. If you tax too much and ban too much, your population will revolt. If you allow the climate to warm too much, then climate consequences will also cause your population to revolt.
|
||||
|
||||
## Major components
|
||||
|
||||
### Climate model
|
||||
|
||||
The core of the game needs to be a reasonably good climate model backed by good science. Obviously, this doesn't need to be (and can't be) as sophisticated as climate models used to do real climate science, since it needs to run on a domestic PC or games console and leave enough processor cycles free for a user interface and an economy model, but it has to produce results which are scientifically defensible.
|
||||
|
||||
I think the climate model needs to run in its own thread, separate from the main game loop. It needs to update maps for temperature, rainfall and windspeed on a regular basis, and also track things like total atmospheric carbon, anthropogenic warming, and sea level rise.
|
||||
|
||||
### Economy model
|
||||
|
||||
The economy model needs to track the production and consumption of strategic materials including energy, timber, metals, food, and record (and report to the climate model) the total amount of carbon released.
|
||||
|
||||
### User Interface
|
||||
|
||||
The user interface needs to be a (possibly stylised, but recognisable) map or the world over which the user can pan and zoom to look at what's going on in different places. Cities, industries, transport corridors and so on need to be visible and inspectable.
|
||||
|
||||
I like the idea of having little people running around getting on with their lives, perhaps one for every million people in the real world, but that's pretty ambitious and perhaps a step too far.
|
||||
There is documentation [here](https://simon-brooke.github.io/climate-game/)
|
||||
|
||||
## Warning
|
||||
|
||||
|
@ -48,10 +16,19 @@ I'm much better at starting projects than finishing them. It would be far better
|
|||
|
||||
## Usage
|
||||
|
||||
Doesn't work yet. In future it will be something like
|
||||
At present, you can run from the REPL by invoking
|
||||
|
||||
$ java -jar climate-game-0.1.0-standalone.jar [args]
|
||||
> lein repl
|
||||
|
||||
This allows you to play around with the code. Alternatively you can build an executable JAR file by invoking
|
||||
|
||||
> lein uberjar
|
||||
|
||||
This will build a jar file in `target/uberjar/climate-game-0.1.0-SNAPSHOT-standalone.jar`; this file may be run by invoking
|
||||
|
||||
> java -jar target/uberjar/climate-game-0.1.0-SNAPSHOT-standalone.jar
|
||||
|
||||
However, currently all you'll get is a window with a rendering of a planet -- not even the right planet -- in it. Nothing yet works.
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -42,3 +42,4 @@ Additionally, so-called biofuels are produced from crops grown on land which wou
|
|||
|
||||
## Concrete/Masonry
|
||||
|
||||
As far as I know there is as yet no 'green' method of producing cement, and producing cement will always have a very high energy cost. It's therefore likely to become a very significantly more expensive material. This implies that things currently built with concrete are more likely to be built with traditional masonry (cut stone blocks) or with timber. Whether concrete will be more or less expensive than ceramic bricks I don't know, but both will be significantly more expensive than they are now.
|
34
doc/intro.md
34
doc/intro.md
|
@ -4,11 +4,37 @@
|
|||
|
||||
The Climate Game is game about avoiding climate catastrophe.
|
||||
|
||||
##
|
||||
|
||||
#####
|
||||
|
||||
## Motivation and concept
|
||||
|
||||
The primary concerns I have which are driving this project is we're failing to communicate, even to the young but certainly to the old, just how intractable and serious the climate emergency is; that we lack critical infrastructure for a survivable planet; and that, unless we get the management of strategic materials right, it will be impossible to build the infrastructure for a survivable planet without tipping the climate system over the edge into utter catastrophe.
|
||||
|
||||
To illustrate what I mean here: we presently have some capacity to smelt steel by electric arc. We currently have some renewable electricity generation plant. But the amount of steel we can actually make using only renewable energy is quite limited. If we use that limited 'green' steel to make new renewable electricity generation plant and new electric arc steelworks, then we can increase the amount of 'green' steel we can make, and gradually we can build other 'green' infrastructure. But if we use that 'green' steel to make things which aren't actually on the critical path, like electric cars, we're going to be stuffed.
|
||||
|
||||
So the concept here is something between a sim and a god-game. The player will play as government of one of a number of playable territories, on a recognisable model of planet Earth as it is now. As the government, the player can
|
||||
|
||||
1. Raise taxes on a number of things;
|
||||
2. Build infrastructure using available materials;
|
||||
3. Ban certain things;
|
||||
4. Provide social benefits;
|
||||
5. Put down revolts by force;
|
||||
6. Engage in diplomacy with other governments;
|
||||
7. Engage in war with other governments.
|
||||
|
||||
The government does not control the population directly, but only indirectly. If you tax too much and ban too much, your population will revolt. If you allow the climate to warm too much, then climate consequences will also cause your population to revolt.
|
||||
|
||||
## Major components
|
||||
|
||||
### Climate model
|
||||
|
||||
The core of the game needs to be a reasonably good climate model backed by good science. Obviously, this doesn't need to be (and can't be) as sophisticated as climate models used to do real climate science, since it needs to run on a domestic PC or games console and leave enough processor cycles free for a user interface and an economy model, but it has to produce results which are scientifically defensible.
|
||||
|
||||
I think the climate model needs to run in its own thread, separate from the main game loop. It needs to update maps for temperature, rainfall and windspeed on a regular basis, and also track things like total atmospheric carbon, anthropogenic warming, and sea level rise.
|
||||
|
||||
It's likely that the climate model used will be based on Ben Matthews' [Java Climate Model](https://jcm.climatemodel.info/), but I haven't yet had confirmation from Ben that he is happy for me to use it.
|
||||
|
||||
### Economy model
|
||||
|
||||
The economy model needs to track the production and consumption of strategic materials including energy, timber, metals, food, and record (and report to the climate model) the total amount of carbon released. It's likely that the economy model will be entirely custom.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html PUBLIC ""
|
||||
"">
|
||||
<html><head><meta charset="UTF-8" /><title>cc.journeyman.climate-game.core documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch current"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="cc.journeyman.climate-game.core.html#var-init"><div class="inner"><span>init</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">cc.journeyman.climate-game.core</h1><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
</div></div><div class="public anchor" id="var-init"><h3>init</h3><div class="usage"><code>(init)</code></div><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
</div></div><div class="src-link"><a href="https://github.com/simon-brooke/climate-game/blob/master/src/clj/cc/journeyman/climate_game/core.clj#L24">view source</a></div></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8" /><title>cc.journeyman.climate-game.core documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch current"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="cc.journeyman.climate-game.core.html#var--main"><div class="inner"><span>-main</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">cc.journeyman.climate-game.core</h1><div class="doc"><div class="markdown"><p>Launcher.</p>
|
||||
</div></div><div class="public anchor" id="var--main"><h3>-main</h3><div class="usage"><code>(-main & args)</code></div><div class="doc"><div class="markdown"><p>This should be pretty simple.</p>
|
||||
</div></div><div class="src-link"><a href="https://github.com/simon-brooke/climate-game/blob/master/src/clj/cc/journeyman/climate_game/core.clj#L10">view source</a></div></div></div></body></html>
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html PUBLIC ""
|
||||
"">
|
||||
<html><head><meta charset="UTF-8" /><title>cc.journeyman.climate-game.planet.geometry documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5 current"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="cc.journeyman.climate-game.planet.geometry.html#var-init-planet"><div class="inner"><span>init-planet</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">cc.journeyman.climate-game.planet.geometry</h1><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
</div></div><div class="public anchor" id="var-init-planet"><h3>init-planet</h3><div class="usage"><code>(init-planet)</code></div><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
</div></div><div class="src-link"><a href="https://github.com/simon-brooke/climate-game/blob/master/src/clj/cc/journeyman/climate_game/planet/geometry.clj#L11">view source</a></div></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8" /><title>cc.journeyman.climate-game.planet.geometry documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5 current"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="cc.journeyman.climate-game.planet.geometry.html#var-init-planet"><div class="inner"><span>init-planet</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">cc.journeyman.climate-game.planet.geometry</h1><div class="doc"><div class="markdown"><p>Intended to replace java/cc/journeyman/cimate_game/ClimateGameApp.java, but not yet working.</p>
|
||||
</div></div><div class="public anchor" id="var-init-planet"><h3>init-planet</h3><div class="usage"><code>(init-planet)</code></div><div class="doc"><div class="markdown"><p>Initialise an app with a planet in the centre of the screen. Not yet working.</p>
|
||||
</div></div><div class="src-link"><a href="https://github.com/simon-brooke/climate-game/blob/master/src/clj/cc/journeyman/climate_game/planet/geometry.clj#L6">view source</a></div></div></div></body></html>
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html PUBLIC ""
|
||||
"">
|
||||
<html><head><meta charset="UTF-8" /><title>Climate-game 0.1.0-SNAPSHOT</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 current"><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="namespace-index" id="content"><h1><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></h1><h5 class="license">Released under the <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">GNU General Public License,version 2.0 or (at your option) any later version</a></h5><div class="doc"><p>A game about avoiding climate catastrophe.</p></div><h2>Installation</h2><p>To install, add the following dependency to your project or build file:</p><pre class="deps">[journeyman-cc/climate-game "0.1.0-SNAPSHOT"]</pre><h2>Topics</h2><ul class="topics"><li><a href="Algorithmic_Play.html">Algorithmic play</a></li><li><a href="Climate_Events.html">Climate Events</a></li><li><a href="Influencing_other_territories.html">Influencing other territories</a></li><li><a href="Playable_Territories.html">Playable Territories</a></li><li><a href="Political_Parties.html">Political Parties</a></li><li><a href="Strategic_Materials.html">Strategic materials</a></li><li><a href="User_Interface.html">User Interface</a></li><li><a href="intro.html">The Climate Game</a></li></ul><h2>Namespaces</h2><div class="namespace"><h3><a href="cc.journeyman.climate-game.core.html">cc.journeyman.climate-game.core</a></h3><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
</div></div><div class="index"><p>Public variables and functions:</p><ul><li> <a href="cc.journeyman.climate-game.core.html#var-init">init</a> </li></ul></div></div><div class="namespace"><h3><a href="cc.journeyman.climate-game.planet.geometry.html">cc.journeyman.climate-game.planet.geometry</a></h3><div class="doc"><div class="markdown"><p><strong>TODO</strong>: write docs</p>
|
||||
<html><head><meta charset="UTF-8" /><title>Climate-game 0.1.0-SNAPSHOT</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 current"><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Algorithmic_Play.html"><div class="inner"><span>Algorithmic play</span></div></a></li><li class="depth-1 "><a href="Climate_Events.html"><div class="inner"><span>Climate Events</span></div></a></li><li class="depth-1 "><a href="Influencing_other_territories.html"><div class="inner"><span>Influencing other territories</span></div></a></li><li class="depth-1 "><a href="Playable_Territories.html"><div class="inner"><span>Playable Territories</span></div></a></li><li class="depth-1 "><a href="Political_Parties.html"><div class="inner"><span>Political Parties</span></div></a></li><li class="depth-1 "><a href="Strategic_Materials.html"><div class="inner"><span>Strategic materials</span></div></a></li><li class="depth-1 "><a href="User_Interface.html"><div class="inner"><span>User Interface</span></div></a></li><li class="depth-1 "><a href="intro.html"><div class="inner"><span>The Climate Game</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>cc</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>journeyman</span></div></div></li><li class="depth-3"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>climate-game</span></div></div></li><li class="depth-4 branch"><a href="cc.journeyman.climate-game.core.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>core</span></div></a></li><li class="depth-4"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>planet</span></div></div></li><li class="depth-5"><a href="cc.journeyman.climate-game.planet.geometry.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>geometry</span></div></a></li></ul></div><div class="namespace-index" id="content"><h1><span class="project-title"><span class="project-name">Climate-game</span> <span class="project-version">0.1.0-SNAPSHOT</span></span></h1><h5 class="license">Released under the <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">GNU General Public License,version 2.0 or (at your option) any later version</a></h5><div class="doc"><p>A game about avoiding climate catastrophe.</p></div><h2>Installation</h2><p>To install, add the following dependency to your project or build file:</p><pre class="deps">[journeyman-cc/climate-game "0.1.0-SNAPSHOT"]</pre><h2>Topics</h2><ul class="topics"><li><a href="Algorithmic_Play.html">Algorithmic play</a></li><li><a href="Climate_Events.html">Climate Events</a></li><li><a href="Influencing_other_territories.html">Influencing other territories</a></li><li><a href="Playable_Territories.html">Playable Territories</a></li><li><a href="Political_Parties.html">Political Parties</a></li><li><a href="Strategic_Materials.html">Strategic materials</a></li><li><a href="User_Interface.html">User Interface</a></li><li><a href="intro.html">The Climate Game</a></li></ul><h2>Namespaces</h2><div class="namespace"><h3><a href="cc.journeyman.climate-game.core.html">cc.journeyman.climate-game.core</a></h3><div class="doc"><div class="markdown"><p>Launcher.</p>
|
||||
</div></div><div class="index"><p>Public variables and functions:</p><ul><li> <a href="cc.journeyman.climate-game.core.html#var--main">-main</a> </li></ul></div></div><div class="namespace"><h3><a href="cc.journeyman.climate-game.planet.geometry.html">cc.journeyman.climate-game.planet.geometry</a></h3><div class="doc"><div class="markdown"><p>Intended to replace java/cc/journeyman/cimate_game/ClimateGameApp.java, but not yet working.</p>
|
||||
</div></div><div class="index"><p>Public variables and functions:</p><ul><li> <a href="cc.journeyman.climate-game.planet.geometry.html#var-init-planet">init-planet</a> </li></ul></div></div></div></body></html>
|
15
docs/index.html
Normal file
15
docs/index.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>The Climate Game: Documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="codox/css/default.css" />
|
||||
<link rel="stylesheet" type="text/css" href="codox/css/highlight.css" />
|
||||
<meta http-equiv="refresh" content="0;URL='codox/index.html'" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>The Climate Game: Documentation</h1>
|
||||
<p>Documentation for the Climate Game is <a href="codox/index.html">here.</a></p>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,7 +1,7 @@
|
|||
(ns cc.journeyman.climate-game.core
|
||||
"Launcher."
|
||||
(:require [cc.journeyman.climate-game.planet.geometry :refer [init-planet]]
|
||||
[jme-clj.core :refer [add-light-to-root add-to-root box defsimpleapp generate geo get*
|
||||
[jme-clj.core :refer [add-light-to-root add-to-root app-settings box defsimpleapp generate geo get*
|
||||
light load-texture material rotate set* sphere start vec3]])
|
||||
(:import [cc.journeyman.climate_game ClimateGameApp])
|
||||
(:gen-class))
|
||||
|
@ -12,7 +12,10 @@
|
|||
[& args]
|
||||
(let [app (ClimateGameApp.)]
|
||||
(try
|
||||
(.setSettings app (app-settings true :title "The Climate Game"))
|
||||
(start app)
|
||||
(catch Exception any
|
||||
(println (.getMessage any))))))
|
||||
(println (.getMessage any))
|
||||
(println)
|
||||
(throw any)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue