Tutorials

Tutorials for Cerberus X

Matrix useful for physics, collision and loads more

  • 36
  • 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...
Example of HTML5 target in Mojo2
  • 34
  • 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() =...
Cerberus-X Cheat sheet for newcomers
  • 77
  • 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 :)
Simple retro sinus scroller
  • 106
  • 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...

Tutorial Hue Rotation

  • 151
  • 0
So for next tutorial i give the code of the huerotator, please try to implement this. /* Simple hue rotation filter based on article: http://beesbuzz.biz/code/hsv_color_transforms.php Author Daniil from shadertoy GTR 2020 for CX */ uniform sampler2D Texture; uniform float timer; uniform...
Space Harrier Floor Shader
  • 135
  • 4
Hello, Another nice shader converted for CX; You know Space-harrier , this shader simulate floor of space harrier game; I am working on multiple project based on shaders, if you want special shader conversion let me know please. Online demo...
Wobble Shader Demo
  • 77
  • 0
Hello Again Here is another shader demo called wobble, this effect is nice to make flag etc. It use texture. I used Cerberus logo in Demo without permission .. sorry ! I can remove it if needed. Live demo: http://gigatron3k.free.fr/html5/CX/wobble/CerberusGame.html wobble.cxs file code...
8 Layer Starfield
  • 100
  • 1
Hello this time i started coding with CX and ported one of my starfield code from android here; Demo : http://gigatron3k.free.fr/html5/CX/starfield/CerberusGame.html regards and it's late now :)

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