Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Create isometric shader #4

Open
justgook opened this issue Jun 22, 2019 · 0 comments
Open

Create isometric shader #4

justgook opened this issue Jun 22, 2019 · 0 comments

Comments

@justgook
Copy link
Owner

justgook commented Jun 22, 2019

Tiled have isometric maps, so we need way to render them:

https://gamedevelopment.tutsplus.com/tutorials/isometric-depth-sorting-for-moving-platforms--cms-30226

https://gamedevelopment.tutsplus.com/tutorials/creating-isometric-worlds-a-primer-for-game-developers--gamedev-6511
Magic functions:

//Cartesian to isometric: 
isoX = cartX - cartY;
isoY = (cartX + cartY) / 2;
//Isometric to Cartesian:
cartX = (2 * isoY + isoX) / 2;
cartY = (2 * isoY - isoX) / 2;
@justgook justgook added this to To do in Abstract Game Engine Jun 28, 2019
@justgook justgook moved this from To do to Backlog in Abstract Game Engine Jun 28, 2019
@justgook justgook moved this from Backlog to To do in Abstract Game Engine Jun 28, 2019
@justgook justgook added this to the 2.0.0 milestone Jun 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

No branches or pull requests

1 participant