Commit 19298adf authored by Trevor Slocum's avatar Trevor Slocum
Browse files

Add screenshot

parent 26de78c5
Pipeline #226088681 passed with stage
in 57 seconds
......@@ -7,6 +7,10 @@
**Note:** This game was created for the [LibreJam December 2020 game jam](https://leagueh.xyz/en/jam.html).
It is playable and winnable, however it is minimalist to say the least.
## Screenshot
[![Screenshot](https://gitlab.com/tslocum/basiclander/-/raw/master/screenshot.png)](https://gitlab.com/tslocum/basiclander/-/raw/master/screenshot.png)
## Controls
- Rotate counter-clockwise: **Left**
......@@ -25,7 +29,7 @@ basiclander is written in [Go](https://golang.org). Run the following command to
download and build basiclander from source.
```bash
go get gitlab.com/tslocum/twins
go get gitlab.com/tslocum/basiclander
```
The resulting binary is available as `~/go/bin/basiclander`.
......
......@@ -203,6 +203,7 @@ func renderWorld() {
buf.Write([]byte("[gray]███▓████████████████▓▓▓██████▓▓████████▓▓▓████████▓▓▓▓█████████████▓▓████████▓████▓▓███████████▓▓██████▓▓▓▓▓██████████[-]"))
buf.Write([]byte("\n"))
buf.Write([]byte("\n"))
buf.Write([]byte(strings.Repeat(" ", 22)))
if gameOver {
if playerCrashed {
buf.Write([]byte(" [ CRASHED ] "))
......@@ -225,7 +226,7 @@ func renderWorld() {
}
buf.Write([]byte("\n"))
buf.Write([]byte("\n"))
buf.Write([]byte(fmt.Sprintf("Fuel: %d.0 - Speed: %.01f - Rotation speed: %.01f - Rotation angle: %.01f", playerFuel, playerLV, playerAV, playerAngle)))
buf.Write([]byte(fmt.Sprintf(" Fuel: %d.0 kg - Speed: %.01f m/s - Rotation speed: %.01f deg/s - Rotation angle: %.01f deg", playerFuel, playerLV, playerAV, playerAngle)))
tv.SetBytes(buf.Bytes())
}
......@@ -323,7 +324,7 @@ func runSimulation() {
position := actors["player"].GetPosition()
playerX, playerY = position.X, position.Y
playerAV = actors["player"].GetAngularVelocity()
playerAV = actors["player"].GetAngularVelocity() * (180 / math.Pi)
playerLV = actors["player"].GetLinearVelocity().Y
list := actors["player"].GetContactList()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment