Giter Site home page Giter Site logo

edelweiss's Introduction

Edelweiss

Open source webGL game made with three.js

Play online here : http://edelweiss.32x.io

Screenshot of Edelweiss

How it works

Custom physics engine
The game works with a simplistic physics engine based on axis-aligned bounding box collision detection. All the physic objects in this game are either boxes or axis-aligned square tiles. Find the code here.

Custom map editor
The information about the physical map is contained in an JSON called sceneGraph that the game loads on statup. I created this file using a custom map editor, that I coding for the sole purpose of making this game. Find the code here in a separate repository.

Manual camera positioning
Moving the camera to support a 3D platformer game is a challenge, that I had to face on my own since I used a custom physics engine. Find the code here.

Automatic optimization
The game is playable from mid-range mobile to high-range desktop. To support this adaptability, the game adapt itself to the device capability at runtime. Find the code here

Runtime assets loading
This game is light, but I still wanted to optimize loading time by loading map tiles at runtime. Find the code here

More open source games

Check out my previous game The Temple of Doom

Follow me on Github or Itch.io for more upcoming games

Contributing

If you fancy extending the game, I'm up to merge your work, as I already did with Makc multiplayer and debug mods.

If you feel more like correcting a few bugs here and there, here is a wishlist :

  • fix hero climb-down-right animation
  • if the player dies, got the first edelweiss, but didn't save their progress yet, respawn them in front of the first cave instead of the starting point of the game
  • add movement sounds (climbing, footstep...)
  • add powerup sounds
  • add tweening for the reduction of the stamina bar
  • add dust animation when player fall because of a fall-tile
  • fix issue of joystick position with Galaxy S9+ (chrome for android)

Big thanks to Makc for contributing !

He made :

  • The multiplayer feature
  • The debug and live-map-editing features, that you can access by typing these commands into your browser's console while playing the game :
atlas.debug() // show the physical assets used for collision while you play, and UI for editing the map
atlas.player.showHelpers() // show a helper for the player's direction
controler.permissions.airborne // cheat code for flying freely with the glider

You can find his fork here : https://github.com/makc/Edelweiss

edelweiss's People

Contributors

felixmariotto avatar makc avatar bartsonb 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.