Donkey Kong Illusion

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

I thought this illusion was really quite interesting.

A "Donkey Kong" mode illusion: the levels appear inclined, but are actually parallel (there is only a height difference between the two triangles of each pair, but all pairs are on the same level).
Credits: Akiyoshi Kitaoka


JetSetIlly

I wonder if that would work on the TV screen. It might be a good way of getting inclined girders on the 2600.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Thomas Jentzsch

I wonder which parts are essential for the illusion. The diagonals wouldn't work on a 2600.

Andrew Davie

Quote from: Thomas Jentzsch on 25 Dec 2025, 06:39 PMI wonder which parts are essential for the illusion. The diagonals wouldn't work on a 2600.

Quick mockup. Kinda works. Appears to be sensitive to the high contrast between black/white.


Al_Nafuur

For the effect better to work I think you need:
  • more space between the diagonals
  • different endings on the opposing sides (e.g. small gap left -> big gap right)
  • and maybe more (smaller) steps



Thomas Jentzsch

#5
I think the colors have the major impact.

Using players would make the coloring easy. But they cannot be arranged gapless. And are also required for other parts.

And when using playfield, alternating colors become complicated. One could arrange them interleaved, like this:

##      ##
    xx      xx
  ##      ##
      xx      xx

But I doubt the effect will work well. Also the resulting vertical gaps will look odd.

But a mix between playfield and only one, repeated player/missile would work. So that playfield will have one color and the player/missile the other color. The latter would have to be shifted left and right 8 pixel between lines.

This will require a mix of normal and early HMOVEs. The ball could be used to hide the resulting comb effect. Since it has the playfield color, the playfield should be black. And the player white (or any other bright color).

For connecting the top and bottom parts of the platforms, at least the player/missile could be used. Maybe the playfield too.

I added a screenshot from a quick hack I did.

JetSetIlly

Quote from: Thomas Jentzsch on 28 Dec 2025, 11:03 PMI added a screenshot from a quick hack I did.

That definitely works. I love that.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Thomas Jentzsch

Some polishing and also with debug colors.

JetSetIlly

In arcade donkey kong the girders are level until donkey kong jumps up and down, causing the girders to tilt. I wonder if the illusion holds when they are animated to move from straight to tilted one-by-one.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Andrew Davie

Quote from: Thomas Jentzsch on 29 Dec 2025, 01:18 AMSome polishing and also with debug colors.

There's *no way* those lines are parallel!!!!  :)
Nice job.

alex_79

Quote from: Thomas Jentzsch on 29 Dec 2025, 01:18 AMSome polishing and also with debug colors.
Very effective!

Quote from: JetSetIlly on 29 Dec 2025, 01:30 AMI wonder if the illusion holds when they are animated to move from straight to tilted one-by-one.
I'm curious too.
Also, I wonder if a convincing "animation" could be made just by changing the colors.

Thomas Jentzsch

Quote from: alex_79 on 29 Dec 2025, 04:26 AM
Quote from: Thomas Jentzsch on 29 Dec 2025, 01:18 AMSome polishing and also with debug colors.
Very effective!

Quote from: JetSetIlly on 29 Dec 2025, 01:30 AMI wonder if the illusion holds when they are animated to move from straight to tilted one-by-one.
I'm curious too.
Also, I wonder if a convincing "animation" could be made just by changing the colors.
The change is done within a single frame, one girder at a time. Why should the eye not be fooled here? It might be irritated for a moment, but then the effect will kick in.