slycrel / JSTileMap

TMX Map viewer for SpriteKit
Other
212 stars 34 forks source link

Black Screen when in Window w/ Other Controls #19

Closed davecom closed 9 years ago

davecom commented 10 years ago

I'm not yet sure if this a JSTileMap issue, SpriteKit bug, or mistake on my part. I had a tile set working well in a SKView that took up the entirety of an OS X window. I now added controls to the top part of the window and constrained the SKView (where the tile map is loaded) to the bottom of the window. I kept the size of the SKView the same. However, without any code changes (just changes in Interface Builder) the SKView now just draws a big black box. Has anyone seen behavior like this?

screen shot 2014-10-08 at 2 15 49 am

The code/.xib doing this is here: https://github.com/davecom/Crump

slycrel commented 10 years ago

@davecom my apologies, I haven't yet had time to look at this. It's on my list though.

davecom commented 10 years ago

No apology necessary!

slycrel commented 9 years ago

hi @davecom I never did find any issues with your code, and am still unsure why you were seeing a blank screen. I checked again today and after updating your project to modern swift, and commenting out your pseudo-dynamic enemy placement code, I was able to run this again just fine. (I do not know why swift thinks that the object group dictionaries are SKNodes) I hope you got past this specific issue when you were working on it before.

davecom commented 9 years ago

I'll take a look and see if I can recreate it. Perhaps the code you commented out was the culprit. I'll let you know.

slycrel commented 9 years ago

I also had to change some paths to get it to compile. I suspect that the project was named 'Chomp' at some point. =)