Giter Club home page Giter Club logo

zax37 / clawjs Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 5.0 2.68 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 12.56% HTML 0.43% TypeScript 87.01%

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

Stargazers

Nitin Khanna avatar Niclas Overby Ⓝ avatar Tóta Dávid avatar Arthur Boss avatar Justin Blinder avatar Luis Oliveira avatar Nicolas Lima avatar Archil Srivastava avatar  avatar  avatar Arnaldo Cisneros avatar Shawn Charles avatar astrolemonade avatar Richie Seputro avatar App Service avatar Pankaj Mane avatar rafamdr avatar  avatar  avatar Alex avatar Alberto del Real avatar João Godinho avatar Elena Tishkovskaya avatar Ahmed Walid avatar Mikhail avatar Jakub Trzebiatowski avatar Dublin Anondson avatar arden avatar Michał Matuszewski avatar

Watchers

James Cloos avatar  avatar  avatar

clawjs's Issues

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.