Some of you may have seen a video on YouTube a while back of a Mode 7 example using Super Mario Kart sprites.

I have taken that code and boiled it down into a simple getting started project. As with all things Super Cookie Games, this is based on libGDX.

You can access the getting started project here



https://bitbucket.org/MonsterOfCookie/mode-7-example/overview

You can also see the example in HTML format here - Performance isn’t that great.

http://www.supercookie.co.uk/mode7/

I am not going to dive into the code too much on this blog, as there isn’t actually that much there. It will be far better if you check out the code yourself and have a tinker. The Mode7 transform is just a few lines of code and essentially I have found you need to think about the game mechanics 2D terms, hence the mini-map with the black dot.

You can run the desktop version from the command line with

gradlew desktop:run

You can use the arrow keys to control the camera.

One final thing before I go, this is based of a project I found on GitHub

https://github.com/catmanjan/mode-7-gdx

Go check it out!