drawing grid

General discussion about the R.U.B.E editor
Post Reply
kyle.bong2@gmail.com
Posts: 41
Joined: Thu May 29, 2014 5:01 am

drawing grid

Post by kyle.bong2@gmail.com »

Hi iforce2d,

Awesome editor by the way! I am looking into drawing similar grid you have in your editor onto cocos2d-x, do you have any pointer doing it?

What I am trying to do is have a grid in background so a user can drag a body around and snap to a grid cell, similar to your editor but in iOS and Android.

Any suggestions would be great!

Thanks!
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: drawing grid

Post by iforce2d »

What exactly are you stuck on? The drawing part is just drawing lines...
The snapping part is just rounding the coordinates of the dragged location...
kyle.bong2@gmail.com
Posts: 41
Joined: Thu May 29, 2014 5:01 am

Re: drawing grid

Post by kyle.bong2@gmail.com »

You are correct. My bad I was over thinking it :cry:
Post Reply