Skip to content

Commit

Permalink
Rename screen package to screens
Browse files Browse the repository at this point in the history
  • Loading branch information
z-riley committed Nov 15, 2024
1 parent ab9f9bb commit 9f8394f
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
10 changes: 5 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/z-riley/go-2048-battle/config"
"github.com/z-riley/go-2048-battle/debug"
"github.com/z-riley/go-2048-battle/log"
"github.com/z-riley/go-2048-battle/screen"
"github.com/z-riley/go-2048-battle/screens"
"github.com/z-riley/turdgl"
)

Expand Down Expand Up @@ -35,18 +35,18 @@ func main() {
}

// Parse starting screen arg
screenStr := flag.String("screen", string(screen.Title), "starting screen")
screenStr := flag.String("screen", string(screens.Title), "starting screen")
flag.Parse()

// Create screens
screen.Init(win)
screen.SetScreen(screen.ID(*screenStr), nil)
screens.Init(win)
screens.SetScreen(screens.ID(*screenStr), nil)

debugWidget := debug.NewDebugWidget(win)

// Main game loop
for win.IsRunning() {
screen.Update()
screens.Update()

if config.Debug {
// Add debug overlay
Expand Down
1 change: 0 additions & 1 deletion common/textbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func NewTooltip() *turdgl.TextBox {
SetStyle(turdgl.Style{Colour: ArenaBackgroundColour})

return turdgl.NewTextBox(r, "Click to edit", FontPathMedium).
SetTextOffset(turdgl.Vec{Y: 4}).
SetTextSize(16).
SetTextColour(LightGreyTextColour)
}
2 changes: 1 addition & 1 deletion screen/multiplayer.go → screens/multiplayer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion screen/multiplayer_host.go → screens/multiplayer_host.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion screen/multiplayer_join.go → screens/multiplayer_join.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion screen/multiplayer_menu.go → screens/multiplayer_menu.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"github.com/z-riley/go-2048-battle/common"
Expand Down
2 changes: 1 addition & 1 deletion screen/screen.go → screens/screens.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"github.com/z-riley/turdgl"
Expand Down
2 changes: 1 addition & 1 deletion screen/singleplayer.go → screens/singleplayer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion screen/title.go → screens/title.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package screen
package screens

import (
"github.com/z-riley/go-2048-battle/common"
Expand Down

0 comments on commit 9f8394f

Please sign in to comment.