Skip to content

Modernize the browser build with Vite - #70

Draft
monsterlag wants to merge 1 commit into
nicholas-ochoa:masterfrom
monsterlag:agent/modern-browser-build
Draft

Modernize the browser build with Vite#70
monsterlag wants to merge 1 commit into
nicholas-ochoa:masterfrom
monsterlag:agent/modern-browser-build

Conversation

@monsterlag

Copy link
Copy Markdown

Summary

  • replace the legacy Webpack 4/Babel development setup with Vite
  • update Phaser and browser dependencies to maintained npm releases
  • restore Windows 95 artwork importing with the public bmp-js package
  • fix transparent atlas generation and animation frame bounds on Phaser 3.90
  • use live camera bounds for culling and center the initial view on developed tiles
  • document the local, legally owned LARGE.DAT and PAL_MSTR.BMP setup

Verification

  • npm install
  • npm run build
  • production bundle smoke-tested in Chromium
  • verified game, world, city, viewport, and WebGL canvas initialization
  • verified proprietary game files remain ignored and are not included in this PR

Notes

JavaScript minification is temporarily disabled because the current Vite
minification pass causes Phaser 3.90's WebGL framebuffer initialization to fail.
The production bundle otherwise runs correctly and retains source maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant