Giter Site home page Giter Site logo

thjbug / stardefenders2d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eric-gurt/stardefenders2d

0.0 0.0 0.0 131.33 MB

My Star Defenders 2D game's source code.

License: GNU General Public License v3.0

JavaScript 98.95% HTML 0.97% Batchfile 0.01% CSS 0.06% Shell 0.01% PowerShell 0.01% Makefile 0.01% Ruby 0.01%

stardefenders2d's Introduction

Star Defenders 2D

This is a source code of my Star Defenders 2D game which you can usually play here: https://www.gevanni.com:3000

Finish it (contact me on twitter or patreon for that, I have plenty of plans, features and suggestions for bug fixes) or suggest updates as pull requests if you want to.

Reason for that is a usual "I must go, my planet needs me". But once I'm done after working on my primary project I may revisit this one. But do you really want to wait? Players of this game do not and I woudn't either.

https://twitter.com/Eric_Gurt

As for my part of code, art and sound effects - this project can be used commercially (you are allowed to get revenue from it - be it ads, donations, subscriptions or purchases of game access or in-game items). Once you are over $1 000 (USD) in total revenue - just support me via my Patreon (https://www.patreon.com/Eric_Gurt). Project uses GPL v3 so you can use it as a base for your other projects, without need to open source.

As for other contributors - feel free to ask at our Discord server. If you are contributor - you can specify your requirements here as well.

Currently project isn't like restricted to specific people to work on it - everyone is free to suggest pull requests or make branches and even separate games.

Development-related discussions so far happen here: https://discord.gg/rX4xEc2Y9E

Installation

Upload files to your server, remove node_modules folder as it might appear outdated (yet should be fine as long as server is not accessible from Internet, even if your server config has password).

Then, in command line (linux, CentOS):

apt update

apt install nodejs

apt install npm

pick directory where your Star Defenders 2D files are, index.js file specifically

npm init

npm install express --save

npm install socket.io --save

npm install socket.io-client --save

PS: You'll probably need latest Node.JS version. If something does not work - you can contact me or discuss it at #sd-discussion at PB2's discord server.

PSS: It is all pretty much same for Windows, just download Node.JS from their official website ( https://nodejs.org ), then follow the instructions towards running simple express application. Eventually just put game files instead of that index.js file and run it. For debugging using Chromium browsers you can run it with command line (cmd.exe application):

node --inspect index.js

After you've done that, green cube icon will magically appear at top left of any open devtools window.

Start server

You'll need to update SSL (https thing) info in index.js or just get rid of SSL support. It will automatically let it run on Windows without SSL on localhost:3000 . Then do:

node index.js > stdout.txt 2> stderr.txt &

But there is a better way to start server (it will prevent server turning off, though there still been cases when something sends termination signal to server):

nohup node index.js > stdout.txt 2> stderr.txt & disown

There is also alternate guide from MrMcShroom: https://docs.google.com/document/d/17ydIOjwjUKnHRcEVuYIYi35fBcIBid7k440I3X5fh9A/edit

Admin commands

These might change so type /selfhost - it will hint you what to do next. Once you've got admin rights you can type /help for full list of commands you can execute.

stardefenders2d's People

Contributors

eric-gurt avatar booraz149 avatar molisson avatar ghost58x avatar c86ec23b-fef1-4979-b2fa-b9adc351b8cc avatar mrnat444 avatar linkin01 avatar hastysnow avatar majorfelburn avatar thjbug avatar adibadrian101 avatar mrmcshroom avatar maxteabag avatar zimmermannliam 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.