Search the Community
Showing results for tags 'prefab class'.
Found 1 result
PeterC posted a topic in Phaser 2Hi, I was wondering if it's possible to create some kind of prefab class that isn't based on something. Some information: I'm using Grunt together with YO, i have followed the tutorial from flappy. I'm building some kind of zelda 2 game. Because i'm using different states, i'll like to create prefabs that can be included as extention and not as based on. The prefabs i've learn in the flappy tutorial is that the prefab is always based on a object (sprite,tile,group...). This is what i'm trying to do: http://screencast.com/t/HU2HQlF7 I want to have a class that shares the game object and has his own update method, And ideas, examples, is it possible? Thanks in advance! Grtz, Peter