u/meowman9000 - Archived Voat Post in v/programming
u/meowman9000
  • home
  • search

u/meowman9000

0 posts · 1 comment · 1 total

Active in: v/programming (1)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: What are some uses of the ceiling function?

I use it in my game so that no background tiles are left non-visible. Obviously a character will rarely line up exactly with an even number of background tile, and its important that any half tiles are shown. So a decimal number is not useful, and you can only show a rounded number of tiles, and you dont want to cut off any visible tiles.

0 22 Apr 2018 20:59 u/meowman9000 in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.