Trampoline: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 19: Line 19:
[[File:TrampolineBrokenStretching.gif|320px|thumb|right|The trampoline spring when forced to stretch; it doesn't line up with the trampoline, instead going below and above it]]
[[File:TrampolineBrokenStretching.gif|320px|thumb|right|The trampoline spring when forced to stretch; it doesn't line up with the trampoline, instead going below and above it]]


The spring has the incomplete code to visually stretch/compress itself. The math is not complete; on the right, you can see the effects it has when it is forced to run. The errors are caused by the programmers putting 50 and 500 arbitrarily in place of 150 (the height of the trampoline), and not putting a simple line of code to correct the spring's apparent position.
The spring continuously updates to be 75 units under the top of the trampoline, and has the incomplete code to visually stretch/compress itself. The math is not complete; on the right, you can see the effects it has when it is forced to run. The errors are caused by the programmers putting 50 and 500 arbitrarily in place of 150 (the height of the trampoline), and not putting a simple line of code to correct the spring's apparent position. The lack of this code supports the hypothesis that the code was abandoned early on.
 
When the aforementioned spring code is repaired and the trampoline top is made to lower when Mario gets on it, the intended compression effect can be seen.