Giter Club home page Giter Club logo

3dengine's Introduction

3D Engine - RPG Game

My first attempt at a 3D engine using native JavaScript and WebGL.

screenshot

About

I've made this in order to learn WebGL. If I cannot implement it, I don't understand it, right?! I've created this following the videos from ThinMatrix on YouTube. You should check it out

Live version here

How to run

The whole thing runs in the browser, but I use fetch to load objects, so you'll have to run it on a server.

In PHP you can just CD into the 3Dengine folder and type the bellow command to start a server at http://127.0.0.1:8080 and navigate to that address:

PHP

php -S 127.0.0.1:8080

Python 2

python -m SimpleHTTPServer 8080

Python 3

python3 -m http.server 8080

How to play

Click and hold the right button of the mouse to rotate te camera.
Middle wheel zoom in and out.
W, a, s, d move the pirate girl.
Space bar jumps.

License

As I Open Source this project you can make use of the code and the code alone. None of the 3D models or textures are mine, so I cannot give you permission for that. I have used them here with the purpose of learning along, no money was made with this project. I also don't know the creators of those files, that's why I don't link them here. If you are or know any of the creators, please let me know and I'll credit them here.

3dengine's People

Contributors

victorqribeiro avatar

Watchers

 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.