Comment about calculating the `srcY`: It's a bit enigmatic how the drawing of a potentially fractional number works, but it seems like it does because when dividing two `int`s in Go, it'll drop the decimal values, so it acts like a "flooring" function. For example, if you have tile ID of 246 in the JSON, then substituting those values in that line of code would look like `srcY := (246 - 1) / 22` which would equal 11.136, but because `srcY` is an `int` value it's just 11 -- which lines up with the row or Y value of where that tile is in the TilesetFloor file.
These are excellent tutorials. Thanks!
wake up honey, new coding with sphere tutorial just dropped
Thanks!
Thank you for the support!
Thanks! You are doing a good job. Don't stop!
amazing so far, i got bit lost this episode but its my first time building game I'll get used to it
Great video! thanks for keep going with the tutorials!
Comment about calculating the `srcY`: It's a bit enigmatic how the drawing of a potentially fractional number works, but it seems like it does because when dividing two `int`s in Go, it'll drop the decimal values, so it acts like a "flooring" function. For example, if you have tile ID of 246 in the JSON, then substituting those values in that line of code would look like `srcY := (246 - 1) / 22` which would equal 11.136, but because `srcY` is an `int` value it's just 11 -- which lines up with the row or Y value of where that tile is in the TilesetFloor file.
great video, thank you!
Awesome!
Great work🎉
very cool man
hey man, this course is amazing, might just be a bit of pebcak on my part, but I don't think this episode is in the series playlist.
Hi, amazing videos so far. Just one thing, can you move this to the playlist ? I think you missed to add this one to the playlist. Vielen Dank.
awesome video. small suggestion. zoom in a bit when interacting with the popup windows. gets a bit blurry on some of them as they are a bit small.
So the whole reason you need to subtract 1 from id is because that's just how tiled works when exporting tile map in Json? Really great content btw!
@@spacemen0 yes, for some reason the json format export adds 1 to all the ids