Tutorials for Cerberus X
Hexagonal cell drawing
  • 81
  • 1
Hi, Here is code which will draw hexagonal cells and report which cell the mouse cursor is hovering over. (ported from some FreeBasic code) Import mojo Class cHex ' Class for one hexagonal cell ' pre-calc these recurring values Field cos000:float = Cos(0) Field...
Lense effect
  • 85
  • 4
A lense effect using mojo2. Import mojo2 Function Main:Int() New Game() End Function Class Point Field x:Float Field y:Float Method New(tX:Float,tY:Float) x = tX y = tY End End Class Game Extends App Field myimage:Image Field canvas:Canvas...
Added blend mode
  • 253
  • 5
Hi I added a subtractive blend mode for anyone who wants it, just replace the graphics.cxs file inside your Cerberus folder with this one. Here's an example how a shape would be painted using normal paint mode and the new subtractive mode. Normal drawing versus subtractive

[EXAMPLE] 2D camera in mojo2

  • 171
  • 0
Hi. Currently I am having a big fight trying to implement a 2D camera with mojo2 and I did come across this article explaining how to implement a camera in Monkey X and mojo: How to create a 2D Camera Effect in Monkey X The author in the article also share links to third party sites where he...
ST-Animation a.k.a. UV-Animation (mojo2)
  • 183
  • 0
This snippet demonstrates the basics of texture coordinate animation. Strict ' ST-Animation / UV-Animation ' (in Cerberus X, texture coordinates are called ST) Import mojo2 Function Main:Int() New MyApp Return 0 End Class MyApp Extends App Field canvas:Canvas ' material...
The Book of Shaders Port (mojo2)
  • 121
  • 0
I try to port The Book of Shaders examples to Cerberus X using the Mojo 2, Shader Effect example code as starting point. It's going well so far... This is the gradient example... The Book of Shaders code My Port Just save the shader code in the data folder of your project and name it...
2D in 3D rendering (mojo2)
  • 268
  • 1
Hi folks, as @SimonVD asked about if 2D in 3D is possible in CX, I gave it a try in mojo2. With the help of some math stuff borrowed from miniB3D and Vortex2, you can set the ModelMatrix in a way that you can use the 3 dimensions. Of course you need to tell mojo2 render in a perspective view...

Cerberus X - Tutorial about How to Create a Double Dragon Styled Fighting Game (for Beginners)

  • 730
  • 2
Hello everyone, I created a tutorial about how to create a Double Dragon styled fighting game. I made this tutorial specifically to get beginners started in making games or just get beginners started in programming in general. I did this tutorial from a beginner's perspective. I tried to do...

Left, Mid & Right functions for Cerberus X

  • 435
  • 0
When I rewrote my Easy Math Challenge in Cerberus X, I also implemented these easy String functions. There're easy to implement, but if you haven't implemented them, you might think in your project alternative ways to implement something, which in some cases might be more complicated. Any way...
Tutorial Morphing
  • 682
  • 1
Hi I decided to sit down and write a tutorial on morphing. This is based on code I did in AmosPro around 1991 (and ported to various platforms including BlitzBasic2 and BlitxMax) http://devdevandmoredev.blogspot.com/2019/08/morph-101-intro-to-morphing.html?m=1 Comments welcome Rich

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