Main » 2016 » May » 04
Create simple game engine project Create a new Android Studio project and call it Simple Game Engine. Create a blank Activity and call it SimpleGameEngine. Add the bob.png file (below) to the drawable folder as we did in the Drawing graphics demo. Here is a little bit of pseudo code so we can appreciate the structure of the real code we will write soon. The real code is quite long and at first glance might appear complex although it really isn’t. This pseudo code will clarify things a little and enable us to present and discuss the code in manageable chunks. You can also skip to the end of the article and see the code in its entirety for explicit clarification and context. You might like to simply copy and paste the full completed code into your project and get the simple game engine working; then come back and read all about it. Pseudo code not real code… SimpleGameEngine class{ onCreate method{ Initialize new GameView object Set new GameView object as the view }// End onC ... Read more »
Views: 298 | Added by: nicvic | Date: 05.04.2016 | Comments (0)