Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

mun-lang/example-rs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mun Example Suite

A collection of Rust-powered Mun example games to showcase its hot reloading functionality.

Pong (est. 1972) since Mun v0.2.1

Spaceship (Asteroids-like game) since Mun v0.2.1

How to Run

# Build the mun library and watch the src for changes
# This should be done in a different terminal (or tab or on the background)
mun new spaceship
cp resources/spaceship.mun spaceship/src/mod.mun
mun build --manifest-path spaceship/mun.toml --watch
# In a second terminal we link the created library to the current directory and rename it properly.
ln -s spaceship/target/mod.munlib spaceship.munlib
# Run the example
cargo run --example spaceship --features spaceship

That should do it, any changes to `spaceship/src/mod.mun will be immediatly reflected on the program via hotreloading.

To run any other example, replace all spaceship occurences in the above instructions with the example name.

License

The Mun Example Suite is licensed under either of

at your option.

About

A collection of Rust-powered hot reloadable Mun examples

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •