N
N
Nickname782016-02-25 04:33:49
Java
Nickname78, 2016-02-25 04:33:49

Graphics in Android/Java?

I got interested in programming for Android, and many questions arose about graphics, in particular, two-dimensional.
I know at least three ways of implementation:
canvas(???) - I don't understand what it is, why it is, and how it works, what it is based on.
OpenGL - In principle, everything is more or less clear here, I really still haven't bothered to find out how it interacts with hardware and works in general, but I don't think this information is hard to find. Of the minuses, one can immediately note the high complexity of not even the library itself, but the final program (game). The complexity is growing exponentially.
And three are different frameworks. Plus - simplicity, minus - it is not clear which brother and whether it is really needed, what they are based on and how they differ.
How correct are my judgments, what is the best choice for a beginner with a reserve for the future (!)?
Oh, and also, does it make sense to take on NDK in terms of 2D games?
Many thanks in advance to anyone who will undertake to answer at least some of the questions from this ill-knitted sheet!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2016-02-25
@Nickname78

Canvas is suitable for simple 2D games, but you should not count on it much. For starters, in order to code games without bothering with graphics, it will do. Plus - you can make a normal UI, and on the canvas - just a game.
OpenGL is, as you know, hardcore for the pros. You can do cool things, but you will dig in and progress will be slow.
There are really a lot of frameworks. The same libgdx allows you to blind something in a couple of days. The downside, I think, is that you are studying a specific framework, in other areas of knowledge are expanding poorly and you are less in demand. You can write games for android, while not knowing anything about this same android.
NDK - definitely not. This is the destiny of serious companies, with an eye on all platforms.

L
lomikman, 2016-02-25
@lomikman

with your level try looking towards libgdx
https://github.com/libgdx/libgdx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question