Mattias Hagstrand

Results 28 comments of Mattias Hagstrand

I was also thinking about adding something to `SceneObject`, but instead of adding `add` and `remove` functions, what if we add a new property: ```swift var layer: Layer { get...

I get your point @JohnSundell about having a ingle `Shape`object. Lazily loading the layer is a great idea! It would also make it consistent with `Label`and `Block`. About my other...

Doh! Swift is so great that sometimes I forget it can't do everything... 🙃 Yes, supporting different `CALayer` subclasses is a challenge... 🤔 Making `SceneObject`a class could work since none...

Ahh, yes, I like it! 👍 It also has the added benefit that actors are added to the scene lazily. So if a scene is never activated we don't have...

Ahh, yes, the ordering is a problem. Ok, I'll start by just adding the new method to `SceneObject`. For now we can skip the `remove`function I think. `Actor` already does...

I'm doing an Astroids clone! 😃 ![screen shot 2017-12-05 at 13 33 36](https://user-images.githubusercontent.com/1116408/33607418-540f38e4-d9c1-11e7-9adf-590f6484fd6c.png) My next project will be a top-down racing game. I think the main thing I'm missing in...

@JohnSundell Yeah, I think panning should be translated to mouse drag on macOS. I think it should be useful to start adding plugins that are platform specific. For example, I...

I thought about the same thing, to add a `CollidableEventCollection`. The only problem I see with this is what happens when we add a new protocol (e.g. `Clickable`) and want...

Nice! 😄 Still not sure how we should handle when we want to extract other types of events from `Actor`... 🤔