Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

9 years ago by hallsofvallhalla

I know this topic has been discussed and I did not want to necro an old thread but has anyone successfully added more than one wall layer or a skybox?

If you have can you share some code or at least point me in the right direction of which files the walls get built in and how to add to it? This one really is stumping me.

9 years ago by Joncom

You could try modifying the plugin to hack in some new features, but be prepared to learn some WebGL stuff...

I can't help but wonder (if you're planning to make a 3D game) if you'd be better off investing a little time learning Unity? Not sure...

By the way, nice to see you again hallsofvallhalla. I loved your browser MMO tutorials back in the day! :)

9 years ago by hallsofvallhalla

Thanks! Oh I know Unity very well. Have used it multiple times and using the WebGL plugin as we speak for an RPG. I think I was the first to tie Unity to PHP and then Nodejs. However I am not a fan of Unity. No matter what anyone says I feel it is a clunky system that has stolen the heart from the game industry.
I have been trying to modify the plugin but I cannot seem to find the place where the levels are built to add in a new one.

9 years ago by dominic

Have a look at lib/plugins/twopointfive/world/wall-map.js - that&039;s where the usual wall tiles are created. You could subclass this #tpf.WallMap (in turn a subclass of tpf.Map) and change the yOffset value that&039;s used in #tpf.Map&039;s #createTileAtPosition() method.

Then, in lib/plugins/twopointfive/game.js, in the loadLevel() function around line 58, instantiate your new map class if the layer has a certain name.

9 years ago by hallsofvallhalla

Thanks for the help, I will give it a shot!
Page 1 of 1
« first « previous next › last »