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

danmaku.arena

v0.0.3

Published

DanMaku Arena

Downloads

6

Readme

DanMaku Arena

This is my project for b/s programming course. It is a multiplayer game which belongs to the STG (Shoot 'Em Up Games) genre.

Two players each occupy half of the screen. They summon servants to attack each other rather than directly shooting bullets. This make the gameplay more like The Touhou Project a.k.a. Project Shrine Maiden.

Similarly, player controlled characters have a small collision box. And they can focus to reduce the moving speed facilitating dodging bullets.

The game is run in a browser/server architecture. The server side uses Node.js. Most modern browsers should be supported as browser side. Delay should be mostly dealt with by the game's design and synchronization strategies. I am expecting reasonable gameplay experience with delay less than 100 ms.

This repository contains the game server with a minimal web server that only serves the game. Another repository of mine contains a web server that enables additional user registration and etc.

How to play

  • visit the game's webpage, e.g. http://localhost:3000
  • controls
    • W/A/S/D hold to move up / left / down / right
    • Shift hold to slow down
    • "/" press to summon a servant ( There's a hidden mana bar, you can only summon a new servant when you have enough mana. Mana recovers by time. )

How to deploy server

Install the module into "node_modules/danmaku.arena"

$> npm install danmaku.arena

Start a server on port 3000

$> cd node_modules/danmaku.arena
$> npm start

How to build

Besides a node installation, you need coffee-script and grunt to build this project.

$> npm install -g coffee-script
$> npm install -g grunt-cli

Install dependencies

$> npm install

Build the project

$> grunt

Visit "http://localhost:3000" to play the game, a game requires two players.

Note socket.io, which I depended on, cannot be easily installed on Windows 7/8 currently. Here's the quick fix.

$> cd node_modules/socket.io/node_modules/engine.io/node_modules/ws
# Change the release of nan to 1.6.0
$> vim package.json
# I used Visual Studio 2013
$> node-gyp rebuild --msvs_version=2013

Now, socket.io should be working.