Jump to content

very basic example game


ethr
 Share

Recommended Posts

Hi guys,

 

I had a little play around with bablyon.js a few weeks ago just to see what I could do. Here's a VERY basic 'game' that I created.

 

http://www.ethr.biz/bablyonjs/jetrider/

 

Basic controls are:

 - move ship with cursor keys

 - shoot with space bar

 

Objective:

 - shoot the spheres

 

The code covers some basic collision detection, particle effects, model loading, scene management and basic animation.

I used howler.js library for managing the audio and there's a basic slider for controlling the volume.

 

 

Source code here:

 

https://github.com/ethr/jetrider

 

I'll try to tidy up the source code some time so its a little easier to read :)  - this was just a project for me to play around with BabylonJS

 

I love the simplicity of loading 3d models, only a problem I found though was the availability of free 3d models that worked with the exporter. Some just didn't seem to load in the game atall, others game in with messed up coordinate systems and many objects were actually multiple meshes. I wanted to had a missile mesh but settled for a simple sphere as the projectile in the end.

 

 

Anyway hope someone finds the example code useful, I need to find some time to get on with another game....

 

 

 

 

Link to comment
Share on other sites

To export complex objects, you should think about importing them into blender and use our blender exporter

This is what I tried. Alot of the models I tried were in 3DS or OBJ format, imported this into blender and then exported the scene.

 

I could be doing something wrong so I'll keep playing around and testing things out :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...