Sorry for Runglish.
One day I got email, with something like this text:
“Hey! we are going to start retro game jam – bitbitjam3!!! You need to create game for some retro platform (8-16 bit)!!!”
Wow! It was my childhood dream – to create game for my favourite 16-bit console – Sega Genesis.
So I tried to create game for #bitbitjam3 game-jam, and I created something:
This thing called – “Red Queen Rampage”. Story of this game “Red Queen has been captured inside deadly maze, she is going to kill everything on her way to freedom.”
You can walk, you can attack green thing with red eyes, you can open treasure chest, and you can move from scene to scene.
This is actually hello-world level project in sega genesis world. I used SGDK toolset – GCC-based Motorola 68K compiler, and sega genesis specific hardware libraries.
Now I understood that it was really tough business to make games 20-30 years ago. For example – graphics (tiles) must be splitted into 8×8 pixels pieces, and then drawed together one-by-one. Every tiles must have its own pallete, only 16 color available! Damn its very easy to be gamedev at present time.
And like in nowadays – you need to create game engine, sound engine, graphics engine for game.
You can look at playable prototype of Red Queen Rampage by using Sega Genesis emulator with this ROM:
http://demensdeum.com/games/redQueenRampageSegaGenesis/RedQueenRampage.zip
If you interested in source code:
http://demensdeum.com/games/redQueenRampageSegaGenesis/RedQueenRampageSource.zip
Demon’s Cave in Google Play
Demon’s Cave Android Ingame Scene
Demon’s Cave for Android OS now have ingame scene with moving stalictites, coins and Werj! Next stop is animation, music, sounds, score system.
Check out new changes in github repository:
https://github.com/demensdeum/DemonsCaveAndroid
Demon’s Cave Android Dev Blog Update
Basic game logic has been added, characters and scene environment implemented.
Check out new changes in github repository:
https://github.com/demensdeum/DemonsCaveAndroid
Tutorial: Demon’s Cave Android At GitHub
Happy victory day!
Today Demon’s Cave game code for Android has been released at GitHub:
https://github.com/demensdeum/DemonsCaveAndroid
I have no time right now for record YouTube tutorial, so here is short text version.
Now you can just download Demon’s Cave code and compile on your machine.
We are going to show Demens Deum Logo on top of Rajawali engine (OpenGL-ES 2.0)
1. Download Demens Deum Logo png file
http://demensdeum.com/games/demonsCave/data/graphics/demensdeumLogo.png
2. Install Gimp, and flip image by horizontal
sudo apt-get install gimp
3. Add fullscreen activity settings
Add this code to onCreate method of MainActivity.java class
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE);
Add/replace those settings to res/values/styles.xml
<resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimaryitem> <item name="colorPrimaryDark">@color/colorPrimaryDarkitem> <item name="colorAccent">@color/colorAccentitem> <item name="android:windowNoTitle">trueitem> <item name="android:windowActionBar">falseitem> <item name="android:windowFullscreen">trueitem> <item name="android:windowContentOverlay">@nullitem> <style> <resources>
4. Initialize Camera2D
Add private value to Renderer.class
import org.rajawali3d.cameras.Camera2D;
Add new method to initialize Camera2d
protected void initializeCamera() { gameCamera = new Camera2D(); getCurrentScene().addCamera(gameCamera); getCurrentScene().switchCamera(gameCamera); }
5. Add Plane primitive with demensdeum_logo.png image to Scene
Add new private value Plane to Renderer.java class
private Plane plane;
Add new method to initialize Plane
protected void initializePlane() { Material material = new Material(); material.enableLighting(false); material.setDiffuseMethod(new DiffuseMethod.Lambert()); material.setColor(0); Texture earthTexture = new Texture("Earth", R.drawable.demensdeum_logo); try{ material.addTexture(earthTexture); } catch (ATexture.TextureException error){ Log.d("DEBUG", "TEXTURE ERROR"); } plane = new Plane(1, 1, 2, 2); plane.setPosition(0,0,0); plane.setMaterial(material); }
Add changes to scene initialization code:
@Override protected void initScene() { initializeCamera(); initializePlane(); getCurrentScene().addChild(plane); getCurrentCamera().setZ(200.2f); }
6. Add demensdeum_logo.png into res/drawable directory
7. Compile and run on your android device!
You will see Demens Deum company logo on your android device. If it’s flipped by horizontal, just flip it in Gimp first.
Or (for advanced users) try to use last Rajawali engine, this is known issue.
If you have questions, just ask me.
Keep learning!
Tutorial: Making Android Game. Setup Rajawali – Show Earth
‘And God saw everything that he had made, and behold, it was very good. And there was evening and there was morning, the sixth day.‘
Second video about making game for Android. In this video we are going to rotate Earth!
Contact me if you have questions, or you want to add something interesting to video course.
This is Rajawali Basic Setup & Sphere (Maven) video tutorial for russian viewers, but also it have english subtitles. Original article link:
http://www.clintonmedbery.com/basic-rajawali3d-tutorial-for-android/
Rajawali Engine: https://github.com/Rajawali/Rajawali
Plan, commands, links:
1. Install VirtualBox Guest Additions
sudo apt-get install dkms sudo apt-get install linux-headers-$(uname -r)
2. Add Rajawali library to project
File build.gradle (Project: Demon’s Cave)
Add mavenCentral() into buildscript/repositories section
Add maven { url “https://oss.sonatype.org/content/repositories/snapshots/” } into allprojects/repositories section
File build.gradle (Module: app)
Add compile ‘org.rajawali3d:rajawali:1.0.306-SNAPSHOT@aar’ into dependencies section
3. Create Renderer class, setup scene, add sphere and rotate it!
Renderer.java source code:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/Renderer.java
4. Integrate Renderer into MainActivity
MainActivity.java source code:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/MainActivity.java
Earth texture:
http://www.clintonmedbery.com/wp-content/uploads/2015/04/earthtruecolor_nasa_big.jpg
Demon’s Cave Review
Wohoo! Demon’s Cave mini-game has been reviewed at App Games
Demon’s Cave is a free little game which requires you to fly through a cave and avoid all the enemies that come your way. The entire experience is very simple and that’s what you should get in the case of a casual game!
What I like the most in the case of this game is the fact that it does deliver some very interesting controls and that’s what really pushes the experience forward as you go along. The game is filled with many enemies and that’s why you need to use all your wits and power in order to eliminate them.
Tutorial: Making Android Game
‘To Learn, to Learn and to Learn Once Again‘
Game Demon’s Cave is going to be released for Android.
I started making video course about porting Demon’s Cave to Android, it has English subtitles.
Contact me if you have questions, or you want to add something interesting to video course.
Also you can make subtitles for your language here: http://www.youtube.com/timedtext_video?ref=share&v=rx7NYkAJB2I
Plan, commands, links:
1. Install VirtualBox https://www.virtualbox.org/wiki/Downloads
2. Install Xubuntu http://xubuntu.org/getxubuntu/
3. Install Oracle Java 7
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
4. Install 32bit libraries
sudo apt-get install lib32ncurses5 lib32stdc++6 zlib1g:i386
5. Install Chromium
sudo apt-get install chromium-browser
6. Install Android Studio http://developer.android.com/sdk/index.html