Renamed project to 'End of Eden'

This commit is contained in:
Daniel Schmidt 2023-04-23 22:04:24 +02:00
parent 6fddceccc8
commit feea0f274f
38 changed files with 112 additions and 112 deletions

View File

@ -1,11 +1,11 @@
```
▄▄ • ▐ ▄ ·▄▄▄▄•
▐█ ▀ ▪▪ •█▌▐█▪▀·.█▌▪
▄█ ▀█▄ ▄█▀▄ ▐█▐▐▌▄█▀▀▀• ▄█▀▄
▐█▄▪▐█▐█▌.▐▌██▐█▌█▌▪▄█▀▐█▌.▐
·▀▀▀▀ ▀█▄▀▪▀▀ █▪·▀▀▀ • ▀█▄▀
▄▄▄ . ▐ ▄ ·▄▄▄▄ ·▄▄▄ ▄▄▄ .·▄▄▄▄ ▄▄▄ . ▐ ▄
▀▄.▀·•█▌▐███▪ ██ ▪ ▐▄▄· ▀▄.▀·██▪ ██ ▀▄.▀·•█▌▐█
▐▀▀▪▄▐█▐▐▌▐█· ▐█▌ ▄█▀▄ ██▪ ▐▀▀▪▄▐█· ▐█▌▐▀▀▪▄▐█▐▐▌
▐█▄▄▌██▐█▌██. ██ ▐█▌.▐▌██▌. ▐█▄▄▌██. ██ ▐█▄▄▌██▐█
▀▀▀ ▀▀ █▪▀▀▀▀▀• ▀█▄▀▪▀▀▀ ▀▀▀ ▀▀▀▀▀• ▀▀▀ ▀▀ █
project_gonzo
end_of_eden
```
---
@ -14,21 +14,21 @@ project_gonzo
> Welcome to a world 500 years in the future, ravaged by climate change and nuclear wars. The remaining humans have become few and far between, replaced by mutated and plant-based creatures. In this gonzo-fantasy setting, you find yourself awakening from cryo sleep in an underground facility, long forgotten and alone. With all other cryosleep capsules broken, it's up to you to navigate this strange and dangerous world and uncover the secrets that led to your isolation...
**Project Gonzo...**
**End of Eden...**
- Is a "Slay the Spire"-like, roguelite deck-builder game running fully in console
- Collect Artifacts that give you new cards or various passive effects
- Clash with strange beings and try to survive as long as possible
# How to play
- You can play project_gonzo in
- Console: ``project_gonzo``
- Browser: ``project_gonzo_browser``
- Over SSH: ``project_gonzo_ssh``
- You can play end_of_eden in
- Console: ``end_of_eden``
- Browser: ``end_of_eden_browser``
- Over SSH: ``end_of_eden_ssh``
## Console
A modern console is required to support all the features like full mouse control. Just start the ``project_gonzo(.exe)`` executable in your terminal.
A modern console is required to support all the features like full mouse control. Just start the ``end_of_eden(.exe)`` executable in your terminal.
### Tested Terminals
@ -49,7 +49,7 @@ A modern console is required to support all the features like full mouse control
## Lua
Lua is used to define artifacts, cards, enemies and everything else that is dynamic in the game. This makes project_gonzo easily extendable. **Modding support coming soon!**
Lua is used to define artifacts, cards, enemies and everything else that is dynamic in the game. This makes end_of_eden easily extendable. **Modding support coming soon!**
- The lua code tries to conform to the [luarocks style guide](https://github.com/luarocks/lua-style-guide).
- The [luafun](https://github.com/luafun/luafun) functional library is available by default to provide functions like ``map``, ``filter``, etc. which are very helpful. Check the [luafun docs](https://luafun.github.io/index.html) for more information.

View File

@ -6,6 +6,6 @@ if [[ $GOOS == "windows" ]]; then
EXT=".exe"
fi
go build -o project_gonzo$EXT ./cmd/game
go build -o project_gonzo_ssh$EXT ./cmd/game_ssh/
go build -o project_gonzo_browser$EXT ./cmd/game_browser
go build -o end_of_eden$EXT ./cmd/game/
go build -o end_of_eden_ssh$EXT ./cmd/game_ssh/
go build -o end_of_eden_browser$EXT ./cmd/game_browser/

View File

@ -3,19 +3,19 @@ package main
import (
"flag"
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/gen"
"github.com/BigJk/project_gonzo/gen/faces"
"github.com/BigJk/project_gonzo/ui/menus/gameview"
"github.com/BigJk/project_gonzo/ui/menus/mainmenu"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/gen"
"github.com/BigJk/end_of_eden/gen/faces"
"github.com/BigJk/end_of_eden/ui/menus/gameview"
"github.com/BigJk/end_of_eden/ui/menus/mainmenu"
zone "github.com/lrstanley/bubblezone"
"github.com/samber/lo"
"log"
"os"
"strings"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/ui/root"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/ui/root"
tea "github.com/charmbracelet/bubbletea"
)
@ -56,7 +56,7 @@ func main() {
log.Println("=================================")
// Set window title
fmt.Println("\033]2;Project Gonzo\007")
fmt.Println("\033]2;End of Eden\007")
// Setup game
var baseModel tea.Model

View File

@ -25,7 +25,7 @@ func init() {
windows.GetConsoleMode(stdout, &originalMode)
windows.SetConsoleMode(stdout, originalMode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
/* Disable for now as microsoft/terminal works well with gonzo
/* Disable for now as microsoft/terminal works well with EoE
winterm.SetConsoleWindowInfo(uintptr(stdout), true, winterm.SMALL_RECT{
Left: 0,

View File

@ -9,7 +9,7 @@ import (
"runtime"
)
const GameExecutable = "project_gonzo"
const GameExecutable = "end_of_eden"
func locateTtyd() (string, error) {
locations := []string{
@ -36,7 +36,7 @@ func locateTtyd() (string, error) {
return locations[i], nil
}
return "", errors.New("ttyd not found!")
return "", errors.New("ttyd not found")
}
func main() {
@ -56,7 +56,7 @@ func main() {
// Build ttyd command
game := exec.Command(ttyd, lo.Flatten([][]string{
{"--check-origin", "--browser", "--once", "./" + GameExecutable + ext},
args, // pass args to project_gonzo
args, // pass args to end_of_eden
})...)
game.Stdout = os.Stdout
game.Stderr = os.Stderr

View File

@ -4,8 +4,8 @@ import (
"context"
"errors"
"flag"
"github.com/BigJk/project_gonzo/ui/menus/mainmenu"
"github.com/BigJk/project_gonzo/ui/root"
"github.com/BigJk/end_of_eden/ui/menus/mainmenu"
"github.com/BigJk/end_of_eden/ui/root"
zone "github.com/lrstanley/bubblezone"
"os"
"os/signal"

View File

@ -1,6 +1,6 @@
# Game
This is the core implementation of project_gonzo. This doesn't contain any ui code, as the base game logic and ui is fully seperated in this project.
This is the core implementation of end_of_eden. This doesn't contain any ui code, as the base game logic and ui is fully seperated in this project.
# Session

View File

@ -2,7 +2,7 @@ package game
import (
"encoding/gob"
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/end_of_eden/luhelp"
)
func init() {

View File

@ -2,7 +2,7 @@ package game
import (
"encoding/gob"
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/end_of_eden/luhelp"
)
func init() {

View File

@ -3,7 +3,7 @@ package game
import (
"context"
"fmt"
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/end_of_eden/luhelp"
"github.com/labstack/echo/v4"
"github.com/olahol/melody"
"github.com/samber/lo"
@ -52,7 +52,7 @@ func ExposeDebug(bind string, session *Session, l *lua.LState, log *log.Logger)
})
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "project_gonzo debug server")
return c.String(http.StatusOK, "end_of_eden debug server")
})
e.GET("/state", func(c echo.Context) error {

View File

@ -1,6 +1,6 @@
package game
import "github.com/BigJk/project_gonzo/luhelp"
import "github.com/BigJk/end_of_eden/luhelp"
// Enemy represents a definition of a enemy that can be linked from a Actor.
type Enemy struct {

View File

@ -1,6 +1,6 @@
package game
import "github.com/BigJk/project_gonzo/luhelp"
import "github.com/BigJk/end_of_eden/luhelp"
// EventChoice represents a possible choice in the Event.
type EventChoice struct {

View File

@ -1,10 +1,10 @@
package game
import (
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/gen/faces"
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/gen/faces"
"github.com/BigJk/end_of_eden/luhelp"
"github.com/BigJk/end_of_eden/util"
"github.com/charmbracelet/lipgloss"
"github.com/samber/lo"
lua "github.com/yuin/gopher-lua"

View File

@ -1,7 +1,7 @@
package game
import (
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/end_of_eden/luhelp"
"github.com/samber/lo"
lua "github.com/yuin/gopher-lua"
"io/fs"

View File

@ -6,9 +6,9 @@ import (
"encoding/gob"
"errors"
"fmt"
"github.com/BigJk/project_gonzo/gen"
"github.com/BigJk/project_gonzo/gen/faces"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/gen"
"github.com/BigJk/end_of_eden/gen/faces"
"github.com/BigJk/end_of_eden/util"
"github.com/samber/lo"
lua "github.com/yuin/gopher-lua"
"golang.org/x/exp/slices"

View File

@ -2,7 +2,7 @@ package game
import (
"encoding/gob"
"github.com/BigJk/project_gonzo/luhelp"
"github.com/BigJk/end_of_eden/luhelp"
)
func init() {

View File

@ -1,6 +1,6 @@
package game
import "github.com/BigJk/project_gonzo/luhelp"
import "github.com/BigJk/end_of_eden/luhelp"
type StoryTeller struct {
ID string

View File

@ -3,7 +3,7 @@ package game
import (
"bytes"
"encoding/gob"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/util"
"github.com/samber/lo"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/BigJk/project_gonzo
module github.com/BigJk/end_of_eden
go 1.20

View File

@ -1,3 +1,3 @@
# UI
This is the ui part of project_gonzo.
This is the ui part of end_of_eden.

View File

@ -1,7 +1,7 @@
package animation
import (
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/util"
"github.com/samber/lo"
"math/rand"
)

View File

@ -2,8 +2,8 @@ package components
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/charmbracelet/lipgloss"
"github.com/samber/lo"
)

View File

@ -2,8 +2,8 @@ package components
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/charmbracelet/lipgloss"
)

View File

@ -2,9 +2,9 @@ package components
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/BigJk/end_of_eden/util"
"github.com/charmbracelet/lipgloss"
"github.com/lucasb-eyer/go-colorful"
"github.com/samber/lo"

View File

@ -1,7 +1,7 @@
package components
import (
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/charmbracelet/lipgloss"
)

View File

@ -2,8 +2,8 @@ package components
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/util"
"github.com/charmbracelet/lipgloss"
"github.com/lucasb-eyer/go-colorful"
"github.com/samber/lo"

View File

@ -1,9 +1,9 @@
package about
import (
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/BigJk/end_of_eden/util"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
zone "github.com/lrstanley/bubblezone"

View File

@ -2,11 +2,11 @@ package eventview
import (
"fmt"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/BigJk/end_of_eden/util"
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/glamour"

View File

@ -2,11 +2,11 @@ package gameover
import (
"fmt"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/animation"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/animation"
"github.com/BigJk/end_of_eden/ui/style"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
zone "github.com/lrstanley/bubblezone"

View File

@ -2,10 +2,10 @@ package gameview
import (
"fmt"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/style"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/harmonica"
"github.com/charmbracelet/lipgloss"

View File

@ -2,10 +2,10 @@ package gameview
import (
"fmt"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui/animation"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui/animation"
"github.com/BigJk/end_of_eden/ui/style"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"math/rand"

View File

@ -2,15 +2,15 @@ package gameview
import (
"fmt"
"github.com/BigJk/project_gonzo/audio"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/components"
"github.com/BigJk/project_gonzo/ui/menus/eventview"
"github.com/BigJk/project_gonzo/ui/menus/gameover"
"github.com/BigJk/project_gonzo/ui/menus/merchant"
"github.com/BigJk/project_gonzo/ui/menus/overview"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/audio"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/components"
"github.com/BigJk/end_of_eden/ui/menus/eventview"
"github.com/BigJk/end_of_eden/ui/menus/gameover"
"github.com/BigJk/end_of_eden/ui/menus/merchant"
"github.com/BigJk/end_of_eden/ui/menus/overview"
"github.com/BigJk/end_of_eden/ui/style"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
zone "github.com/lrstanley/bubblezone"

View File

@ -1,7 +1,7 @@
package mainmenu
import (
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

View File

@ -1,11 +1,11 @@
package mainmenu
import (
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/menus/about"
"github.com/BigJk/project_gonzo/ui/menus/gameview"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/menus/about"
"github.com/BigJk/end_of_eden/ui/menus/gameview"
"github.com/BigJk/end_of_eden/ui/style"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
zone "github.com/lrstanley/bubblezone"

View File

@ -2,11 +2,11 @@ package merchant
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/components"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/project_gonzo/util"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/components"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/BigJk/end_of_eden/util"
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/table"

View File

@ -2,10 +2,10 @@ package overview
import (
"fmt"
"github.com/BigJk/project_gonzo/game"
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/project_gonzo/ui/components"
"github.com/BigJk/project_gonzo/ui/style"
"github.com/BigJk/end_of_eden/game"
"github.com/BigJk/end_of_eden/ui"
"github.com/BigJk/end_of_eden/ui/components"
"github.com/BigJk/end_of_eden/ui/style"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/bubbles/table"

View File

@ -1,7 +1,7 @@
package root
import (
"github.com/BigJk/project_gonzo/ui"
"github.com/BigJk/end_of_eden/ui"
tea "github.com/charmbracelet/bubbletea"
zone "github.com/lrstanley/bubblezone"
)

View File

@ -1,10 +1,10 @@
package ui
var Title = ` ·
·.
..
· · `
var Title = ` . · · .· .
.· · .· .·
· ·
. .. .
`
var About = `About Gonzo