Sonic Labyrinth is a puzzle and platform game featuring isometric game play. Sonic must obtain keys located throughout the first three acts of each zone and then battle a boss to retrieve the chaos emeralds. While Sonic has an incredibly slow walking speed, there is plenty of super fast bouncing around that makes good use of the spindash. The best ending requires entering the bonus stage in 2-3 and requires completing Stage 4-2 with 2'00 or more remaining on the timer.

Movie Features

  • Emulator Used: Bizhawk version 1.11.9.1
  • Aims for fastest time
  • Achieves the best ending

Spindash and Rolling

  • The spindash can launch Sonic at one of four different speeds. This is determined by the duration of time that the spindash is charged.

Spindash Speed

Charge
(frames)
Speed
(sp/f)
Speed
(pixels/frame)
1-155122
16-317683
32-4710244
48-6312805
This game uses 256 subpixels per pixel
  • While rolling out of a spindash, Sonic can accelerate for a period of time that is twice as long as the length of time that the spindash is charged, capped at 126 frames. Acceleration during this period is 15 sp/f2.
  • When the rolling acceleration period has ended, speed loss can be limited to 1 sp/f2 by depressing the direction buttons in the same direction Sonic is moving.
  • Speed loss while rolling with no buttons depressed is 16 sp/f2. Braking while rolling reduces speed at 31 sp/f2.
  • The optimal time to spend charging a spindash generally depends on the distance needed to travel, the need to change direction while rolling, and the amount of lag generated from charging a spindash. The table below shows which length of time is optimal for travelling in a straight line and without accounting for lag.
Time Elapsed
[charging+rolling]
(frames)
Charging
Time
(frames)
Initial
Speed
(sp/f)
Maximum
Rolling
Speed(sp/f)
1-191512542
20-232512572
24-273512602
28-314512632
32-355512662
36-376512692
38-86167681248
87177681278
88-1403210241984
141-2264812802720
227-2304912802750
231-2355012802780
............
282+6312803170
Table is truncated for charge times between 50 frames and 63 frames. Time spent rolling was used instead of distance as an approximation for distance needed to travel and corresponds to the charging time used in the same row. An example for how this is useful: A 6-frame charge can cover a distance of 20944 subpixels in 37 frames. A 16-frame charge could only cover 20691 subpixels in 37 frames.

General Movement

  • The game tracks position with a Cartesian coordinate system where one axis defines height and the other two axes are aligned diagonally, relative to the screen. Ignoring the height axis, walking or releasing a spindash horizontally or vertically relative to the screen will give Sonic full speed along each axis with a velocity that is the sum of those two vectors.
  • Walking speed is 128 sp/f.
  • Slopes will accelerate Sonic downward on the slope and are too steep for Sonic to walk up.
  • When Sonic rolls off an edge, speed and direction are fixed until Sonic lands. While falling, walls do not alter any of the speed values. The wall will stop motion along one axis but Sonic will continue to move along the other axis. When the wall is no longer in the way, Sonic will resume moving along both axes at the initial speed.
  • Falling acceleration is 48 sp/f2.
  • The game divides surfaces into rectangular areas. When Sonic is falling across a transition from one of these areas to another, falling speed is reset to zero.
  • Some objects will bounce Sonic, such as bumpers and flippers. These launch Sonic at a fixed speed, depending on direction, regardless of the speed Sonic had when interacting with the object.

Power-ups (Unused)

Power-ups appear as sets of triangles with various colors that change frequently. When collected, Sonic will pause momentarily, which is time consuming and typically not useful
  • Blue - Walking speed is doubled
  • Green - Destroys all onscreen enemies
  • Pink - Awards an extra life
  • Red - Gives Sonic invincibility
  • Yellow - Adds 30 seconds to the timer

