Skip to content

GhtGhoster/mq-lockpick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lockpicking simulator

A different approach to representing the lockpicking minigame.

May not be playable at all resolutions/screen sizes, resize your browser window if need be.

As this tiny project draws to its conclusion, I realize a few things. For one, my code formatting is pretty garbage when I don't plan ahead. That aside though, this minigame is nowhere near as fun as I'd thought. The inclusion of lockpicking sounds effects might be able to mitigate that problem at least a little bit but serious thought should be given to how to entertain the player more effectively, how to actually allow the player to amass skill etc. A few ideas in that regard:

  • Inclusion of other lockpicking methods such as lishi tools, comb picks etc.
  • Inclusion of trickier locks with spool, schroom and other pins
  • Variety of locks with different driver pin arangements
  • (In the context of a full game) the ability to drill the lock
  • Improvement of the mouse controls themselves

To conclude, however, I'm happy with this project nontheless. It wasn't supposed to be the most thrilling minigame you've ever played, even though I'd have liked it to end up that way. It should mainly serve as a presentation and perhaps inspiration to me and anyone who might be interested.

(2 "required" .js files from egui-macroquad -> quad-url omitted because nothing broke so far)

More interesting crates to look out for in the future:

Instructions and dependencies:

All scripts listed below are compatible with default Windows installation of PowerShell (v6+ not required) as well as bash for Linux (scripts are polyglot)

(The bash portion of the polyglot scripts is untested, use with caution and please report back with results or a pull request)

This script installs wasm-bindgen-cli (version 0.2.84), basic-http-server and adds wasm32-unknown-unknown to possible compilation targets. Note that this version of wasm-bindgen-cli is required for the pipeline defined in this repository.

(This is only necessary to run once on a single computer as the effects of this script are global.)

This script builds the project for the wasm32-unknown-unknown target in --release mode, generates WASM bindings, and patches the generated JavaScript file. It also moves the relevant files to their appropriate directories in preparation for running the project on a local server or on GitHub Pages.

This script hosts the built project on a local basic-http-server server and opens a browser at its location.

(One does not need to restart the server after building the project again, reloading the webpage in the browser is sufficent.)

(This is necessary over just opening the index.html file in your browser so that the required resources load properly.)

Sources:

JS patching scripts:

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.