The Space Pirates game is a demo made to celebrate the Babylon.js 5.0 Release.

Overview

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.

Comments
  • Can't fire cannons in Firefox

    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.

    opened by rpaladin 6
  • Clickable menu buttons respond to right & middle mouse buttons

    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.

    opened by rpaladin 3
  • Fixed an issue with Firefox where mouse button input was being ignored

    Fixed an issue with Firefox where mouse button input was being ignored

    Related Issue: https://github.com/BabylonJS/SpacePirates/issues/2

    This PR contains a fix for an issue where the mouse buttons weren't being recognized on Firefox. The fix involved setting all event listeners to use pointermove/down/up instead of mousemove/down/up (except for Safari).

    Successfully tested on Firefox, Chrome, Edge, and Safari.

    opened by PolygonalSun 0
  • Add link to play demo

    Add link to play demo

    For some reason, the link to play the demo was never advertised in the repository and only in the src/build files, which is perfectly understandable due to the Babylon.js 5.0 deadlines. This is a minor PR meant to respectfully resolve that oversight.

    opened by rpaladin 0
  • Cannot steer with mouse on laptop with touchscreen

    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;

    opened by tsznober 2
  • Explosions & audio continue playing after player death

    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).

    opened by rpaladin 0
Owner
Babylon.js
Babylon.js
GitHub Action to create a release PR using cargo-release

Action: (Cargo) release-pr A GitHub Action for creating "Release PRs" for Cargo projects. Purpose This action uses cargo-release to perform a release

null 18 Nov 16, 2022
Space Travelers' Hub - a web application that facilitates booking rockets and join selected space missions

This is a web application that facilitates booking rockets and join selected space missions. It is built for a company that offers both commercial and scientific space travel services. The application also works with real live data from the SpaceX API.

Mong'are 6 Mar 29, 2022
"Space-Travelers-Hub" is a website that allows users to book rockets and join selected space missions by using data from the SpaceX API.

Space-Travelers-Hub This project was bootstrapped with Create React App. Description "Space-Travelers-Hub" is a website that allows users to book rock

Tresor Sawasawa 4 Mar 13, 2022
A web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions.

Space Travelers A web application for a company that provides commercial and scientific space travel services. The application will allow users to boo

Hector Torres 2 Apr 6, 2022
Welcome to Space Traveler's HUB, this web app allows the user to take a fictional tour across the space.

Welcome to Space Traveler's HUB, this web app allows the user to take a fictional tour across the space. The user can choose a rocket from our catalog interface, and reserve it. Also, the user can see recent special missions and join them. Finally, the user will be able to keep track of all your rockets and mission they are subscribed to. Build with React, Redux, React-router, and Railwindcss.

Mihreteab Misganaw 3 Jan 27, 2022
This web application provides commercial and scientific space travel services. The application allows users to book rockets and join selected space missions.

space-hub About Project "Space Traveler's Hub" is A web application that provides commercial and scientific space travelling services, We are working

Nicholas Emmanuel 7 Nov 2, 2022
This a web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets, dragons and join selected space missions.

Space Travelers' Hub In this project, we have worked with the real live data from the SpaceX API. Our task was to build a web application for a compan

Apuabi Titilope 4 Oct 31, 2022
In this project we built a web application that consumes an SpaceX API. It provides commercial and scientific space travel services that allows users to book rockets and join selected space missions.

Space Travelers' Hub In this project we built a web application that consumes an SpaceX API. It provides commercial and scientific space travel servic

Diego Yon 7 Sep 30, 2022
This web application provides commercial and scientific space travel services. The application allows users to book rockets and join selected space missions.

Space Traveler's Hub This web application provides commercial and scientific space travel services. The application allows users to book rockets and j

Michael Mesfin 6 Oct 4, 2022
Nftix-demo-ui - Demo UI used in my NFT course on Egghead.io

NFTix Demo UI This repository contains the UI used for my Egghead course on building a NFT ticketing system ?? ?? If you're watching the videos, use t

Ryan Harris 10 Dec 17, 2022
That's a remake of the classic game Space Invaders, originally released in 1978.

Space Invaders Preview: Project: This is a remake of the classic game Space Invaders, originally release in 1978 to Arcade and later released to other

Marlon James 5 Nov 17, 2022
Semantic Release plugin to create and publish NuGet packages.

semantic-release-nuget semantic-release plugin to create and publish a NuGet package. Step Description verifyConditions Verify the presence of the NUG

DroidSolutions 6 Jan 2, 2023
Klecks is the official open-source release of the community-funded online painting app Kleki.

Klecks (German for "splash of color", pronounced "clex") is the official open-source release of the community-funded online painting app Kleki. Klecks

I paint, code and mess around. 74 Dec 27, 2022
The Blitz.js Recipe for installing @semantic-release/github.

semantic-release-github The Blitz.js Recipe for installing @semantic-release/github. blitz install custom-recipes/semantic-release-github -y More info

Custom Recipes 1 Apr 9, 2022
🚀 A GitHub action to publish a new release of the repository

Create a JavaScript Action using TypeScript Use this template to bootstrap the creation of a TypeScript action. ?? This template includes compilation

Clicampo 3 Nov 1, 2022
Crypto Basket - Free Blockchain Press Release

ADD YOUR CONTENT Upload all files to IPFS All non-IPFS links should be inside LINKS Sections Use markdown syntax How to add content to CryptoBasket ?

Money Mafia 14 Dec 15, 2022
Minimalistic, opinionated, and predictable release automation tool.

Release Minimalistic, opinionated, and predictable release automation tool. General idea Think Prettier but for automated releases: minimalistic, opin

Open Source: JavaScript 173 Dec 18, 2022