Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <+Rayvolution> everything moved in whole tiles, and were likely rendered to a 1D array (0memory reasons)
  2. <+Rayvolution> A modern tetris would no doubt be a 2D array since the memory is trivial
  3. <+sigtau> converting 2D indices to 1D array indices is really easy though
  4. <+Rayvolution> well of course
  5. <+sigtau> x = n / total
  6. <+Rayvolution> But why bother doing it?
  7. <+sigtau> y = n mod total
  8. <+Rayvolution> It's... tetris
  9. <+sigtau> there
  10. <+Rayvolution> I'm not saying it's hard, i'm saying its a waste of time
  11. <+Rayvolution> Just make it a 2D array and be done with it :P
  12. <+sigtau> a lot of things in game development are sufficiently a waste of time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement