aboutsummaryrefslogtreecommitdiffstats
path: root/game.go
diff options
context:
space:
mode:
Diffstat (limited to 'game.go')
-rw-r--r--game.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/game.go b/game.go
index 7577475..869e836 100644
--- a/game.go
+++ b/game.go
@@ -10,7 +10,6 @@ import (
"strings"
"time"
- "github.com/dustinkirkland/golang-petname"
"github.com/fatih/color"
"golang.org/x/crypto/ssh"
)
@@ -45,7 +44,7 @@ func (h *Hub) Run(g *Game) {
h.Sessions[s] = struct{}{}
case s := <-h.Unregister:
if _, ok := h.Sessions[s]; ok {
- fmt.Fprint(s, "\r\n\r\n~ End of Line ~ \r\n\r\nRemember to use WASD to move!\r\n\r\n")
+ fmt.Fprint(s, "\r\n\r\n~ Fin de línea ~ \r\n\r\nRecuerda que con WASD te mueves!\r\n\r\n")
// Unhide the cursor
fmt.Fprint(s, "\033[?25h")
@@ -124,13 +123,13 @@ var playerBorderColors = map[color.Attribute]color.Attribute{
}
var playerColorNames = map[color.Attribute]string{
- playerRed: "Red",
- playerGreen: "Green",
- playerYellow: "Yellow",
- playerBlue: "Blue",
+ playerRed: "Rojo",
+ playerGreen: "Verde",
+ playerYellow: "Amarillo",
+ playerBlue: "Azul",
playerMagenta: "Magenta",
playerCyan: "Cyan",
- playerWhite: "White",
+ playerWhite: "Blanco",
}
type PlayerTrailSegment struct {
@@ -474,7 +473,7 @@ func (g *Game) initalizeLevel(width, height int) {
}
func (g *Game) setTileType(pos Position, tileType TileType) error {
- outOfBoundsErr := "The given %s value (%s) is out of bounds"
+ outOfBoundsErr := "El valor %s de (%s) está fuera de límite"
if pos.RoundX() > len(g.level) || pos.RoundX() < 0 {
return fmt.Errorf(outOfBoundsErr, "X", pos.X)
} else if pos.RoundY() > len(g.level[pos.RoundX()]) || pos.RoundY() < 0 {
@@ -540,7 +539,7 @@ func (g *Game) worldString(s *Session) string {
// Draw the player's score
scoreStr := fmt.Sprintf(
- " Score: %d : Your High Score: %d : Game High Score: %d ",
+ " Puntaje: %d : Tu mejor puntaje: %d : Mejor puntaje del juego: %d ",
s.Player.Score(),
s.HighScore,
g.HighScore,
@@ -590,7 +589,7 @@ func (g *Game) worldString(s *Session) string {
strWorld[startX][len(strWorld[0])-1] = " "
} else {
warning :=
- " Warning: Other Players Must be in This Game for You to Score! "
+ " Advertencia: Debe haber otros jugadores en el juego para poder sumar puntos "
for i, r := range warning {
strWorld[3+i][len(strWorld[0])-1] = borderColorizer(string(r))
}
@@ -744,7 +743,7 @@ func (g *Game) Update(delta float64) {
// Kick the player if they've timed out
if time.Now().Sub(session.LastAction) > playerTimeout {
- fmt.Fprint(session, "\r\n\r\nYou were terminated due to inactivity\r\n")
+ fmt.Fprint(session, "\r\n\r\nSesión finalizada por inactividad\r\n")
g.RemoveSession(session)
return
}
Un proyecto texto-plano.xyz