I've been spending the last week to develop a little platform game with HTML5's canvas element.
I was thinking about trying to port my game to the Android platform, but came across a few questions.
I have never done any Android programming, nor Java!
Only Javascript and PHP - but belive I have a good understanding of programming in general.
Will I be able to use the same procedure for building my game? Here I mean, my way of drawing everything on the screen/canvas. The rest is just calculations, and should be easily ported?
Every game loop I draw the background image, all items, and both players.
What would be the best way to control a platform game on a touchscreen? I was thinking about detecting parts of the screen individually.
Finger on right side: Walk right
Finger on left side: Walk left
Tap screen: jump
2 Finger tap: place bomb
Any suggestions or links are appreciated. Let me know if you need to see any code or an example of the game.
I suggest you look into using cocoonjs with your experience in php/javascript. It is really new so there is not a lot of documentation but if you pick through there demo code I am sure you will be fine.
http://wiki.ludei.com/cocoonjs:devguide
Am not being specific here but I think you can look up on Appcelerator Titanium and Phonegap to write Android apps using PHP and Javascript. There is a difference between how they function and what they do, though.
Here are some links:
http://www.appcelerator.com/products/titanium-mobile-application-development/
http://www.phonegap.com/home
Related
I'm familiar with Android Development,
But not with the subject of manipulations on images, etc.
I need to implement a puzzle game:
Let the user mark and cut a (non symmetric) piece of an image.
Let the user move and rotate this piece.
Let the user drag this piece into original place. And so on...
I heard about the OPENCV library (also for android). Is it the best option to start with?
I have seen a lot of questions/answers of this issue,
But do android have an official/unoffical library for this issue?
One of OpenCV's for Android sample projects is actually one of those puzzle games.
It does not allow the user to cut the pieces and rotate them, but all the rest is there. You have the source code if you download the android package, so it is a great starting point.
I am developing an android game where balls are floating on the screen or falling from above.
I have no idea on doing this animation as i am new to android, can you guys help me with this animation thing on how to do this.
I want to make the balls fall from above
Try android game engines, they are set of classes to develop games. try andengine thats the best one i know but not a nice tutorial is available although you can see examples and learn from them.
I am implementing a side scrolling android game. The player should move in a diagonal direction and the objects around him seem to move back ward.
I have structured my app like the open source project (replica island) by Chris Pruett.
I can render the obstacles and the player, but unable to move the obstacles.
Any help in this direction is greatly appreciated.
First of all: I am not familiar with the source code of "Replica Island" (I've played the game, though).
If you want to move/physically manipulate objects in your world, I'd suggest you use a 2D physics engine. A good start would be jBox2D or chipmunk for Java. Both are very similar.
It is quite easy to integrate in a game and fun to use, but the approach of character controlling is quite different to a game without a physics engine. For example, you apply forces to your character to move him around and do not set his speed/position manually.
I'm sure you'll find plenty of examples and tutorials for both physics engines out there.
HTH
I'm planning to develop a simple tic-tac-toe 3D game for android as a starting point (practical task to learn and do something useful), but devguid seems to be more of a reference than something with what I can get my hands on particular task. Can someone advice what should be investigated? (or maybe I'm searching for it incorrectly)
EDIT: I'm also considering other options on learning android development. (Though, the "practice while learning" approach is preferred).
EDIT:
My purpose: learn how to develop apps for android && create an app, which is fun and can be placed on android market
My initial "data": strong java + java ee, basic C/C++, willing to learn
Means to achieve purpose: devguide is more of a reference, and I need a solid start with lots of explanations. Need an advice here.
You see, to my mind there is no sense to read books and so on. First reading starting manuals from Google should definately help. When you are done with them you should jump into development. Of course, you will have a lot of questions, however there are lots of great manuals and tutorials all over the internet, so you will rarely have difficulties. If you even though have them, come here and we'll help =) Check out my devBlog
I did a simple tic tac toe for my first Android application and I was able to create a working game quite quickly using a table of image views. You just need to add clickHandler events onto the image views so they change image on click, and write a function checking whether the game is won after the click.
Try out several tutorials here, especially testing ones. Get your hands on Pro Android Games with reading devguide when some part of android development is unknown.
This will result in a rapid development (with a zero level starting point) and small learning curve of basic + in deep android development.
i have just gone through making some basic apps on android and was wondering
how to get graphics on the screen....and how to go about
developing something like the tom cat application first and then go onto games...
could you'll plz point me in the right direction as to how to approach this...
and wat all it requires?
I highly recommend you read through this series of tutorials to get you started with drawing 2D graphics on Android for games.
The Android API "Lunar Lander" got me started on 2D gaming. Of course, it's now apparent that there are flaws in it the demo, but still.. It gives you an idea of how to draw objects on the screen.
It sound like you are new to development, if yes: you should read more basic
Everything is on android development official site.
Ho through basic and learn math then you will be able to do complex apps like Tom cat