spacecraft-app-cli
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -64,2 +64,23 @@ "use strict"; | ||
}); | ||
this.keyListener.bindEvent({ | ||
keyName: 'h', | ||
handler: function () { | ||
console.log(` | ||
Start => Earth(0, 0) | ||
Goal => Moon(0, 250) | ||
Once Launched, the Ship moves Forward | ||
W -> Increase Forward Speed | ||
S -> Decrease Forward Speed | ||
A -> Move Left | ||
D -> Move Right | ||
Max Speed - 5 speedunit | ||
Min Speed - 1 speedunit (after leaving (0, 0)) | ||
Press H -> Show the Ship Reference Manual | ||
Press CTRL + C to Exit | ||
`); | ||
} | ||
}); | ||
} | ||
@@ -69,3 +90,3 @@ start() { | ||
console.log(rocket_1.default); | ||
this.output.write('(0, 0) ready for launch\n'); | ||
this.output.write('(0, 0) ready for launch\nPress H to Show Help\n'); | ||
} | ||
@@ -72,0 +93,0 @@ launch() { |
{ | ||
"name": "spacecraft-app-cli", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A simple CLI Project to solve the Spacecraft problem with typescript", | ||
@@ -5,0 +5,0 @@ "main": "bin/spacecraft-app-cli.js", |
Sorry, the diff of this file is not supported yet
2843046
350