Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client|server/tmpl/play: Changed the default port view to be bigger #249

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func NewClient() js.Func {
err error
hostURL = args[0].String()
version = args[1].String()
screenW = 288
screenH = 240
screenW = 550
screenH = 500
opt = client.Options{
HostURL: hostURL,
ScreenW: screenW,
Expand Down
4 changes: 2 additions & 2 deletions cmd/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ var (

func init() {
clientCmd.Flags().StringVar(&hostURL, "host", defaultHost, "The URL of the server")
clientCmd.Flags().IntVar(&screenW, "screenw", 288, "The default width of the screen when not full screen")
clientCmd.Flags().IntVar(&screenH, "screenh", 240, "The default height of the screen when not full screen")
clientCmd.Flags().IntVar(&screenW, "screenw", 550, "The default width of the screen when not full screen")
clientCmd.Flags().IntVar(&screenH, "screenh", 500, "The default height of the screen when not full screen")
clientCmd.Flags().BoolVar(&verbose, "verbose", false, fmt.Sprintf("If all the logs are gonna be printed to %s", logFile))

clientCmd.AddCommand(versionCmd)
Expand Down
Binary file modified server/assets/wasm/maze-wars.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion server/templates/views/game/play.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p class ="lead">
The current web version of this game is really slow. If you want a smooth experience <a href='/download'>download</a> it.
</p>
<iframe id="iframe" src="/game" width="580" height="480" scrolling="no"></iframe>
<iframe id="iframe" src="/game" width="850" height="1000" scrolling="no"></iframe>
<center>
<button id="fullscreen" class="btn btn-lg btn-light fw-bold border-white bg-white">Full Screen</a>
</center>
Expand Down
Loading