Tag Archives: HTML5
Embedding HTML5 output of Cerberus X to WordPress pages
The first thing you need is Code Embed plugin. If your HTML5 output code loads files, something must be changed in the JavaScript-code. Find the following piece of code: BBHtml5Game.prototype.PathToUrl=function( path ){ if( path.indexOf( “cerberus:” )!=0 ){ return path; }else if( path.indexOf( “cerberus://data/” )==0 ) { return “data/”+path.slice( 16 ); } return “”; } TheContinue reading “Embedding HTML5 output of Cerberus X to WordPress pages”
3D Stars With Controlled Center Point
Just little changes to old post on 3D stars with Mojo2… Now on the projection from 3D space to 2D space (screen), the center point can be controlled, just touch the screen or keep the left mouse button pushed down to control the stars… The code should compile as such to any target on MonkeyContinue reading “3D Stars With Controlled Center Point”
3D Stars with Mojo2
As an example of using Mojo2 module in Monkey X, I wrote the 3D stars using Mojo2 module in Monkey X. In earlier post the stars were made with the old Mojo. Mojo2 has lots of nice features to experiment with. %https://blue-bit-entertainment.com/3DstarsMojo2/MonkeyGame.html% Below is the source code in full: Import mojo2 Function Main:Int() New MyApp ReturnContinue reading “3D Stars with Mojo2”
HTML5 3D Stars
The 3D stars are again embedded in this blog post and source code with old mojo is simplified. The code is written in Monkey X Pro, which is nowadays available on itch.io. Here’s the code: Import mojo Function Main:Int() New MyApp Return 0 End Class MyApp Extends App Const STARS:Int = 200 Field devWidth:Float, devHeight:Float,Continue reading “HTML5 3D Stars”