Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Actor(//put arguments here) {
- var actor = new GameObject();
- var thinkDelay = 0;
- var agroRadius = 0;
- ...
- var create:function(...){
- actor.addComponent(ai..);
- actor.addComponent(life..);
- actor.addComponent(physics..);
- actor.addComponent(rendering..);
- actor.addComponent(animation..);
- actor.addComponent(etc..);
- }
- }
- var zombie = new Actor();
- zombie.thinkDelay = 5;
- zombie.agroRadius = 25;
- zombie.create();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement