[Q] How to create an adventure game (2D)? - Java for Android App Development

Hey guys.
I want to develop an adventure game. I mean a game that the screen is following after the player at the game. Something style Mario or something like that. A game that yo can jump over floors and jump on monsters and things like that.
I really dont know where to start and I tried searching for knowledge of this but i didnt found.
Please help me !

omri206 said:
Hey guys.
I want to develop an adventure game. I mean a game that the screen is following after the player at the game. Something style Mario or something like that. A game that yo can jump over floors and jump on monsters and things like that.
I really dont know where to start and I tried searching for knowledge of this but i didnt found.
Please help me !
Click to expand...
Click to collapse
If you didn't find knowledge of how to do this then you haven't searched hard enough or long enough...
First you would need to learn some basic Java, then I would suggest looking into a 3rd party game engine such as LibGDX to develop your game on.

Jonny said:
If you didn't find knowledge of how to do this then you haven't searched hard enough or long enough...
First you would need to learn some basic Java, then I would suggest looking into a 3rd party game engine such as LibGDX to develop your game on.
Click to expand...
Click to collapse
I know the basics, and i dont want to develop 3D app, I want 2D (jump n'run game). I want to develop this on eclipse.
Is it possible?

omri206 said:
I know the basics, and i dont want to develop 3D app, I want 2D (jump n'run game). I want to develop this on eclipse.
Is it possible?
Click to expand...
Click to collapse
As I said, look into 3rd party game engines such as LibGDX.

Libgdx is fine. Search the web. e.x.youtube has various tutorials about using libgdx for side scrolling games.

Related

Planning to learn coding games for android - need help

I would love to create an android game. So I am planning to start learning it.
I have coded an application already and I think I know the basics. So now I want to get into game programming which is too complex if I heard it right.
I would like my fellow developers who have experience in coding games to give me some links and tutorials which will come handy for newbie like me.
Thanks in advance!
obscurant1st said:
I would love to create an android game. So I am planning to start learning it.
I have coded an application already and I think I know the basics. So now I want to get into game programming which is too complex if I heard it right.
I would like my fellow developers who have experience in coding games to give me some links and tutorials which will come handy for newbie like me.
Thanks in advance!
Click to expand...
Click to collapse
I think the best way to learn any new area of software development is to get stuck into a project. I've been working in various embedded and real-time environments for years but a couple of years ago myself and a couple of mates decided to try to make a game. At the time we wanted to learn C# so we dived into the XNA framework & made something that ran on Windows & XBox. It was never released, but I learned a lot of new stuff. Started with their tutorials and went from there. I can't help with links and so on for Android but don't be put off by the idea that games are too complex - the first software job I ever did was on a full size submarine simulator for the Navy & that really was complicated!
I think that this is a very good piece of advice: http://www.raywenderlich.com/12065/how-to-create-a-simple-android-game
It helped me very much.
Coding games has become very easy these days thanks to the superb engines but some do come at a premium price
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Coding games has become very easy these days thanks to the superb engines but some do come at a premium price
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
I agree. But Andengine is free and very good. Look at the link I gave above.
I used Unity3D for my class project before. It's very nice and easy to use. You should check it out
there is a great guide on xda: link.
ciao99 said:
there is a great guide on xda: link.
Click to expand...
Click to collapse
Thanks I have started learning!
Also another great resource is the new Boston. You can see them here and select Java Game Development. http://thenewboston.org/tutorials.php
You can also learn regular Java and Android development on that Site!
Sent from my Nexus 4 using Tapatalk 2
When I started to learn android game developing I found some very useful tutorials at: obviam.net. Look for the series 'Getting started in android development with libgdx'.
This series uses the framework libGDX, which enables you to write your game once and easily port it to many different platforms.
FĂ­ghter02 said:
When I started to learn android game developing I found some very useful tutorials at: obviam.net. Look for the series 'Getting started in android development with libgdx'.
This series uses the framework libGDX, which enables you to write your game once and easily port it to many different platforms.
Click to expand...
Click to collapse
I totally support this. I created my first Android game (Rock Ninja) with no previous game development experience thanks to the awesome Libgdx framework/community.
Yeah, LibGDX great thing and very easy to learn on GoogleCode's wiki page by simply reading topics one by one. Of course if you are familiar with java first
I'm also member of libGDX community, even helped to fix some bugs in particle editor. But after deeper look at this engine, you find some problems in deployment on other platforms. So, I'm looking at the Unity 3d now, besides it became free for android and iOS version.
Widesteppe said:
I'm also member of libGDX community, even helped to fix some bugs in particle editor. But after deeper look at this engine, you find some problems in deployment on other platforms. So, I'm looking at the Unity 3d now, besides it became free for android and iOS version.
Click to expand...
Click to collapse
True, iOS is still work in progress with Libgdx. Good news is that the new RoboVM backend(that will replace Monotouch/Xamarin) is looking really promising and a first app has already been successfully published to the Appstore.
I have a decent stash of books on mobile development. I would start with either monogame, libGDX(provided you know openGL), AndEngine, Unity3D, or use cross platform tools that turn HTML5/CSS3/Javascript into native code. Give me a PM if you need anything, best of luck :good:
Monkey_King said:
I have a decent stash of books on mobile development. I would start with either monogame, libGDX(provided you know openGL), AndEngine, Unity3D, or use cross platform tools that turn HTML5/CSS3/Javascript into native code. Give me a PM if you need anything, best of luck :good:
Click to expand...
Click to collapse
You don't need any knowledge of OpenGL for Libgdx, everything is abstracted out for you.
ob1cat said:
You don't need any knowledge of OpenGL for Libgdx, everything is abstracted out for you.
Click to expand...
Click to collapse
Isn't the GLSL used in LibGDX?
Monkey_King said:
Isn't the GLSL used in LibGDX?
Click to expand...
Click to collapse
Internally yes, but it's abstracted by the framework for you not to need to worry about it.

[Q] Best Step by Step tutorial for app development

Hey guys! I'm new to app development world, I have a good amount of knowledge of c/c++ and learning java right now (I'm an engineering student), and totally interested in making my own app for android, I have made some basic apps, but it would be a real help if I get a good tutorial for bigger apps and also a tutorial for 2-D gaming on this platform for now....thanks in advanced!
I just recommend you to visit http://d.android.com/training it'll introduce you in all the basics and advanced techniques.
Not this buddy....I want a bit simpler tutorial....that one is too vast, I want a tutorial that specifically teaches for one particular type of app, example: making a 2-D game, or building a browser, or a messaging app, etc.
Sent from my Nexus 7 using xda app-developers app
rulerofthehell said:
Not this buddy....I want a bit simpler tutorial....that one is too vast, I want a tutorial that specifically teaches for one particular type of app, example: making a 2-D game, or building a browser, or a messaging app, etc.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I think those topics are a collection of hundreds of patterns, knowledge, implementation and understanding, so better to start simple rather than ....well.... as the saying goes...learn to walk first before you try and pilot a space shuttle
Just a suggestion
Note : there maybe dvd sets that show what you ask, but I would suspect it would be months if not years of learning for a nice grounding in what you will need.
I know basic bro....
deanwray said:
I think those topics are a collection of hundreds of patterns, knowledge, implementation and understanding, so better to start simple rather than ....well.... as the saying goes...learn to walk first before you try and pilot a space shuttle
Just a suggestion
Note : there maybe dvd sets that show what you ask, but I would suspect it would be months if not years of learning for a nice grounding in what you will need.
Click to expand...
Click to collapse
I just said I made a few basic apps, I don't wanna sound rude but I have learned to "walk" , just needs a few directions before I start to fly.
rulerofthehell said:
I just said I made a few basic apps, I don't wanna sound rude but I have learned to "walk" , just needs a few directions before I start to fly.
Click to expand...
Click to collapse
Sorry was speed reading to just try and offer help... as I said there are lots of resources, but for something like a game, you have mass resources based on the tech/engine you choose (http://stackoverflow.com/questions/17163446/what-is-the-best-2d-game-engine-for-android)... if you choose one of the popular ones there are tonnes of resource. As for building an app, it's just a little ambiguous. A screen that displays a black view fullscreen is an app. I think it's best to evaluate the market see whats missing or can be improved upon and start that way.
BTW I was confused on you saying you wanted simpler than d.android.com/training (which is like the starting point from zero) But I think I get what your asking now
That helps a lot thanks!
deanwray said:
if you choose one of the popular ones there are tonnes of resource. As for building an app, it's just a little ambiguous. A screen that displays a black view fullscreen is an app. I think it's best to evaluate the market see whats missing or can be improved upon and start that way.
BTW I was confused on you saying you wanted simpler than d.android.com/training (which is like the starting point from zero) But I think I get what your asking now
Click to expand...
Click to collapse
Thanks man! That helps a lot and if I may ask for more then are there any tutorials for simple multiplayer games....I know I have to set up a server to which a user can connect to,but I don't exactly know how to do that...so a tutorial on it would help
Also tutorials on multiplayer games via Bluetooth connection would be nice
rulerofthehell said:
Thanks man! That helps a lot and if I may ask for more then are there any tutorials for simple multiplayer games....I know I have to set up a server to which a user can connect to,but I don't exactly know how to do that...so a tutorial on it would help
Also tutorials on multiplayer games via Bluetooth connection would be nice
Click to expand...
Click to collapse
that I cant help with and would be on par with you in having to google, if I were to speculate then I would assume that lots of the core elements like profile linking, indents, scores/stats and states are/can be handled by the new google play services game stuff... but just have a read on google/android site, cause I would say yes to having a server for MMO games but no if it's either 1 to 1 or not realtime.
btw not many do bluetooth these days, wifi network or wifi direct for local games
I highly recommend "android bootcamp series" (sorry I can't add link, so please write it in google).
This screencasts explain all building blocks in Android in easy way
Check vogella.com, you'll find a bunch of examples. Really helpful.

Can I learn by my self?

Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
Well you really need to know Java basics, and then just start learning off the getting started guides on the official site
deanwray said:
Well you really need to know Java basics, and then just start learning off the getting started guides on the official site
Click to expand...
Click to collapse
Thanks
It's possible to learn on your own, but it can be good to have others to either learn from or run your ideas by also. It's difficult to notice you're stuck in a box sometimes!
It's also a good idea to play with the SDK sample apps when you're learning not only Java but Android APIs.
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
YES YOU CAN
The best place to start would be to download and import the source codes of very simple open source android apps, read them thoroughly and then start making little modifications to it to learn what code affects what part of the app's functionality, try adding new functions and features. This way you will learn and build up your confidence.
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
Although it would probably be easier if you were taught it in an educational envrionment (university maybe?) or, like driving lessons, you had an actual android developer sit down next to you when learning/developing I personally think the official android Design and Develop series can take you from novice to intermediate - low end of complicated development. You could use these in conjunction with xda dev or stackoverflow to get any information/code that's missing or you don't understand how to implement.
developer.android.com/design
developer.android.com/develop
developer.android.com/training (especially this one)
Thankyou very much, I will start download source code and test modifys.
Android Developer official Israel very difficult for me.
But thanks
Sent from my GT-I9500 using xda app-developers app
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
Yes you can...Headfirst Java is a good book for beginners plus there are many web Tutorials on Youtube. You just need to be patient and work hard.All The best.
voilaworks said:
Yes you can...Headfirst Java is a good book for beginners plus there are many web Tutorials on Youtube. You just need to be patient and work hard.All The best.
Click to expand...
Click to collapse
Thank you
You can learn the basics by reading books or doing online Tutorials Did it aswell - successfully ofc
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
Hello, the answer you are looking for is absolutely! You can learn everything you need to by yourself, granted it will take much longer than if you had someone to ask questions.
How do I know? I started programming on Android ~3 years ago, by myself. I had nobody that talked me into it, and I didn't attend any colleges. A motivational spark encouraged me. I had absolutely no programming experience, how it worked, or anything about it. Now, I have 5 apps on Google Play, and am working on my 1st game. All with the knowledge I've accumulated over the years out of pure interest. People laugh when I tell them it's my hobby, I stand serious haha.
For me, youtube (something visual) helped me get started, as you can easily follow along. After you feel you have a grasp on the basics, I started looking online further. Searching this site, and StackOverflow.com are great learning resources. Before you know it, you'll be a master! Good luck!:good:
Firstly, it might help if you describe what is your exact situation. How much experience (not job experience, but coding experience) do you have in programming? How much comfortable you are with any programming language, say C? How familiar you are with OO concepts? Are you uncomfortable just because there's something different with Java, or is it because Java is your first programming language? If you read carefully, the preface of SCJP book says that this book is not to be used to learn Java from the scratch.
Btw, unless you get all building blocks in place (e.g logic constructs - loops, basic data structures, OO concepts etc.) don't go for other stuff like threading, swing, JDBC, xml parsing etc. :good:
You can definitely learn it on your own as long as you have to drive to do so. I taught myself ( I had no computer background). I am no expert but I can get by. And I just released my first multi-player game, Word Cloud Social, on Google Play yesterday. Check it out .
auricPuneet said:
You can definitely learn it on your own as long as you have to drive to do so. I taught myself ( I had no computer background). I am no expert but I can get by. And I just released my first multi-player game, Word Cloud Social, on Google Play yesterday. Check it out .
Click to expand...
Click to collapse
Wow, thanks for your words, inspired to me.
A friend teach me a little and gime me a source code of a theme pack and I know change the image and customize this, but I need learn more.
Thank youvery much
As auric stated, you have to have the motivation and determination to learn by yourself, but it is definitely possible.
Don't rush it, take your time and try to understand it. Analyze everything, and if you have questions search the web, or ask on sites like here right away.
You have to believe in yourself
Noted to self thrice via tapatalk
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
yes you CAN, i did it my self one year back, now i have my own app in playstore
useful links:
http://www.vogella.com/tutorials/android.html
http://stackoverflow.com/questions/tagged/android
http://docs.oracle.com/javase/tutorial/
http://omapzoom.org/
http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/
angelgavipo said:
Hi, I dont know java but I know a little about Eclipse and make apps.
But I nedd know if is possible learn by my self.
And How??
Thanks
Click to expand...
Click to collapse
Of course you can, read a lot of tutorials or watch a lot of video tutorials depending on what you prefer and how you learn best, but most importantly: practice.
I think the best way is to find a simple idea you like for an app, and learn just what you need to create this app along the way, start off with a basic "how to setup an android app project" tutorial and work your up from there.
The android framework is quite wide, you can't learn all at once, I think this method allows you to stay on a defined path and actually achieve something.
And by learning the APIs you need for your app idea, it'll open more doors for you to learn other APIs to improve upon your project, or start a new one being more comfortable with the environment.
If you're more the type of learner which learns best by watching, I recommend you watch the 200 videos series for beginners by TheNewBoston, it's a good start:
https://www.youtube.com/playlist?list=PL2F07DBCDCC01493A
The official training courses and docs can be a bit overwhelming for beginners I think.
If it's something you really want to do, then just practice a lot and stick with it, you'll get there.
Just 3 or 4 years ago I didn't know anything about programming except some very basic HTML, I learned by myself and now I work full-time as a front-end Web & Android engineer at a french startup (IZIPass), on projects for clients such as McDonalds and Subway.
If you're looking for some inspiration, the series about Hacker Schools by former XDA TV producer Jayce Broda is an awesome one.
It shows how Mark Rossetti evolved from a total beginner to being hired by SalesForce in the SF bay area in 12 weeks.
You really get to see his progression as these are weekly interviews, it's great, I know it inspired me a lot. And still inspires me to try and go live in San Francisco, but that's another subject^^
Just make your own "Hacker School" for yourself
You certainly can. I'm still in highschool and I'm self taught. I educational book I've enjoyed reading was Java Notes 6. Its free of charge on his website!
Sent from my Nexus 5 using xda app-developers app
gh0stslayer said:
YES YOU CAN
The best place to start would be to download and import the source codes of very simple open source android apps, read them thoroughly and then start making little modifications to it to learn what code affects what part of the app's functionality, try adding new functions and features. This way you will learn and build up your confidence.
Click to expand...
Click to collapse
Love this idea.
ricky310711 said:
Love this idea.
Click to expand...
Click to collapse
Thank you
To get interesting app's source codes one could use F-Droid (it's an app store which only hosts open source apps).
And also people with somewhat limited coding knowledge could use APIs to further reduce their efforts.
I found this app very helpful and inspiring in this regard.

[Q] Code an android app?

hey guys,
I am back on the forum after a long time like posting a thread. I just completed my school and heading to college as a computer science major, right now I have my summer vacations going on and so I was thinking of learning android app development in my free time by using some java knowledge I gained in my AP computer science class at my high school. I want to learn Game Development if that comes in the category of app development because everything in the market is an app so. I am not quite familiar with what engines are good or where can I have a good start. I know little bit that you need a Android APK but I have heard that it takes a lot of time and extrat coding to build an app in APK, so should I use engines out there? and if so which one? etc. I know there are many android app developers and so if you guys could help me out. Also my development is not just limited to games but also appilcation that are plugins or deal with networking etc.
I would highly appreciate your help.
Video Tutorials
JaZZyCooL said:
hey guys,
I am back on the forum after a long time like posting a thread. I just completed my school and heading to college as a computer science major, right now I have my summer vacations going on and so I was thinking of learning android app development in my free time by using some java knowledge I gained in my AP computer science class at my high school. I want to learn Game Development if that comes in the category of app development because everything in the market is an app so. I am not quite familiar with what engines are good or where can I have a good start. I know little bit that you need a Android APK but I have heard that it takes a lot of time and extrat coding to build an app in APK, so should I use engines out there? and if so which one? etc. I know there are many android app developers and so if you guys could help me out. Also my development is not just limited to games but also appilcation that are plugins or deal with networking etc.
I would highly appreciate your help.
Click to expand...
Click to collapse
I started android development by watching tutorial videos from 200 video series
Link : http://thenewboston.org/list.php?cat=6
You can start game development refering content on
http://www.kilobolt.com/game-development-tutorial.html
Thanks a lot for the tutorials man. I highly appreciate it.
JaZZyCooL said:
Thanks a lot for the tutorials man. I highly appreciate it.
Click to expand...
Click to collapse
Press thanks button dude.. Its best way to thanks..

New Developer

Hey all,
I'm quite new to the Android development, but I have about a half a year of Java experience. I've been reading "Java Programming for Android Developers For Dummies" by Barry Burd, but I'm completely lost.
I need to make an Android app for school, so I just want to make a simple Tetris clone. Any help that anyone has would be very much appreciated!
First application
I would start with some easy application and after try to create something like tetris. For game you will need some framework not just Java and Android.
Yeah, something like http://libgdx.badlogicgames.com
dewsy96 said:
Hey all,
I'm quite new to the Android development, but I have about a half a year of Java experience. I've been reading "Java Programming for Android Developers For Dummies" by Barry Burd, but I'm completely lost.
I need to make an Android app for school, so I just want to make a simple Tetris clone. Any help that anyone has would be very much appreciated!
Click to expand...
Click to collapse
For learning android i suggest u take a look at the new boston tutorial series. For games, Beginning android 4 games is a very good read. It explains game development fundamentals in detail.
Super Wilmer
I'd suggest using libGDX as well, I'm starting to port our game Super Wilmer to it, the reason you want to go with a framework like this is so that you can port to other platforms, like iOS for example. They have a lot of good support material and getting started tutorials.
Here is the documentation to get you started...
http://libgdx.badlogicgames.com/documentation.html

Categories

Resources