Code Monkey home page Code Monkey logo

cubefly's Introduction

The Flying Cube Game!

Hi!

This project is intended to help introduce you to open source! It's a javascript based 3D game built with Babylon.JS that lets you fly a Cube through a set of obstacles.

The entire project can be run by opening game/index.html in a browser. All of the 3rd party dependencies like Babylon are using a CDN so you do not need Node or a local developer environment. You can always play the current version of the game at flying-cube-game.netlify.app and if you create PR's against the project you'll be able to play your changes using a special link.

New PR's are welcome and we've created a series of Issues you can pick up to get started. We're always looking for new Greetings in the game (shown under the game title on the main menu) and you're welcome to contribute your own.


If you're new to contributing you can get started by forking this repository into your own GitHub account or clicking the edit (pencil โœ๏ธ) button next to the file you want to change. Make the changes in your own repository and test them, then submit a Pull Request and link the issue you are contributing towards.

If you would like to submit a new feature or fix a bug that isn't listed consider Submitting an Issue first so we can track the change!

If you're new to Babylon JS that's fine to! Here are some helpful links to help you get started and remember you can always test your changes in your own branch or in the Pull Request first. Babylon runs in your browser and this game should work on your Phone, Tablet or PC - you can make and test your changes from any of those devices! If something doesn't work you can enter the developer mode of your browser (F12 on Edge or Chrome) and explore the errors in the console. This developer mode also lets you insert breakpoints if you want to debug further.

  • The Babylon.JS Playground will let you explore different community samples to learn how Babylon works!
  • The Babylon.JS API has documentation that can help you understand the API.

We've also provided a file that should support launching from VS Code that will allow you to integrate your debugging experience there as well as a devcontainer you can use to develop in if you choose with some recommended extensions pre-installed.

This project is intended as a sandbox for you to learn about GitHub and contributing to Open Source. We're accepting most changes in support of that!

Aknowledgements

All the code in this repo was written by Sam Wronski.

cubefly's People

Contributors

dulari-bhushan avatar

Watchers

 avatar

cubefly's Issues

Support Player Scoring

Add the ability to score in the game. The hud file already supports displaying the score but there isn't any way to actually score anything yet.

Let's find a way to earn points and track that!

Some ideas:

  • Score points the longer you are able to play.
  • Score points when an obstacle is past the player (or created)
  • Add coins that can be picked up to earn points
  • Something else?

Add High Score View

Add some way to track the High Score over a session that keeps track of how high a player has scored in the hud file and displays the maximum score that anyone has achieved during that play.

Need a pause between hitting an object and being able to restart

Not sure if this is a bug report or a feature request.

To Reproduce

  1. Play the game, tapping space to stay flying
  2. Collide with an obstacle just as you tap space to fly
  3. The tapping of space just after the game ends quickly restarts the game, not giving you time to realize you hit an object

Expected behavior
The game should obviously end and give you time to realize before you restart

Add more greetings

There are a number of greetings in the Constants file. Lets add a few more to introduce some extra variety to the game.

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.