Giter VIP home page Giter VIP logo

danondso / clawjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zax37/clawjs

0.0 1.0 0.0 1.22 MB

Partially or fully reimplemented functionalities from Claw game into node.js server. Contains modularized features like map loading, game logics etc. It is also planned that in future it will become a fully working game reimplementation, served to play in browser on any device, possibly with several multiplayer modes.

Home Page: http://clawjs.us.openode.io

JavaScript 11.14% HTML 0.44% TypeScript 88.42%

clawjs's Introduction

ClawJS

Partially or fully reimplemented functionalities from Claw game into node.js server. Contains modularized features like map loading, game logics etc. It is also planned that in future it will become a fully working game reimplementation, served to play in browser on any device, possibly with several multiplayer modes.

Preparations

Resources

Note: I'm currently working on full pipeline for resources processing. For now, if you're interested in participating, please contact me first and I'll help getting them ready.


First, you need to prepare all your resources to be served. Steps I took:

  • get the original Claw resources
  • convert pids to pngs with REZExtractor
  • create 64x64 all-white image 4008636142.png
  • pack each tileset with TexturePacker and tools/json-names-array extension
    • JSON file: resources/tilesets/L1_ACTION.json
    • Algorithm: Basic, uncheck "Detect identical sprites"
    • Trim mode: None, Extrude: 1
    • including extra tile 4008636142.png
  • copy wwd files to resources/maps/RETAIL1.WWD ... RETAIL14.WWD
  • copy palettes to resources/palettes/LEVEL1.PAL ... LEVEL14.PAL
  • run script tools/process-resources.js

Building and running

Build and run the project in dev environment:

npm run dev

It restarts automatically after each code change.

See the results locally: http://localhost:8080/

To make a production build:

npm run build

To serve a ready production build on node server:

node .

See the results locally: http://localhost:3000/

Deploying

I'm currently using netlify for hosting the application. CI/CD is probably not an option until I finish the resources pipeline, so I use manual deploy, after doing production build:

netlify deploy -p

clawjs's People

Contributors

zax37 avatar

Watchers

James Cloos avatar

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.