switched to apollo palette and self made sprites
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
"log/slog"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
@@ -68,8 +67,6 @@ func (scene *AboutScene) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func (scene *AboutScene) SetupUI() {
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
|
||||
rowContainer := gameui.NewRowContainer()
|
||||
|
||||
buttonBack := gameui.NewMenuButton("Back", *assets.FontRenderer.FontNormal,
|
||||
@@ -78,12 +75,12 @@ func (scene *AboutScene) SetupUI() {
|
||||
})
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text("About this game", *assets.FontRenderer.FontBig, blue),
|
||||
widget.TextOpts.Text("About this game", *assets.FontRenderer.FontBig, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
about := widget.NewText(
|
||||
widget.TextOpts.Text(ABOUT+config.VERSION, *assets.FontRenderer.FontNormal, blue),
|
||||
widget.TextOpts.Text(ABOUT+config.VERSION, *assets.FontRenderer.FontNormal, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionStart, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
"log/slog"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
"openquell/gameui"
|
||||
"os"
|
||||
|
||||
@@ -58,8 +58,6 @@ func (scene *MenuScene) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func (scene *MenuScene) SetupUI() {
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
|
||||
rowContainer := gameui.NewRowContainer()
|
||||
|
||||
buttonStartnew := gameui.NewMenuButton("Start new game", *assets.FontRenderer.FontNormal,
|
||||
@@ -83,7 +81,7 @@ func (scene *MenuScene) SetupUI() {
|
||||
})
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text("Menu", *assets.FontRenderer.FontBig, blue),
|
||||
widget.TextOpts.Text("Menu", *assets.FontRenderer.FontBig, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"image/color"
|
||||
"log/slog"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
"openquell/gameui"
|
||||
"openquell/observers"
|
||||
|
||||
@@ -118,7 +119,6 @@ func (scene *NextlevelScene) SetupUILast() {
|
||||
}
|
||||
|
||||
func (scene *NextlevelScene) SetupUIRetry() {
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
observer := observers.GetGameObserver(scene.Game.World)
|
||||
buttonNext := &widget.Button{}
|
||||
|
||||
@@ -151,7 +151,7 @@ func (scene *NextlevelScene) SetupUIRetry() {
|
||||
})
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text(labeltext, *assets.FontRenderer.FontNormal, blue),
|
||||
widget.TextOpts.Text(labeltext, *assets.FontRenderer.FontNormal, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
"log/slog"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
"openquell/gameui"
|
||||
"openquell/observers"
|
||||
|
||||
@@ -75,7 +75,6 @@ func (scene *PopupScene) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func (scene *PopupScene) SetupUI() {
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
observer := observers.GetGameObserver(scene.Game.World)
|
||||
|
||||
rowContainer := gameui.NewRowContainer(false)
|
||||
@@ -97,7 +96,7 @@ func (scene *PopupScene) SetupUI() {
|
||||
})
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text("Menu", *assets.FontRenderer.FontBig, blue),
|
||||
widget.TextOpts.Text("Menu", *assets.FontRenderer.FontBig, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"image/color"
|
||||
"log/slog"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
"openquell/gameui"
|
||||
"openquell/observers"
|
||||
|
||||
@@ -75,12 +76,10 @@ type LevelEntry struct {
|
||||
func (scene *SelectScene) SetupUI() {
|
||||
gameobserver := observers.GetGameObserver(scene.Game.World)
|
||||
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
|
||||
rowContainer := gameui.NewRowContainer()
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text("Select Level", *assets.FontRenderer.FontBig, blue),
|
||||
widget.TextOpts.Text("Select Level", *assets.FontRenderer.FontBig, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
"openquell/assets"
|
||||
"openquell/config"
|
||||
"openquell/gameui"
|
||||
|
||||
"github.com/ebitenui/ebitenui"
|
||||
@@ -60,8 +60,6 @@ func (scene *WelcomeScene) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func (scene *WelcomeScene) SetupUI() {
|
||||
blue := color.RGBA{0, 255, 128, 255}
|
||||
|
||||
rowContainer := gameui.NewRowContainer()
|
||||
|
||||
button := gameui.NewMenuButton("Start", *assets.FontRenderer.FontNormal,
|
||||
@@ -70,7 +68,7 @@ func (scene *WelcomeScene) SetupUI() {
|
||||
})
|
||||
|
||||
label := widget.NewText(
|
||||
widget.TextOpts.Text("Welcome to OpenQuell", *assets.FontRenderer.FontBig, blue),
|
||||
widget.TextOpts.Text("Welcome to OpenQuell", *assets.FontRenderer.FontBig, config.FontColorFG),
|
||||
widget.TextOpts.Position(widget.TextPositionCenter, widget.TextPositionCenter),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user