Browse Source

Add screenshot

master
Trevor Slocum 2 years ago
parent
commit
19298adf8a
  1. 6
      README.md
  2. 5
      main.go
  3. BIN
      screenshot.png

6
README.md

@ -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`.

5
main.go

@ -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()

BIN
screenshot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save