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
Soft & Games
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
Basic game logic has been added, characters and scene environment implemented.
Check out new changes in github repository:
https://github.com/demensdeum/DemonsCaveAndroid
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!
‘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
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.
‘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
Question: “I want to share your game Demon’s Cave. What to do?”
Okay, you just need to copy-paste this code into your html:
<iframe width="640" height="384" src="https://mocha2005.mochahost.com/~demens/games/demonsCave/"> </iframe>
Here is jsfiddle link with example: https://jsfiddle.net/ovL04dqL/3/
Question: “I want to put advertisment on top of your Demon’s Cave game, is that ok?”
Yes that’s ok, please provide link to demensdeum.com
Question: “I want to sell Demon’s Cave game, is that ok?”
You need to change graphics and music first, because it’s licensed under free for end-user license, please check Credits Page.
You can use fsagamelibrary.js as you wish, provide link to demensdeum.com
If you do not give a link to the main site, the demon will come in to your dreams :^)
Question: “I want to modify your game, can I share it with you?”
Of Course! Send link to my twitter, facebook, or email.
Demon’s Cave game credits page is available here: demensdeum.com/games/demonsCave/info.html
Demens Deum – team of indie developers, we create new and interesting things, whether it be games, software, music, comics. In the world there are very few teams are ready to experiment with ideas, technologies, feelings. Our manifesto – down with the usual scope of genres, down gray stamped hits – strike with experiment original universes, exciting stories to shock boring people and excite the heart of thirst!