npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

arcademathjs

v1.0.0

Published

A 2d game engine and math lib based for JavaScript and HTML5 Canvas

Downloads

71

Readme

Arcade.js Powered by You

Arcade.js is a 2d game engine based on JavaScript and HTML5 Canvas. Written 2010 by Martin Wendt, Licensed MIT.

ArcadeJS is a 2d game engine, written in pure JavaScript. It requires HTML5, namely support for <canvas> and <audio> elements. This package was developed during a summer hollyday 2010 and finished during winter 2010. The goal of this fun project was to learn about HTML5 and implement a clone of the Rip-Off game. As a consequence I borrowed a lot (especially from processing.js), reinvented some wheels, and stuck with rather simple vector graphics for the demo games.

Note: this project is not actively maintained.

The repository was migrated from Google Code 2015-03-15, because Google Code Project Hosting was turned down.

The project consists of

  • lina.js An independent, object oriented library for points, vectors, and homogeneous transformations in 2D space. A polygon class helps with collision detection and hit testing.

  • arcade.js A 2D game engine that provides a render loop and support for multiple moving objects. Also sound, keyboard, mouse and touch events are supported.

  • arcade-controls.js Some controls (button, joystick) for mouse and touch screens.

  • Playable demos

Lina.js

An independent, object oriented library for points, vectors, and homogeneous transformations in 2D space. A polygon class helps with collision detection and hit testing.

Arcade.js

A 2D game engine that provides a render loop and support for multiple moving objects.

Demos

Rip-Off

A port of the Rip-Off arcade game written by Tim Skelly / Cinematronix in 1980. Rip-Off, was the first arcade game with two-player cooperative play. The bandits use some early 'artifical intelligence' / flocking behavior.

Rip-Off demo

Asteroids

A remake of the famous arcade game (~420 lines of code).

Asteroids Demo Asteroids Demo (mobile version) Asteroids Demo (iCade version)

Billiards

A simple JavaScript implementation of carambolage using arcade.js.

Billiards demo

Quirks

A simple render loop with two reflecting points.

Quirks demo

DesktopMobile

Collisions

This sample shows how to implement moving objects, circle-circle and circle-polygon collisions.

Collisions demo