Code Monkey home page Code Monkey logo

dots's Introduction

dots

Clone of Boomshine. This version can be played here

The logic is implemented in Rust targeting WebAssembly, with the rendering handled by JavaScript to a canvas element.

screenshot

Usage

Play the current release on deciduously.com.

Develop

Requires wasm-pack.

  1. Clone this repo
  2. Execute wasm-pack build in the project root
  3. If this is the first run, execute npm install in the www dir
  4. Execute npm run start from within www. This will serve the app on localhost:8080

For future rebuilds, you only need step 2 every time you change the Rust code and 6 just once to start the dev server.

Acknowledgements

The rustwasm book was a great kicking off point.

dots's People

Contributors

deciduously avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dsrich

dots's Issues

Appearance

It's ugly, yo. Get background colors and nicer looking buttons and stuff

Performance

On my desktop I noticed no issues, but this thing slowed to a crawl in Chrome on my 2012 laptop. Firefox had no problem.

Stop one is to remove all calls to Game outside of tick() and pack() and restart(). Things like "last_update" and "progress string" (whcih s just num_dots - captured dots, so just pass through the cpatured count and let JS subtract) and "num_dots" should get packed into the Vec - design a series of f32s that hold all the necessary info and put them in front, and then in drawGame handle those values before starting your for loop at the proper offset

Occasionally levels just don't load

FIgure out why that's happening and stop it.

You should probably split up your header and your dot pack - the header is all ints, no need to cast to f32s. just grab a separate pointer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.