Score Tally

  • The score tally appears after completing a level. Points are awarded for speed, which is based on time remaining, and rings collected.
  • The time left when completing a level is converted to a speed at a rate of 5 km/h for every second left and is capped at 900 km/h (3 minutes remaining).
  • Enemies add 5 seconds to the timer when destroyed, resulting in a loss of 10 frames in most cases. Keys add 30 seconds when collected.
  • The score tally increments the score at a rate of 100 points every 2 frames until the remaining score to add is less than 100. Then it increments the remaining score at a rate of 10 points every 2 frames. This makes finishing levels in the last 7 frames of an even time slower than finishing the first frame of an odd time because waiting for the even time increments the tens value of the speed bonus (adding 2 frames) but also sets the ones value to 0 (subtracting 10 frames).
  • Rings only count toward the score on boss levels and are worth 10 points per ring.

Lag

  • This game has a lot of lag.
  • The game has a few different types of lag. One type still has the game complete the calculations for that frame and successfully render, but it does not read input, rather it just copies the input from the previous frame.
  • Sonic tends to generate lag when moving.
  • Changes in earlier levels generally cause later levels to change, particularly when there are changes in the lag that copies the controller input from the previous frame.

Individual Level Comments

Zone 1-1 Labyrinth of the Sky

One enemy holds a key and must be destroyed to collect the key. Avoiding the other 2 enemies that were destroyed would have been slower overall. The zone features conveyor belts, bumpers, and ice. Ice has the effect of giving Sonic an increased speed but only while Sonic is travelling across the ice.

Zone 1-2

This zone starts off with a 63-frame charge spindash which was very useful to steer the rolling direction up the ramp to avoid corners while preserving speed as much as possible. A few corners were barely avoided after the second key at the cost of some speed but this was still faster than bouncing on additional walls. The third key is collected while in the air so the animation for collecting all keys is skipped.

Zone 1-3

The first spindash uses 56 frames to charge and collects 2 keys while ahead of the camera, one in the top corner, and the second in a corner near the bottom of the map.

Zone 1-4

Rings cost time during the score tally and collecting them tends to generate lag so they are avoided. Some movement during the ramp segments of the game tend to create additional lag, which is also avoided. Lag generated before the boss fight does not delay the boss spawn. The boss takes 10 hits to destroy. The objects that detach from the boss are invulnerable and cause Sonic to bounce away while rolling. This rebound was abused at one point where Sonic would bounce off one of these every frame and set up getting the next hit on the boss without any delay.

Zone 2-1 Labyrinth of the Sea

This level features cannons. Some cannons alternate the direction they aim. Those cannons start at the same point in their cycle when loaded. They load when the camera is close enough and unload when the camera moves too far away, which makes it important to approach them in a way that the desired direction can be used as soon as possible. The approach to the cannons after collecting the second key made the most use out of this. A slower approach to the cannon forced the camera further left which allowed Sonic to get to the cannon while it was aiming toward the last key.

Zone 2-2

This zone features several doors which creates a maze. Additionally, some of the doors do not return Sonic to the same door that was entered to get there. The first enemy destroyed drops a key that is not retrieved until later. Keys that are dropped from enemies, or dropped from Sonic, will remain on the ground for a short period of time before returning to their original location. The red liquid in the zone cause the time remaining to drop at a rate of 1 second every 8 frames but only while Sonic is in the liquid and not rolling. The 16 frames required to reduce the speed bonus an increment of 10 km/h does not sufficiently compensate for the 10 frames saved in the score tally.

Zone 2-3

The trip immediately after the first key required a small amount of speed along the up-left axis as several walls make travelling all the way directly down-left not possible. The barrel can launch Sonic to one of two locations. The location used in this run requires the buttons RIGHT, 1, and 2 to be depressed during a check on a particular frame. This gives Sonic access to a switch that unlocks the BONUS area. In this run, the BONUS area is accessed shortly after collecting the last key. Typically, when a key is collected, the time remaining is rapidly incremented 30 seconds. However, when a door is entered, this process is paused until the next room is entered. The next room in this case is the BONUS area, which has its own timer. The remaining amount of time that the key awarded, 20 seconds, gets added to the BONUS area timer. Extra time earned there does not get transferred back to the Zone 2-3 timer which saves 100 frames on the score tally.
Sonic is awarded the emerald simply by entering the BONUS area and is not accompanied with any visual indication that it was collected. The BONUS area does not have an end goal. Rings can be collected with an extra life being awarded for every 4 rings that are collected. Sonic exits the BONUS area when time runs out or Sonic falls off, the latter being much faster.

