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.
7 years ago
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! :)
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.
7 years ago
Have a look at
lib/plugins/twopointfive/world/wall-map.js - that'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's used 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.
Thanks for the help, I will give it a shot!
Page 1 of 1