oakes / play-clj

A Clojure game library
The Unlicense
939 stars 73 forks source link

Add support for Container entities #22

Closed mk12 closed 10 years ago

mk12 commented 10 years ago

Instead of using a one-cell table, it makes more sense to use a Container. I've added container*, container, container!, and container? to match all the other types.

The reason I wanted to add this: I was trying to put entities in the corners of the screen, but with a margin. The simplest way to do this is to put everything in a container and then :pad the container.

oakes commented 10 years ago

Thanks, it looks good. I assume you didn't mean to make container* call (ActorEntity. (Table. child)) right?

mk12 commented 10 years ago

Not sure why I did that — yes, should be (ActorEntity. (Container. child)).

oakes commented 10 years ago

No problem, I merged and fixed it. Thanks!