Zone 2-4

The boss fight starts out with smaller enemies that spawn and attack down an alley, then the boss spawns on the left side of the zone and moves to one of three locations to launch a projectile down the associated alley. The length of time that passes before the boss spawns is influenced by the number of enemies destroyed. The greater the number of enemies destroyed, the earlier the boss spawns. The manipulation for the destination was not determined, however, trial and error showed that the boss moving to the middle alley was the fastest. Additionally, the length of time that the boss will remain vulnerable before moving also varies which was manipulated to be long enough to land all 5 hits during the first cycle.

Zone 3-1 Labyrinth of the Factory

The green sections with horizontal waves in this zone stop Sonic and traversing them is very slow. One exception is that Sonic will not be affected by them when skidding to a stop. This technique was not use for the first key collected as the green area is small and takes only a few spindashes to traverse. The star platform loads when the camera gets close to it. The green teleporters have a fixed location that Sonic is sent to when used.

Zone 3-2

This zone has several camera timed objects so loading them quickly is a significant part of fast completion time. A 48-frame charge is not used for spindashing from those platforms because going faster over the short travel distances does not compensate for the additional lag generated.

Zone 3-3

This zone also contains a key located on the green stopping field. This time, a skid is used to load the next star platform sooner. The second key is just far enough away to force that platform to unload and load again, which makes waiting for it to return unavoidable. The third key has a chance of disappearing after destroying the enemy.

Zone 3-4

One ring was collected during the downhill section to land the first few hits on the boss quickly. This requires occasionally standing inside the boss hitbox which would result in taking damage if Sonic was not already invulnerable from a previous incidence of damage. The fast rolling around that destroyed the enemies as they spawned was a few frames faster than standing still, waiting for the boss to spawn. The boss bounces Sonic away at a speed of 768 sp/f. This makes charging a high speed spindash not useful as the speed would not be conserved. The boss takes 10 hits to destroy.

Zone 4-1 Labyrinth of the Castle

Nothing gets in the way of high speed action.

Zone 4-2

This is another maze with one-way doors. The switch that was depressed removes a barrier that blocked access to the third key.

Zone 4-3

This is the largest maze in the game with 32 doors and 20 unique destinations. There were a lot of reasonable route options to check here.

Zone 4-4

The boss has two phases with each phase taking 10 hits to destroy. The boss spawns off to the left of the zone and homes in on Sonic. After each attack, the boss homes in to the new position of Sonic. For this reason, the boss is manipulated to stay in the left corner to minimize travel time. On each decent, the boss is low enough to take two hits with a few frames of leeway. The amount of lag that various movements from Sonic would generate varied between the two phases which resulted in a different sequence of inputs being used for each phase.

Memory Addresses

Suggested Screenshot: Frame 31401

ThunderAxe31: File replaced with a 113-frame improvement.
Memory: Claiming for judging
Memory: The game is supposedly very hard to control but despite that it looks very optimized.
The game has fast paced action, with Sonic frequently bouncing around the field like it's a pinball table, yet still feels well planned like any TAS should. I enjoyed it and so did the rest of the audience.
Accepting to Moons.
feos: Pub.


TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15627
Location: 127.0.0.1
This topic is for the purpose of discussing #6050: Zurggriff's GG Sonic Labyrinth "best ending" in 15:15.91
Post subject: Incorrect Console
Active player (464)
Joined: 11/16/2016
Posts: 34
Sonic Labyrinth is a Sega Game Gear game despite the title listing it as a SMS game.
Challenger
He/Him
Skilled player (1702)
Joined: 2/23/2016
Posts: 1065
I was planning to work on this game someday, but since you have done it, nice job with this game overall! Also ending input early is cool, but it makes me wonder if any earlier is possible. Regardless or not, Yes vote for this game. P.S: I'm the "creator" of address page of this game. Thanks for adding more addresses.
My homepage --Currently not much motived for TASing as before...-- But I'm still working.
Active player (464)
Joined: 11/16/2016
Posts: 34
When I saw that an address set already existed for this game, I figured there was a chance that someone was either working on this or planning to work on it, but I could not find any posts in the forums to support this. I did not make any mention of working on this game though which could have prevented this situation where I beat someone to this TAS. I am glad that you liked the work. As far as ending input earlier, this may be possible by spindashing earlier and dropping the speed to something that keeps the boss on the left and still arrives to land the last two hits and collect the emerald. I just did a test with an attempt that used some late inputs to keep Sonic on the boss and the emerald was still collected on the same frame. I do not have the time to look at it at this today but ending input with such an improvement is likely possible, and as a bonus, should not delay the ending. I could not find a way to determine who created the address set. The game appears to track position in several ways. I made some modifications to existing addresses to still make sense with the addresses that were added but it may need improvement.
Post subject: Re: Incorrect Console
MarbleousDave
He/Him
Player (13)
Joined: 9/12/2009
Posts: 1560
Zurggriff wrote:
Sonic Labyrinth is a Sega Game Gear game despite the title listing it as a SMS game.
It's probably a typo in the emulator. Every Game Gear game emulated would say Master System before the game's title... Also, encode please?
Post subject: Temp Encode
EZGames69
He/They
Publisher, Reviewer, Expert player (4468)
Joined: 5/29/2017
Posts: 2765
Link to video here is a Temp encode
[14:15] <feos> WinDOES what DOSn't 12:33:44 PM <Mothrayas> "I got an oof with my game!" Mothrayas Today at 12:22: <Colin> thank you for supporting noble causes such as my feet MemoryTAS Today at 11:55 AM: you wouldn't know beauty if it slapped you in the face with a giant fish [Today at 4:51 PM] Mothrayas: although if you like your own tweets that's the online equivalent of sniffing your own farts and probably tells a lot about you as a person MemoryTAS Today at 7:01 PM: But I exert big staff energy honestly lol Samsara Today at 1:20 PM: wouldn't ACE in a real life TAS just stand for Actually Cease Existing
Post subject: Shorter Input File
Active player (464)
Joined: 11/16/2016
Posts: 34
Attached is a movie file that ends input 113 frames earlier than the submitted run. Input changes on frame 54751 (before the eighth hit on the last phase of the last boss). The change used a longer spindash charge to reach a remote location. From there, a 60-frame charge (out of 63) was used followed by an immediate and short speed adjustment, at which point the input file ends. From there, Sonic bounces around at a fixed speed for a while before coasting to a stop for the final hits. No further improvements for this submission are expected. http://tasvideos.org/userfiles/info/48628374224248038
WST
She/Her
Active player (490)
Joined: 10/6/2011
Posts: 1697
Location: RU · ID · AM
That feeling when Zurggriff scores a goal once again ;) Yes vote
S3&A [Amy amy%] improvement (with Evil_3D & kaan55) — currently in SPZ2 my TAS channel · If I ever come into your dream, I’ll be riding an eggship :)
Post subject: Movie published
TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15627
Location: 127.0.0.1
This movie has been published. The posts before this message apply to the submission, and posts after this message apply to the published movie. ---- [3758] GG Sonic Labyrinth "best ending" by Zurggriff in 15:15.91
Banned User
Joined: 6/7/2017
Posts: 420
Location: Somewhere
Sorry for the late reply but I just have to say this is amazing. Well done Zurggriff!
Joined: 5/9/2005
Posts: 752
Oh neat; hadn't noticed this was submitted, nor did I know it was even being worked on so this is a nice surprise! Great work Zurggriff! Feels like the site is getting close to having a full set of the 8bit Sonics.
Challenger
He/Him
Skilled player (1702)
Joined: 2/23/2016
Posts: 1065
Paused wrote:
Feels like the site is getting close to having a full set of the 8bit Sonics.
Sonic Drift 1 and 2, Sonic Chaos & Sonic Triple Trouble w/Tails, and Sonic Blast w/Knuckles ;)
My homepage --Currently not much motived for TASing as before...-- But I'm still working.