Skip to content

Commit

Permalink
version 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
mki1967 committed May 25, 2019
1 parent a1b9964 commit 11f6a00
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
12 changes: 9 additions & 3 deletions game.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ package main
import (
"fmt" // tests
// "errors"
"math"
"strconv"

"github.com/go-gl/gl/v3.3-core/gl"
"github.com/go-gl/glfw/v3.2/glfw"
"github.com/go-gl/mathgl/mgl32"
"github.com/mki1967/go-mki3d/glmki3d"
"github.com/mki1967/go-mki3d/mki3d"
"github.com/mki1967/go-skybox/sbxgpu"
"math"
"strconv"

// "time"
_ "image/png"
"math/rand"
Expand Down Expand Up @@ -433,8 +435,12 @@ func (game *Mki3dGame) Update() {
t := strconv.FormatFloat(time, 'f', 2, 64)
s := strconv.FormatFloat(score, 'f', 2, 64)
ts := strconv.FormatFloat(game.TotalScore, 'f', 2, 64)
roundInfo := ""
if game.AssetsPtr.LastLoadedStage+1 == len(game.AssetsPtr.Stages) {
roundInfo = "\nROUND FINISHED !!!"
}
fmt.Println("STAGE FINISHED !!! Time:", time, " seconds, stage score: ", score, ", total: ", game.TotalScore, ".")
ZenityInfo("STAGE FINISHED !!! Time:"+t+" seconds,\n stage score: "+s+",\n total: "+ts+".", "5")
ZenityInfo("STAGE FINISHED !!! Time:"+t+" seconds,\n stage score: "+s+",\n total: "+ts+"."+roundInfo, "5")
game.NextStage()
} else { // update the player in the stage
if game.CurrentAction != nil {
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mki3dgame-snap # you probably want to 'snapcraft register <name>'
version: '1.18' # just for humans, typically '1.2+git' or '1.3.2'
version: '1.19' # just for humans, typically '1.2+git' or '1.3.2'
summary: Searching for tokens in 3D stages amongst flying monsters. # 79 char long summary
description: |
Search for tokens in 3D stages and avoid the monsters.
Expand Down
24 changes: 16 additions & 8 deletions usr/share/metainfo/io.github.mki1967.mki3dgame.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,49 +36,57 @@
<binary>io.github.mki1967.mki3dgame</binary>
</provides>
<releases>
<release version="1.19" date="2019-05-25">
<description>
<p>
You go through the stages in rounds,
where each round is a random permutation of stages.
</p>
</description>
</release>
<release version="1.18" date="2019-05-01">
<description>
<p>24 stages</p>
</description>
</release>
<release version="1.17" date="2019-01-27">
<description>
<p>23 stages and lines are more visible than triangles </p>
<p>23 stages and lines are more visible than triangles </p>
</description>
</release>
<release version="1.16" date="2018-10-28">
<description>
<p>22 stages, new sky-box after each collected token.</p>
<p>22 stages, new sky-box after each collected token.</p>
</description>
</release>
<release version="1.15" date="2018-08-21">
<description>
<p>New stage: x-tiles-stage, starting in paused state, and increased chance for the sky-box</p>
<p>New stage: x-tiles-stage, starting in paused state, and increased chance for the sky-box</p>
</description>
</release>
<release version="1.14.1" date="2018-07-10">
<description>
<p>GL_NV_shadow_samplers_cube extension enabled</p>
<p>GL_NV_shadow_samplers_cube extension enabled</p>
</description>
</release>
<release version="1.14" date="2018-07-10">
<description>
<p>displays nuber of stages and new stage: cubic-stage</p>
<p>displays nuber of stages and new stage: cubic-stage</p>
</description>
</release>
<release version="1.13" date="2018-06-27">
<description>
<p>new stage: electro-snail-stage</p>
<p>new stage: electro-snail-stage</p>
</description>
</release>
<release version="1.12" date="2018-03-05">
<description>
<p>fancy random coloured sky-box</p>
<p>fancy random coloured sky-box</p>
</description>
</release>
<release version="1.11.4" date="2018-01-27">
<description>
<p>zenity messages</p>
<p>zenity messages</p>
</description>
</release>
</releases>
Expand Down

0 comments on commit 11f6a00

Please sign in to comment.