Fixed some stuff, procrastinating the real problem
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from OpenGL.GL import *
|
||||
from dusk.defs import defs
|
||||
from editortool.map.mapdefs import TILE_WIDTH, TILE_HEIGHT, TILE_DEPTH
|
||||
|
||||
class Tile:
|
||||
def __init__(self):
|
||||
self.tile_id = 0
|
||||
|
||||
def draw(self, x, y, z):
|
||||
w = float(defs.get('TILE_WIDTH'))
|
||||
h = float(defs.get('TILE_HEIGHT'))
|
||||
d = float(defs.get('TILE_DEPTH'))
|
||||
w = TILE_WIDTH
|
||||
h = TILE_HEIGHT
|
||||
d = TILE_DEPTH
|
||||
|
||||
x = x * w
|
||||
y = y * h
|
||||
|
||||
Reference in New Issue
Block a user