Giter Club home page Giter Club logo

spacepirates's Introduction

Space Pirates

Space Pirates

This is the repository for the Space Pirates game demo for Babylon.js 5.0 Release. It contains assets and code so you can clone, learn and do modifications.

Playtest the demo

https://spacepirates.babylonjs.com/

How to build and test ?

In root folder: npm install

To run with watch build: npm run dev

To package: npm run build

Also, copy assets folder from test_package\public to Docs folder.

spacepirates's People

Contributors

cedricguillemet avatar cedricguillemetms avatar darraghjburke avatar patrickryanms avatar polygonalsun avatar raananw avatar rpaladin avatar thomlucc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spacepirates's Issues

Explosions & audio continue playing after player death

Sorry for all of these opened issues ๐Ÿ˜…
I've been finding issues here and there and figured if I should report them in case other people were experiencing them as well.

  1. After death, the sprite explosion animation continues to animate.
  2. Likewise the ambience audio continues playing as well, even after the player has died. Perhaps this latter is normal because the pause menu relatively copies the same behavior as well.

Recorded with 30fps & audio enabled (remember to unmute the video player).

vid.mp4

Can't fire cannons in Firefox

Left mouse button to fire cannons don't work in Firefox:

  • Using latest Firefox (v100.0)
  • No browser console errors are raised
  • Other inputs such as movement seem to work fine
  • Browser window is confirmed active
  • Game is confirmed unpaused
  • All three game-modes (solo, squad, battle) fail to fire cannons

Firing of cannons work fine in Microsoft Edge however.

Clickable menu buttons respond to right & middle mouse buttons

Clickable buttons such as these:
1)
image
2)
image
3)
image

Are responding to right & middle mouse buttons, when they should instead only be responsive to a left mouse button.


Edit: Perhaps the right mouse button should be switched out in favor of a Back page function? Similar to a Back button function.

Cannot steer with mouse on laptop with touchscreen

When playing Space Pirates on a laptop with touch screen capabilities, the touch input HUD is rendered and I cannot steer with the mouse.

image

Game parameters:

this.setFont = undefined;
this.guiFont = undefined;
this.maxSpeed = 2;
this.maxAccel = 0.003;
this.missileCoolDownTime = 10000;
this.mouseSensitivty = 0.0003;
this.timeToLockMissile = 2000;
this.playerTurnRate = 0.04;
this.AIPerceptionCone = -0.5;
this.AIFollowDistance = -10;
this.AIPredictionRange = 2;
this.AITurnRate = 0.04;
this.AIInputRandomness = 0;
this.AIFirePrecision = 0.98;
this.AIFriendlyFirePrecision = 0.97;
this.AIEvadeTime = 3000;
this.AIMinimumSpeed = 1;
this.AIMaximumSpeed = 5;
this.AIFireRange = 550;
this.AIBreakDistance = 30;
this.AIBurstDistance = 500;
this.AIMaxTargets = 4;
this.AIDebugLabels = false;
this.AIImmelmannProbability = 0.2;
this.ImmelmannDuration = 1000;
this.allyCount = 10;
this.enemyCount = 10;
this.recordFrameCount = 2000;
this.allowSplitScreen = false;
this.recorderActive = true;
this.enableAudio = true;
this.starfieldHeavyShader = false;

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.