How connect DragAndDrop image with board/table

Forum for the book "Beginning Android Games", see http://www.apress.com/9781430230427

How connect DragAndDrop image with board/table

Postby zenek24pl » Sat Apr 15, 2017 6:36 pm

Hi i'm making Battleship game on android platform with use of libgdx, i've already implemented drag and drop system but i dont have any idea how to connect items from drag and drop with player board. I mean im drawing board but i need to make logic part for this board like connecting drawed actor/image with table/arraylist cells. If any1 know how to help me pls :D. I need to get position of place where item is draged and puted an then save this positions to arrayList/table. After this i should write another board with positions of every dragged items. If somthing is not easy to understand ask i'll try to tell it simplier. Thx for any advice's.


Btw thats my poor repo on github with code.https://github.com/zenek24pl/SeaFighter
zenek24pl
 
Posts: 2
Joined: Sat Apr 08, 2017 5:40 pm

Re: How connect DragAndDrop image with board/table

Postby gameiva » Tue Apr 18, 2017 1:27 pm

Hey Friend, i think you need google help. I am sure you get the best answer of your question.
gameiva
 
Posts: 4
Joined: Fri Mar 31, 2017 12:36 pm


Return to Beginning Android Games

Who is online

Users browsing this forum: No registered users and 3 guests