Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEFINE ENTITY Camera(Rectangle r, MapProperties properties, Number w = width, Number h = height)
- [
- ADD BEHAVIOR Camera(getCamera(), w, h, r);
- ON Camera:exitFollowZone
- [
- SEND CheckAndFollow(entity) TO BroadcastManager;
- ]
- ON Spawn:added(Player)
- [
- SEND CheckAndFollow(entity);
- ]
- ON Entity: init
- [
- SUBSCRIBE EntityManager ON Spawn:added;
- SUBSCRIBE BroadcastManager ON Camera:checkAndFollow;
- ]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement