Tutorials

Tutorials for Cerberus X
Shader example, water effect
  • 141
  • 1
' this ' https://www.shadertoy.com/view/ldXGz7 ' Translate to Cerberus glsl dialect (shader.glsl) ' uniform sampler2D ColorTexture; ' uniform float EffectLevel; // "time of animation" ' ' void shader(){ ' ' // Get coordinate ' vec2 uv=(b3d_ClipPosition.st/b3d_ClipPosition.w)*0.5+0.5; ' '...
Continue…
Waveform generator
  • 80
  • 0
Here's a simple example how to generate waves using Sin. Touch the screen sideways or use a mouse to visually generate different frequencies.
Continue…

Take HTML5 Arguments

  • 125
  • 0
Here's an example how to take HTML5 arguments when compiling for the HTML5 platform. Compile and add anything to the url e.g. #test=1&sometimportantparameter=thatneedstogetcommunicated! Strict Import mojo2 #If TARGET<>"html5" Import os #Else Extern Global _hash:String =...
Continue…

Tutorial How to compile Cerberus for yourself on macOS

  • 130
  • 0
macOS guide how to compile Cerberus from GitHub ------------------------------------------------------------- First download and install Qt 1) Download Qt 5.9.2 from https://download.qt.io/official_releases/online_installers/ (qt-unified-mac-x64-3.2.3-online) 2) Select "main Qt Desktop...
Continue…
Mojo2-version of the tile example by Pakz
  • 273
  • 3
Here's a Mojo2 version of the tiles and springs example, using simple sprite graphics, instead of a rectangle as in the original. I included a simple right-animation sequence as an example, which makes it a good startingpoint. Graphics https://opengameart.org/content/boundworlds-npc-girl...
Continue…

Matrix useful for physics, collision and loads more

  • 201
  • 0
Import mojo2 #MOJO_AUTO_SUSPEND_ENABLED=False Function Main() New MyApp End Function Class MyApp Extends App Field myMatrix : Matrix Field myPoint : Point Field myRect : Rectangle Field origin : Point Field debugOn : Bool = False Field canvas : Canvas Method...
Continue…
Example of HTML5 target in Mojo2
  • 144
  • 0
Here's a simple example how to use Mojo2 and raw HTML to do something in HTML5 target. Import mojo2 #MOJO_AUTO_SUSPEND_ENABLED=False #HTML5_CANVAS_WIDTH=1440 ' Set your wanted window-size here #HTML5_CANVAS_HEIGHT=900 #If TARGET="html5" Extern Function ReloadApp:Void() =...
Continue…
Cerberus-X Cheat sheet for newcomers
  • 235
  • 4
I just wanna give something back to the community and all the newcomers. Here's a cheat sheet with the most commonly used commands. We'll see where this goes but if anyone finds it useful, be my guest :)
Continue…
Simple retro sinus scroller
  • 220
  • 0
A little example showing off some retro coding using strings and mojo2. Import mojo2 Function Main() New MyApp End Class MyApp Extends App Field canvas:Canvas Field A:String = "Sine waves ARE AMAZING AM I RIGHT?!" Field B:Float Method OnCreate() canvas=New...
Continue…

About Cerberus X

Welcome to Cerberus X, a cross-platform development toolset which serves 2D game development at its core. Cerberus X is a fork of the Monkey X programming language which was originally developed by Mark Sibly. The goal is to enhance and develop it further!

Video

Top Bottom