
В Пещеру Демона теперь можно играть на Андроиде. Расчехляй свой телефон!
Game scene from Demon’s Cave for Android

Demon Cave on Android now has a game stage. Next stop music, sounds, point system, animation.
You can check the changes in the repository:
https://github.com/demensdeum/DemonsCaveAndroid
Demon’s Cave Development Report for Android
Basic game scene objects, coins, stalactites have been added.
The latest changes can be obtained from the 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 a Game for Android. Spinning the Earth. Rajawali
‘In the beginning God created the heaven and the earth.‘
This is the second video in which we make a game for Android. Let’s spin the earth!
Please write to me if you have any questions or if you would like to add something to this course.
Video based on the article Rajawali Basic Setup & Sphere (Maven):
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 dkmssudo apt-get install linux-headers-$(uname -r)
2. Add Rajawali library to the project
Filebuild.gradle (Project: Demon’s Cave)
Add mavenCentral() < /span>to the buildscript/repositories
sectionAdd maven { url< /span> “https://oss.sonatype.org/content/repositories/snapshots/” } to the allprojects/repositories section
File build.gradle (Module: app)
Add compile ‘org.rajawali3d:rajawali:1.0.306-SNAPSHOT@aar& #8217; to the dependencies
section
3. Create a Renderer class, initialize the scene, add a sphere and spin!
Source code of class Renderer.java:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/Renderer.java
4. Add Renderer class to MainActivity
Source code of MainActivity.java:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/MainActivity.java
Ground texture:
http://www.clintonmedbery.com/wp-content/uploads/2015/04/earthtruecolor_nasa_big.jpg
Demon’s Cave Review
While the domestic press is catching up, the West is already writing reviews. The website App Games has released a review of the game Demon’s Cave
From animations to the game world and everything in between, Demon’s Cave does show quality and a great promise. It’s a pleasant and fun title with a lot of cool things to offer. It’s one of the best casual arcade games that you can try out so you should check it out, it really deserves your time!
Link to article: http://appgames.net/game/demons-cave
Tutorial: Making a Game for Android
‘Learning is light, but ignorance is darkness‘
Demon’s Cave is coming to Android soon.
I started recording a course on porting a game to Android because there are a lot of people who are really interested in the development process.
Please write to me if you have any questions or if you would like to add something to this course.
You can also add subtitles for other languages: http://www.youtube.com/timedtext_video?ref=share&v=rx7NYkAJB2I
Plan, commands, links:
1. Installing VirtualBox https://www.virtualbox.org/wiki/Downloads
2. Installing Xubuntu http://xubuntu.org/getxubuntu/
3. Installing Oracle Java 7
sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java7-installer
4. Installing 32-bit libraries
sudo apt-get install lib32ncurses5 lib32stdc++6 zlib1g:i386
5. Installing Chromium
sudo apt-get install chromium-browser
6. Installing Android Studio http://developer.android.com/sdk/index.html< /p>
Is it possible?
Question: “Can I copy the game Demon’s Cave to my website, or blog, or my page between the cute kittens and Coelho/Statham quotes?”
No, I forbid it personally. Just kidding, not personally. Just copy and paste the HTML code:
<iframe width="640" height="384" src= "https://mocha2005.mochahost.com/~demens/games/demonsCave/"></iframe>
Link to jsfiddle with example: https://jsfiddle.net/ovL04dqL/3/< /p>
Question: “I want to put Demon’s Cave on my ad page, is that possible?”
Yes, you can do anything.
Question: “I want to sell the game Demon’s Cave, is that possible?”
You can do whatever you want with the fsagamelibrary.js game engine, just leave a link to demensdeum.com
But graphics and music must either be purchased (the paid ones), or used by yourself. More detailed list of resources here.
If you don’t leave a link to the main site, then the demon will come into your dreams.
Question: “I want to make a mod of the game Demon’s Cave, or even make it in 3D on Unity, can I send you the link later?”
Of course. Throw vk.
Page with the indication of the authors of the resources, listing of licenses demensdeum.com/games/demonsCave/info.html