Beispiel #1
0
        public override void Initialize()
        {
            var render = GetComponent <AnimationRenderComponent>();

            render.SetBitmap("organism");
            render.SetAnimation(4, new Vector2(16, 32), .5f, AnimationEval);

            _audio = GetComponent <AudioComponent>();
            _audio.SetAudio("nom");

            _movement = GetComponent <MovementComponent>();
            _status   = GetComponent <StatusComponent>();

            Game.Messages.Register(this);
        }