Open phanbu opened 6 years ago
okay i have done all of that is there anything else i should do or should i wait till our next class? i created a tile layer for the grass instead of an object layer also my program isnt running correctly right now
You said that it's not working correctly. What is it doing?
It was saying something about tilemap, but I’m leaving for scouts now so I have to wait till afterwards
I’m Batman 🦇
On Mar 27, 2018, at 5:56 PM, Paul Hanbury notifications@github.com wrote:
You said that it's not working correctly. What is it doing?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Traceback (most recent call last): File "C:\Program Files\Python36\lib\site-packages\pytmx\pytmx.py", line 621, in get_layer_by_name return self.layernames[name] KeyError: 'exits'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/pycourse/gamboge/main.py", line 7, in
Process finished with exit code 1
THIS IS WHAT HAPPENS WHEN I RUN MAIN BUT WHEN I RUN EVERY OTHER FILE SEPARATELY THEY WORK PERFECTLY
@CrossSpider3456 --
I don't know how much you were paying attention to what I was saying to @jhanbu yesterday, but here are some things we talked about and other things that you might want to keep in mind:
class GrassyArea(pygame.sprite.Sprite):
TiledMap._render()
method from drawing this layer, but then you'd want toblit
the grass between theself.map.bottom
andself.map.top
duringGame.draw()
.rect
attribute, so rectangular grassy areas would be easiest to implement.Either way, remember that you should
pull
before you start working. When you are finished, after youcommit
locally, you will either need tofetch
ormerge
before youpush
back to the remote repo,