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

Re: How connect DragAndDrop image with board/table

Postby SimonMayers » Thu Jun 29, 2017 7:30 am

To upload files from your computer, click the + button in the toolbox, and choose Upload.
To upload files from the web, click the + button in the toolbox, and choose From URL.
This will open a new window, where you can paste a direct URL link that leads to the file that you wish to upload. E.g. a direct link to a PDF document will end in *.pdf. This way you can upload documents and images.
driving directions
SimonMayers
 
Posts: 3
Joined: Thu Jun 29, 2017 7:11 am


Return to Beginning Android Games

Who is online

Users browsing this forum: No registered users and 2 guests