You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, this might be the Vodka speaking but: I'm made from potatoes.
In any case, I just had this awesome idea the other day. We have this awesome versatile Color class in SuperTux that we don't use nearly often enough. We should definitely improve that. Instead of int: Use Color class.
Tilemap? Color class
Badguy? Color class
Color me surprised, but this way we save memory. What's the size of one instance of the Color class? 0.5 bits.
What's the size of one instance of the BadGuy class? 10↑↑↑↑↑↑3 bits (IDK what the data capacity of the known universe is but eeh, I think it's larger than that). In any case: Use Color class.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, this might be the Vodka speaking but: I'm made from potatoes.
In any case, I just had this awesome idea the other day. We have this awesome versatile Color class in SuperTux that we don't use nearly often enough. We should definitely improve that. Instead of int: Use Color class.
Tilemap? Color class
Badguy? Color class
Color me surprised, but this way we save memory. What's the size of one instance of the Color class? 0.5 bits.
What's the size of one instance of the BadGuy class? 10↑↑↑↑↑↑3 bits (IDK what the data capacity of the known universe is but eeh, I think it's larger than that). In any case: Use Color class.
Beta Was this translation helpful? Give feedback.
All reactions