Coder Social home page Coder Social logo

austineast / bass-master-online Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 7.96 MB

Submission to the Haxeflixel game jam on Newgrounds. Features online multiplayer with a Colyseus server

Home Page: https://www.newgrounds.com/portal/view/753744

Haxe 94.23% TypeScript 5.74% Procfile 0.03%
haxe haxeflixel colyseus

bass-master-online's Introduction

Getting Started

This project requires Haxe, Haxeflixel, and Node to be installed.

First, Clone the Repo:

git clone https://github.com/AustinEast/bass-master-online.git

Then direct your terminal to the newly cloned directory, and install all the Haxe Dependencies:

openfl install

Server

The Server is made up of two parts:

  • The Game's logic, written in Haxe (Game.hx)
  • The Colyseus server, written in Typescript (index.ts & GameRoom.ts)

You may be wondering what the motivation was behind writing the Game logic in Haxe, even though its output is run on a server by a Typescript-based Node app. Normally it would be simpler to write it all in Typescript, but there are a couple of advantages to doing it this way:

  1. It allows the Game instance running on the Server to easiy share Types and Utility methods with the Client app (which is built with Haxeflixel, a Haxe-based Game Framework). Check out the shared directory the see what I mean.
  2. It gives access to the Haxe ecosystem, which includes its awesome standard library along with other great game-oriented libraries (zerolib in this case)!
  3. It's more fun to write code in Haxe!

Building

Direct your terminal to the server directory:

cd server/

Install the Node dependencies, then build the Colyseus Schema:

npm i
npm run schema

Compile the Haxe code:

haxe game.hxml

Start the Server:

npm start

Client

TODO

Development

Server

TODO

Client

bass-master-online's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

geokureli

bass-master-online's Issues

Fix Indentation

the indentation in a lot of the source code is wacky and should be fixed!

remove source/schema

looks like it's already using shared/schema but this added a lot of confusion to me when I was learning everything

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.