[Q] How to create a 2D platform game? - Android Q&A, Help & Troubleshooting

Me and my sister would like to create a platform game like Super Mario for android.
Where should we start? We don't won't a game engine because we want to create the game ourselves.
Any Programs to write the game in. We would like to create an Android app not a flash game or an HTML game.
Thanks for any replies.
Daniel

You'll need Android SDK, Eclipse, ADT Plugin, basic Java knowledge and much patience.
To make a Mario I think you can use OpenGL, to take advantage of the hardware aceleration and make easier the development of the game physics.

Thanks RoberGalarga.

Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A

You could also use SurfaceView if you do not want to take the time and learn opengl. SurfaceView implements a thread that can be used to update game physics and animation. There are some very good examples on the android developers website. I remember looking at one game called JetBoy which is included in the Android Sample projects with SDK. Check it out. I put a 2d game together using this view along with a tile map editor.

Replica Island is a game maded for fun by one of the Google employee and is both open source and available for free on the market
http://code.google.com/p/replicaisland/
of course there are infinite ways of doing a 2D platform but you can take a look at this one from the inside.

Related

[Q] New to development!

Hey im a programming student in my second year and ive been wanting to play around with some android development (mostly because my school doesnt teach java or php. Im pretty experienced with visual basic and C#. But my questions is can someone help me out with a link to or something where I can take a look at some open source code for some android apps? It can be as simple as tic tac toe I dont car. Im just basically doing some research myself. Also is eclipse the best compiler for android development? Thanks
You can find quite a number of examples under 'Resources' on developer.android.com.
You may be interested to know that Eclipse is not a compiler, it is an Integrated Development Environment (IDE). What is better or not is largely a personal preference, but starting out you are likely to find more tutorials assuming you use Eclipse than anything else.
Source of pre-installed Android Appliaction is open. And you can program with eclips for Android App.
Sent from my LG-SU760 using XDA
Android is open-source, but not the apps.
You can run Eclipse, and create a new project from existing samples. You will be able to choose from a list (this samples come from the sdk, if you downloaded them).
There are some games (snake, ...) and demo apps like API demos.
And Eclipse is very good for Android development, especially if you use the plugin ADT tools.
I am more than happy to have all the eyes I can on my code. I would post a link, but (no rant here)...
AWOL: ArchWiki Offline
by
Tetractys Productions
Search for this on the Google App Store with search term "archwiki".
The code isn't great as I am a novice with both Java and Android, but you will find use of Activities, WebViews, Menus, using external Jars and perhaps a little more. If your scholarly background leads you to make a suggestion or two... please do.
Also... don't buy most of the books. They suck. The "cookbooks" seem pretty good and the Android Developer Documentation and Stackoverflow are your friends. I wasted enough money on Android books I will never read. Hope you don't fall for that too.
Rant:
10 post requirements encourages low quality posts. Perhaps its a good trade-off, but from where I'm sitting I'm drinking HaterAde.

How was created game Doodle Jump?

Hi everyone!
I'm pretty much begginer in Android development. I created some basic apps but nothing special.
I wonder what does it take to create a game like Doodle Jump?
It looks like not hard to do game, but I still don't know how to create anything that this game have.
Would someone who is professional in Android development like to explain it a little, and give me guidance to what areas I should learn more?
For example, how to create Doodle, dynamic background and how Doodle can respond to objects on it's way? And is all this created in OpenGL?
Infinittus said:
Hi everyone!
I'm pretty much begginer in Android development. I created some basic apps but nothing special.
I wonder what does it take to create a game like Doodle Jump?
It looks like not hard to do game, but I still don't know how to create anything that this game have.
Would someone who is professional in Android development like to explain it a little, and give me guidance to what areas I should learn more?
For example, how to create Doodle, dynamic background and how Doodle can respond to objects on it's way? And is all this created in OpenGL?
Click to expand...
Click to collapse
Game development is done by using extra frameworks which are probably paid versions. There are many softwares and tools available for this purpose if I'm true. Anyways if you want to start as a beginner in Game development, you may head over to this Guide : http://forum.xda-developers.com/showthread.php?t=1753131
~Cheers.
Infinittus said:
For example, how to create Doodle, dynamic background and how Doodle can respond to objects on it's way? And is all this created in OpenGL?
Click to expand...
Click to collapse
Yes, It can be done using OpenGL (ANDEngine can help you here), but it also can be done using generic tools, like the SurfaceView (the doodle jump background is a repetitive image, relatively easily achievable using surfaceview).
The platforms can be created aleatorily at level start, and can be storaged in an array, or a List (much better, since the List are dynamic) to manage them. Remember: all the platforms are the same image, so you only need their relative positions.
An algorithm to interact with the platforms can be:
Code:
if (doodle is falling) and (his feet touch a platform) then
Jump!()
end
if (doodle is jumping) then
scenaryScroll()
applyPhysics()
end
PD. I'm not a professional, I'm only giving you some suggestions .
Thank you for your answers.

Simple Open Source Android Game?

unsure if it's the right forum for this, but figured Q&A couldn't be wrong since it's a question.
I'm looking for a dead simple open source android game. real simple gameplay, but has the ability to get to a new level and a gameover screen.
I need this to implement and showcase a 3rd party library I'm working with to others.
any help on my search is greatly appreciated, I'll keep googling, but wanted to see if any XDA'ers had input as well. tia.
Check out the sample projects in your android-sdk.
Jetboy, snake, lunar lander, are great examples that contain all you need.
Ive developed a few games but not on android
A few easy games would be pong or frogger in my experence
Id recommend frogger if you want a game over screen and different levels

[Q] Choosing an engine for a game

So, probably asked hundreds of times before, I already searched for it and know some candidates, but since the oppinions I have found could be outdated, I'll ask again:
I want to jump to game development as a hobbie. I already have a job programming, and know C++ and Java very well (not a guru...yet! ). But when I search for game engines there are SO many to choose from.
I'd like to pick one which:
has a big community of users (for example, PlayN looks nice, but I think lacks of this. just try to google "PlayN push notifications" and nothing will appear)
is free (since it's just a hobby)
and would be nice (not mandatory) if it was possible to port to other non-Android devices (iOS, Windows8...). AndEngine looks great, but it is only for Android, and I don't know if Cocos2Dx is reliable.
extra points if the engine includes multiplayer capabilities or push notifications. I have not found information about this for PlayN, AndEngine or Cocos2Dx, so I guess they don't have these features and aim only for graphics. Moai looks promising here, but I don't want to learn to use it and then discover than the free edition is too limited.
So, I'd love to hear oppinions from game developers around here: please tell me your experiences.
BTW, I'd love to create a Civilization-like game, that's why I'm interested in push notifications and multiplayer. But I'll start with a card game, because I'm just not that mad (yet).
PS: After reading forum rules, I guess this question goes here, in Q&A, but feel free to move it to Android Game development subforum if you think it is misplaced.
I don't know about push notifications, but I think you'll have to code the multiplayer part yourself using sockets because multiplayer is different from game to game.
there is already a thread created on teaching how to create android games. here is the link
http://forum.xda-developers.com/showthread.php?t=1753131
Sent from my Desire S using Tapatalk 2

Looking for the ultimate pathway

I am new to this forum and mobile app development. Hope I am posting in the right area..
I would like to know someone's opinion as the best and efficient way to create android apps. e.g. the Uber App
I liked Xamarin but creating more advanced UI means you will have to know java/kotlin.
Is it worth learning Java/Kotlin for Android development then move into Xamarin for it's cross platform compatibility?
Any help would be appreciated.
Thanks.

Categories

Resources