
In laymans terms, if Sonic is fast enough he can ignore solid objects because he's too fast to interact with them. If a solid object is in the way it is possible to completely bypass it if no calculated position collides with the object. Whenever the character moves, the new position is calculated based on your current position, speed and acceleration. Every pixel is then divided into 128 subpixels and all movement is calculated with them. The levels themselves are built using "chunks" of 16x16 blocks (256 pixels) in Sonic 1 and 8x8 blocks (128 pixels) in later games. For both of these planes, blocks can be assigned to show in front of the character or behind. Lastly there are two planes (A and B) where B is used for background art and A is the level itself.

Additionally every block can be assigned solidity for "path 0" and "path 1".Īll tiles also have an angle assigned to them which is a number between 0 and 256 (FF in hex) for which the games use a table of values for trigonometry calculations. The Sonic playing community generally agrees that this is pretty dumb, and the time spent actually playing the stages is what matters, so these games are timed by taking the sum of the in-game times for each level.įor a further explanation, this video does a good job of explaining why in-game time matters in certain games, particularly in the Sonic franchise.Īll Sonic games work with 3 types of 16x16 pixel blocks Top solid, left/right/bottom solid and all solid. What this means is, in real time it would in fact be faster to wait for the timer to tick over to 30 (or 60), as long as the time you would otherwise get is between 23 and a third (53 and a third) seconds and 30 (60) seconds even. On the act clear screen, the bonus ticks down at a rate of 100 points per frame, and cannot be skipped. Completing a level at 30 (or 60) seconds gives a 10,000 time bonus instead. In all of the classic Sonic games, completing levels very quickly (under 30 seconds in Sonic 1 and 2, and under 60 seconds in Sonic 3 & Knuckles) gives a 50,000 point time bonus. Why we use in-game time and not real time


