diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-06-03 18:48:40 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-06-03 18:48:40 +0200 |
commit | 5a6badb2b5c706d37732ff914838658424e15131 (patch) | |
tree | 95d85f9c4a2b8335eface055f7d11dd8567706e6 /src | |
parent | 34c87bf04a9b70809eda125ca180de1d993d410e (diff) |
Added todo
Diffstat (limited to 'src')
-rw-r--r-- | src/input/textmap.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/textmap.rs b/src/input/textmap.rs index dbee60a..79fbe7f 100644 --- a/src/input/textmap.rs +++ b/src/input/textmap.rs @@ -12,6 +12,8 @@ pub fn read_state_from_file(filename: &str) -> Result<(GameSettings, GameState), let mut content = String::new(); file.read_to_string(&mut content)?; + //TODO actually read the right file and parse it? + let engine_settings = GameSettings { size: Point::new(8,4), energy_income: 5, @@ -46,12 +48,12 @@ pub fn read_state_from_file(filename: &str) -> Result<(GameSettings, GameState), let engine_state = GameState::new( Player { energy: 20, - health: 5, + health: 100, energy_generated: 5 }, Player { energy: 20, - health: 5, + health: 100, energy_generated: 5 }, Vec::new(), |