Skip to content

kazzmir/master-of-magic

Repository files navigation

build linux build macos build windows

Master of Magic clone

Online demo

Play a wasm build of this game https://kazzmir.itch.io/magic

Also try the combat simulator, which lets you test different battle situations https://kazzmir.itch.io/magic-combat-simulator

Build:

Extra packages needed for ebiten https://ebitengine.org/en/documents/install.html

$ go mod tidy
$ go build -o magic ./game/magic

or

$ make

Run:

Put the master of magic lbx files in one of the following places

  • in the same directory as the game executable
  • in any subdirectory of the directory the game executable is in
  • in a zip file in the same directory as the game executable
  • in a zip file in any subdirectory of the directory the game executable is in
  • in a zip file and replace data/data/data.zip, then rebuild the game. This embeds the data into the executable. You can also put the unzipped lbx files in data/data/

Or use the -data <path> command line option to magic to specify either a directory that contains the lbx files or the <path> can be a zip file of the lbx files.

$ ./magic

or to run without building first

$ go run ./game/magic

Screenshots:

new wizard

Directory layout:

  • game/ Contains go code that implements the game functionality
  • lib/ Supporting code used to load data/fonts
  • util/ Extra utility programs for development purposes (sprite viewer, font viewer, etc)
  • data/ Put a zip file with the game data to embed the data in the final binary
  • test/ Test programs for executing small pieces of functionality at a time

About

Clone of the MicroProse game, Master of Magic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •