Skip to content

firepolo/SNESEffect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNESEffect

Small app reproducing the cool SNES perspective effect

Preview:

alt tag

Perspective equation:

'x = x / z
'y = y / z

More an object is far, more it is small.
More an object is near, more it is big.

Rotation equation:

x = x * cos(angle) - y * sin(angle)
y = x * sin(angle) + y * cos(angle)

This equation apply a rotation on Y axe.
This is the same equation that 3D but adapted for the 2D vectors.

Config keys:

  • Forward : W or Up
  • Backward : S or Down
  • Turn left : Left
  • Turn right : Right
  • Strafe left : A
  • Strafe right : D
  • Go up : Space
  • Go down : CTRL
  • Look up : E
  • Look down : Q

About

Small app reproducing the cool SNES perspective effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages