Skip to content

Javascript 3d engine to construct houses based on javid's tutorials.

License

Notifications You must be signed in to change notification settings

mfontanadev/appLittleConstructor

Repository files navigation

App "Little constructor"

App that let you create houses using basic geometrial shapes. Do not forget use camera to go inside it.

IMPORTANT: master branch is the first intent, see other brachs for upgraded versions, they are an evolution of this one.

Enjoy at

http://mfontanadev.github.io/games/deployLittleConstructor/index.html

Motivation

  • Make my own javascript version of Javidx9's 3D engine.
  • Make a virtual version of the game "casitasfrm"
Digital version example Real version example

Building a new version

The idea is merge all files in one only big .js file. To do that, you can use batch files or make your own merge. You can use merge process for you own porpouses, if you want. So, follow the next steps:

  1. Go to root dir and locate combinetype.bat (this works on Windows). Run as is, with no arguments. NOTE: if you want to set version number, please modify this line "var C_VERSION_TITLE = "Little constructor (based on JSEngine) v1.2";", this is a very simple way to identify it at running time.

  2. You must see a new file called appLittleConstructor.js.

Ok, that was easy, but let me explain some of the "my merge way" details.

  • First, to identify classes inside the fat file I use a separator made of three comment lines, this is generated automatically.

  • Second, all .obj files must be converted to .var and then added to mockedObj.js. This is achieved with a converter tool called file2var.jar (personal cooking).

Code explanation

I think I will make a tutorial. There are multiples concepts in this app, for example: 3D Engine from scratch in javascript, mini framework (a class with some utilities) for game dev, classes to interac with the 3D engine and a layer to manipulate objects acoording to house creation (it can be modified to make a city builder or whatever)

References

Contact

About

Javascript 3d engine to construct houses based on javid's tutorials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published