Changed perspective of tiles.

This commit is contained in:
Sander Schobers 2019-12-29 12:53:12 +01:00
parent c4fc256c19
commit 63ffc04017
7 changed files with 14 additions and 15 deletions

View File

@ -94,22 +94,21 @@ func (l *playLevel) posToScreenF32(p geom.PointF32, z float32) geom.PointF32 {
}
func (l *playLevel) posToCabinet(p geom.PointF32) geom.PointF32 {
return geom.PtF32(p.X*100-p.Y*50, p.Y*40)
return geom.PtF32(p.X*100-p.Y*50, p.Y*70)
}
// <- 150->
// <-100->
//
// /----/| ^ ^
// / / | | 40
// /----/ | 140 v ^
// / / | | 70
// /----/ | 170 v ^
// | | | | |
// | | / | 100
// |----|/ v v
//
// Center: 74,19
// Offset between horizontal tiles: 100,0
// Offset between vertical tiles: -25,40
// Offset between vertical tiles: -25,70
func (l *playLevel) Layout(ctx *alui.Context, bounds geom.RectangleF32) {
if l.init {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

@ -3,8 +3,8 @@ texture: brick
part:
name: brick
sub_texture: 0,0,1020,960
anchor: 510,780
sub_texture: 0,0,1020,1140
anchor: 510,870
scale: 6
:part

View File

@ -3,15 +3,15 @@ texture: lava_brick
part:
name: lava_brick
sub_texture: 0,0,1020,960
anchor: 510,180
sub_texture: 0,0,1020,1140
anchor: 510,270
scale: 6
:part
part:
name: magma
sub_texture: 0,960,1020,960
anchor: 510,1140
sub_texture: 0,1140,1020,1140
anchor: 510,1410
scale: 6
:part

View File

@ -3,15 +3,15 @@ texture: magma
part:
name: magma
sub_texture: 0,0,1020,960
anchor: 510,180
sub_texture: 0,0,1020,1140
anchor: 510,270
scale: 6
:part
part:
name: sunken_overlay
sub_texture: 0,960,1020,960
anchor: 510,1140
sub_texture: 0,1140,1020,1140
anchor: 510,1410
scale: 6
:part

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 KiB

After

Width:  |  Height:  |  Size: 419 KiB