summaryrefslogtreecommitdiff
path: root/src/input/textmap.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-06-03 18:48:40 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-06-03 18:48:40 +0200
commit5a6badb2b5c706d37732ff914838658424e15131 (patch)
tree95d85f9c4a2b8335eface055f7d11dd8567706e6 /src/input/textmap.rs
parent34c87bf04a9b70809eda125ca180de1d993d410e (diff)
Added todo
Diffstat (limited to 'src/input/textmap.rs')
-rw-r--r--src/input/textmap.rs6
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(),