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