Problem in constants.WIDTH & constants.HIGHT


#1

When i give,

map_width = constants.WIDTH
map_height = constants.HEIGHT

in offline version it runs perfectly but online gives error
AttributeError: module ‘hlt.constants’ has no attribute ‘WIDTH’

Thanks in advance for the help


#2

I use this:
map_width = game.game_map.width
map_height = game.game_map.height

:wink:


#3

Thanks , I will try that.