Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/briangershon/ufo

Animation of UFOs.
https://github.com/briangershon/ufo

8bit esbuild javascript parcel-bundler vanillajs

Last synced: about 2 months ago
JSON representation

Animation of UFOs.

Awesome Lists containing this project

README

        

# ufo

![Build Status](https://github.com/briangershon/ufo/workflows/Continuous%20Integration/badge.svg)

Animating UFOs with VanillaJS.

- HTML canvas
- spritesheet-based animation ([art and spritesheets created on Piskel](https://www.piskelapp.com/user/5359821142360064))
- simple game loop with update() and draw() functions
- uses Parcel bunder to run locally (with watch) or create a distribution
- optionally build as a library to include JS on any website (uses `esbuild`)

## Demo

View demo at .

UFO animation

## Run Local Dev Server

npm install # install dependencies

npm start
# visit http://localhost:1234

## Run Tests

npm test

## Run lint

npm run lint

## Package project up in dist folder for release to server

npm run build

## Publish on github pages

npm run build-gh
git commit -m "latest build"
npm run publish-gh

## Build as a library to use on another site

# create `dist/ufo-widget.js`
npm run build-library

Example usage:

```html

const canvas = document.getElementById('my-canvas');
ufoWidget.default({
canvas,
scale: 1,
entityCount: 22
});

```