create a simple game board android
Posted
by
user2819446
on Game Development
See other posts from Game Development
or by user2819446
Published on 2014-06-10T22:56:48Z
Indexed on
2014/06/11
9:44 UTC
Read the original article
Hit count: 437
I am a beginner in Android and I want to create a very simple 2D game. I've already programmed a Tic-Tac-Toe game. The drawing of the game board and connecting it with my game and input logic was quite difficult (as it was done separately, canvas drawing, calculating positions, etc). By now I figured out that there must be a simpler way.
All I want is a simple grid; something like this: http://www.blelb.com/deutsch/blelbspots/spot29/images/hermannneg.gif. The edges should be visible and black, and each cell editable, containing either an image or nothing, so I can detect if the player is on that cell or not, move it... Think of it as Chess or something similar.
Searching the internet during the last days, I am a bit overwhelmed of all the different options.
After all, I think Gridview
or Gridlayout
is what I am searching for, but I'm still stuck.
I hope you can help me with some good advice or maybe a link to a nice tutorial. I have checked several already, and none were exactly what I was searching for.
© Game Development or respective owner