npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

three-game-engine

v0.7.1

Published

Simple light-weight game engine using three.js, three-mesh-ui and rapier

Downloads

28

Readme

NPM Version MIT License Stargazers Forks Contributors NPM Downloads

About The Project

This library simply ties together several well known, very capable javascript libraries resulting in a powerful yet simple game engine. These dependencies are minimal and fully open-source.

Screenshot

Although a web-first game engine, you can very easily package and distribute apps/games using this as desktop apps or mobile using electron, cordova or other libraries (examples of how to do this are included in the examples/ folder).

Why Use this Engine?

This engine is open source, light weight, very readable (seriously check out the source code :) ), it's totally free and allows you to use tools and techniques that web developers are familiar with like javascript/typescript/webpack/json files/etc. Furthermore its very actively maintained and gaining momentum. It's great for rapid prototyping, and developers familiar with three.js and web tools will transition into this quickly.

Why not just use Three.js?

  • ThreeJS is designed to be a graphics engine, its stops short of providing all the things games need:
    • Asset management
    • Input aggregation and abstraction
    • User interfaces
    • Physics
    • Other utilities (eg. Character Controllers, A.I. Path Finding, etc.)

Compared to the Three.js scene editor:

  • This allows you to compose and manage a game with multiple scenes
  • Allows you to generalize GameObjects into types (prefabs)
  • Externalizes and allows for re-use of assets like gltfs, textures, sounds, etc.
  • Allows you to control the physics characteristics of game engines.

The Vision

  • To provide a web-first game engine, for developers that love javascript/typescript (but with support for building desktop and mobile apps)
  • to offer a 100% free engine that can be used by anyone to build personal or comercial apps/games.
  • maintain source code that is highly readable, and extendable
  • to offer VR support

Scene Editor

This game engine comes with a well-equiped scene editor that allows you to compose scenes with game objects.

Your game and scenes are described by a project folder containing .json files that can be manually edited or opened in the scene editor.

The scene editor also allows you to quickly boilerplate a new project also.

You can run the scene editor locally by cloning this repo and:

  npm install
  npm run scene_editor

OR

Use the online scene editor here

Scene Editor

Architecture

This game engine allows you to manage a Scene of GameObjects. Each GameObject controls a Group in the ThreeJS scene graph, and can optionally be associated with a Rapier RigidBody with colliders.

Screenshot

Documentation

View the MD files in the docs/ folder of this repo, or checkout the online documentation.

Desktop and Mobile Apps

In addition to using this library to build web apps that run in your browser, with third party tools like electron, cordova, etc. you can easily package and distribute your game as a desktop app or mobile app.

This repo contains complete working examples of:

  • How to use electron & electron-forge to package your game as a desktop app, see examples/electron
  • How to package your app as an android or iOS app using Apache Cordova, see examples/cordova

Contributing

Your feedback and contributions are welcome! Let's make this engine great, PRs are welcome, for large contributions or new features it is recommended to contact me in advance. All issues, PRs and feedback will be responded to - I greatly appreciate and value your contributions!

Don't forget to give the project a star! Thanks again!

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Wes Unwin - [email protected]

Project Link: https://github.com/WesUnwin/three-game-engine