Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a complete newbie when it comes to game development and I need someone to point me to the right direction.
For the sake of clarity please consider the following animation.
Basically I need to know how to emulate the above animation as an Android game but I don't know the steps necessary to do as such. My questions can be summarized as follow:
Do I need to use a Game Engine for such simple games?
Or it can be done without the use of any particular framework?
Do I need to use an animation application such as Adobe Flash?
What are the necessary steps to make this kind of game?
Using a game engine or not is a preference. It will depend on what exactly you are after. If you want to learn about the underlying concepts of rendering, collision detection, etc, then writing these yourself is perfectly acceptable, and a lot of fun. On the other hand, if you just want to get the game done without having to worry about the details then an engine is definitely the way to go.
Game engines range from very basic wrappers (which usually provides easier functions that take care of low level tasks) to highly complex abstractions in which the actual game development no longer resembles any specific platform - they also sometimes allow you to create the game once and deploy it to various platforms without any changes.
To implement a game based on that animation you might use the following:
For each non-player character create a series of consecutive "frames" which when cycled gives the illusion of movement. These can be created in any graphics application (preferably in a texture map/atlas).
For the player character, you will need an animated sequence for each "move", such as kick, punch, etc. Then play the correct sequence when the player triggers some action (ex. play the kick sequence when the player pushes a kick button).
Each character should have a bounding box (i.e. a rectangle that defines the size and position of the character). The player character should probably have a different sized box based on the type of attack (i.e. the box for the kick action would extend farther to the right than the box for the punch action.
Randomly spawn characters at the right of the screen and move them at some speed (based on type?) towards the player. During each iteration, test for collisions between the player and each non-player's bounding boxes. If a collision is found, check if the player is kicking or punching and kill the character that was hit, if the player is not attacking maybe damage him/her.
That is a very basic description of your problem and should give you enough ideas to research in order to implement a basic version :)
Some game engines you might want to look into:
Andengine
LibGDX
Unity
If you are interested in learning about making android games specifically, have a look at this book:
Beginning Android Games
There are many game engines out there that can help you can get the job done.
Here is a link for all the mobile game engines out there.
Android 2D Game Engines
Cocos2D-x
Language: C++
Orientation: 2D
Difficulty: Intermediate
Corona SDK
Language: Lua
Orientation: 2D/3D
Difficulty: Intermediate
EDGELIB
Language: C++
Orientation: 2D
Difficulty: Intermediate
GameMaker
Language: None (Graphical)
Orientation: 2D
Difficulty: Easy
GameSalad
Language: None (Graphical)
Orientation: 2D
Difficulty: Easy
HaxeFlixel
Language: Haxe
Orientation: 2D
Difficulty: Intermediate
libGDX
Language: Java
Orientation: 2D/3D
Difficulty: Intermediate
Marmalade
Language: C++
Orientation: 2D/3D
Difficulty: Intermediate
Stencyl
Language: ActionScript (optional), Objective-C (optional)
Orientation: 2D
Difficulty: Intermediate
Unity3D
Language: JavaScript (UnityScript actually), C# (Mono)
Orientation: 2D/3D
Difficulty: Intermediate
I answer in the order you asked
It is recommended to always use an engine, because they make the job easier, that's what they are for.
You can do certain animations and movements without a framework, but it actually becomes more complex with the code and logic.
Adobe Flash is useless on android. Most android devices do not run Flash without the user doing some things to get it.
The steps that I recommend are
research some engines
review some frameworks
select and engine depending on the logic of your game
Some engines are available for adventure games, puzzles, and other RPGs. Depending on your need go for one.
A few simple programs:
App Game Kit
Cocos2d for Android
Corona SDK
GameMaker
Stencyl
You can start with these.
Unity is the best engine, but the most complicated too.
I asked myself this question for about 10 years before finding a good answer, in my opinion, all gaming frameworks for android are still not quite mature or are a bit difficult to implement. I would recommend you used this. You'll be able to run your game in all devices out there (not only android). It's quite easy to learn if know the basics.
Here's a great Tutorial to get you started!
I made a game, using adobe's technology, you can check it out here.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to create a game for Android and want to try something new.
I really love python and want to use it for developing an Android game.
Game is not simple, it would be 3D RPG game. I found Kivy Crossplatform Framework and PyGame. I really liked both but I'm not sure if Python would be the right for me.
Is it easy to deploy python games on android?
Can Pygame handle 3D action game on android?
I don't think there is a python solution with strong 3d support at the moment, and certainly not with strong ready-rolled tools to make a complex 3d game easy.
Basic pygame doesn't really have 3d support - you can see this previous question for some specific answers, but essentially it's mostly a wrapper for the 2d sdl graphics library. Of course you can do pseudo-3d by managing all the 2d projection yourself (expect this to be slow though), and I think in principle you can directly call opengl and display the results (there are a few examples), but pygame doesn't offer much help to you there.
Kivy works by doing everything in opengl, and in principle does support access to the 3d opengl es api, including fully three dimensional vertex manipulation, as well as shaders etc.. For instance, one of its examples is a 3d rotating monkey head. However, in its current state the framework works almost entirely in 2D, there is no abstraction of apis like camera, lighting. It should be possible to add them with enough effort and there has been a little work on it recently, but it doesn't exist right now. You can do a youtube search for kivy 3d for some simple examples of 3d stuff in kivy. On the flip-side, kivy is quite powerful and easy to use for deploying python apps on android, so that part at least is covered.
So, neither of these provide all the tools you need for a complex 3d game, though I think kivy is closer. If anything, your best bet might be to integrate kivy with an external graphics library if possible. For instance, this video shows a kivy app using the pandas 3d game engine for a fully 3d interactive city model in a museum. Something like this might let you do what you want on android, but I really don't know (it's just conjecture), and even if it's technically possible there would be lots of complexity on the way like integrating the library with kivy and compiling it for android - if the latter is even possible.
I don't want to sound pessimistic, but I think none of this is an easy project. However, I also don't have a strong idea of what would be involved if just using java and an existing popular game engine, and I don't know a lot about the details of kivy's opengl potential. If you're interested I suggest asking at the kivy mailing list or irc channel - even if you get the same answer, you can probably get someone who can answer more confidently than me!
There is also Ignifuga, but it's only for 2D games.
I think you should go with javascript+HTML5 instead, there are so many libs for games dev.
I am completely new to game development and I have a requirement to develop a game where I need to animate players on a field . I went through few docs but still have lots of doubts.
can I achieve this using openGL ES alone. What I understand is
that openGL is part of android sdk, I don't have to do anything
extra than the actual game coding?
I saw some engines like andengine which is given as based on openGL.
What does that mean and is it better / easier to use these engines
If so is there any engine recommended for animating players on filed
?
You can use Unity 3d. unity can export and generate an apk for android
http://unity3d.com/#mobile-games
I am not very familiar with android development so maybe question will be not really about development process.
I noticed control in a bunch of different games where i can drag circle and in this way unit will move.
This is default control from some library or every developer just writes something similar?
Any examples or tutorials where i can get it?
This is called an Analogue controller and most game development frameworks like AndEngine and LibGDX offer it. Both such Engines are open source, and the code for this component in the AndEngine framework can be found here.
However, you might want to consider using the game engine itself in your app, instead of picking up bits of it and writing your own.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to start developing a 2D game for Android, but i haven't got the slightest clue where to start. For instance, how are the Angry Birds games developed? I'm guessing it's a 2D engine or something?
Can anyone shed some light on the matter? Anything is appreciated as i have zero ideas on where to look first.
I've used AndEngine extensively and I really like it BUT
2D games - unless you have something really, really complicated in-mind (lots of physics and collision detection), I'd recommend you consider creating them in plain old HTML (HTML5, to be specific).
Why?
Because HTML5 works pretty-much everywhere and there are some really decent toolkits for making more complex stuff (including level editors and basic physics stuff).
Moreover, you can convert HTML5 into Apps for both Android, iOS and other platforms - e.g. your game will work pretty much everywhere with minimal extra effort. Using tools like Cordova(phonegap) even allows you to access things like cameras and tilt sensors in Apps created from your HTML5 code (Dolphin Browser on Android even allows those apps to run in the browser!)
If you do want fancier stuff, Corona is pretty decent and easy to learn and cross-platform too - and Andengine is great if you're happy to be stuck on Android!
I recommend LIBGDX
http://libgdx.badlogicgames.com/index.html
Open source, java, cross-platform, good support for Open-GL, lot's of examples and a good community.
Yes, Angry Birds was developed on its own 2D engine. I recommend to look at these engines:
Corona SDK - really simple crossplatform(!) engine. Nice one to start.
AndEngine - havent any type of documentation, but there are a lot of references and useful extensions, including Multiplayer. Good community
Marmalade (AirPlay SDK) - really powerful, but complex engine. Many hits were made on it
Also you can use Unity3D with 2D extension. Its awesome engine.
Good luck with your beginnings ;)
Persnally, To Get started with your first 2D game, Don't straight away start with a Game Engine or 2D Frameworks.
Here's a Game that I developed with just the bitmap manipulation logic and a java thread to run the game.
Parachute Penguins
https://play.google.com/store/apps/details?id=com.positivesthinking.parachutepenguinsfree
Create a Java thread that serves as a game loop.
Make use of SurfaceView and manipulate bitmaps and with onClickListeners you can achieve a simple 2D game.
Go for Game Engine and Frameworks once you are comfortable with it.
I'd recommend AndEngine. They have a really good forum plus their example code is pretty much self explanatory.
If you're looking for a headstart, follow this tutorial.
Go for AndEngine!
Felgo (felgo.com) offers several tutorials for any skill level. It's a cross-platform 2D game engine.
There is already an open-source Angry Birds clone that was made with Felgo.
It also also comes with ready-to-use game templates for the most successful game genres like tower defense, platform games or puzzle games and provides reusable components for handling multiple display resolutions & aspect ratios, animations, particles, physics, multi-touch, gestures, pathfinding and more to prototype and build games within days API reference.
It is all well documented!
Try here, this helped me loads: http://www.javacodegeeks.com/2011/06/android-game-development-tutorials.html
I already answered similar question in another post: Android 2D game development without an engine
I posted a tutorial at http://www.youtube.com/watch?v=PnnHGCKrIzw
Assuming that you are familiar with Java, Eclipse (or similar compiler), Google API, etc. Here are the steps to build a full-blown 2D Android game:
Use drawable-nodpi for sprite images (gives sprite size consistency
across screen densities and sizes)
Use different layouts to support various screen sizes (e.g.
layout-large, layout-xlarge, etc...)
Use TranslateAnimation and ObjectAnimator to animate sprite movements across screen
Use math to figure out sprites collision (e.g. screen coordinates
and sprite location etc.)
Use handlers and condition statements to control the game events
You can test the outcome of following the above guide to developing a 2D Android game by checking out the game Yum Yum Pow available on Google Play. The free limited version is available also on Google Play and can be downloaded at:
https://play.google.com/store/apps/details?id=com.wildroid.yum.yum.pow.limited
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For my new app, I want to have a native iOS or Android UI, plus a 3d view that shows some graphs. While my initial plan to use CSS transforms in a WebView to achieve the desired 3d effect has failed because the performance was not anywhere near usable, I'm looking for another solution. Here are what I think are my options:
1. Recreate the scene in OpenGL ES
I'd recreate our graphing engine completely in OpenGL. This would certainly be possible, but probably be very hard to do for people like me who actually never did 3d programming before. Would it be possible to port OpenGL code written for iOS to Android? Or would I have to create the engine twice?
2. Use readymade 3d engine like Unity3d
I stumbled over Unity3d, Marmalade and similar tools that would probably help me create the 3d scenes more easily. However, it seems at a first glance like I would have to create the entire application in the respective authoring system. I'd to use native controls for anything except the 3d view. Is that possible in those tools? If yes, is it possible to port the 3d from iOS to Android or vice versa?
Did I ask the right questions; did I make the correct assumptions? Does anything sound wrong to you? What did I miss?
Are these all the options I have? Or is there maybe something else, a hybrid solution of some sorts?
Which option should I choose?
Edit: To clarify, I don't want to show iOS or android controls inside the 3d view, but rather around it: The user interface would be native and the 3d part would be contained inside one view.
Pretty complex one ;-)
(1) OpenGL vs. engine:
I think it would be possible to write the major part of the OpenGL code in a way that it is portable for example in C++ using Objective-C++ on iOS and NDK on Android (just an idea, never used NDK). Now it depends on the graphical part where to go. If you say graphs, do you mean you "only" need function graphs to plot on the screen? Or do you have more objects like in games or architectural apps to display in OpenGL?
If the latter is the case, the bigger problem appears to be the seamless integration of models. Every scene containing more than some cubes is designed in a modelling tool and can be exported into several formats (obj, dae, fbx, ...). But then you need to import it into your app. That's where game engines come to play regardless whether Unity, SIO2, Bork, Unreal, Oolong, ...
If you need to plot graphs, the manual OpenGL solution might be worth to consider. Although even then some research on existing engine maybe useful because OpenGL isn't that intuitive and you will need some time to make friends. I did plotting multiple graphs with zooming, coloring, ... in an iPhone app using OpenGL directly but it was a pure research project and portability was less important.
(2) Mixing OpenGL with GUI elements
Basically it's not possible to display a standard UIButton within an OpenGL view. But you can have OpenGL views and regular UI views and switch between them. I don't know of any tool that allows you doing both OpenGL based stuff and regular GUI programming and further on platform independent.
So on one hand you need to create your 3D stuff in the tool of your choice and then integrate native UI code. For Unity and iOS there some resources how to do it How to access Unity assets natively on Android or iPhone? or Mixing Unity generated code with Objective-C in iOS?
On the other hand you will need a platform independent framework to get regular GUI programming done so that you can run it on both Android and iOS. I am not familiar with this topic but I've heard from Mono based frameworks.