Esempio n. 1
0
        public override void OnAttach()
        {
            Position = new vec2(50.0f, 50.0f);
            Size     = new vec2(50.0f, 50.0f);
            Velocity = new vec2(0);
            DrawIt   = UpdateIt = true;

            m_particleProps           = ParticleProps.Effect2;
            m_particleProps.LifeTime  = 2.0f;
            m_particleProps.SizeBegin = 2.0f;
            base.OnAttach();
        }
Esempio n. 2
0
        public Window(GameWindowSettings gameWindowSettings, NativeWindowSettings nativeWindowSettings)
            : base(gameWindowSettings, nativeWindowSettings)
        {
            Load_resources();
            m_entities = new List <Entity>();

            ScreenSize = new vec2(1024.0f, 576.0f);

            var texture = m_textures.GetResource("test");

            m_subTexs.AddResouce(0, SubTexture.CreateFromCoords(texture.textureID, new vec2(texture.Width, texture.Height), new vec2(1, 0), new vec2(64, 64)));
            props         = ParticleProps.Effect2;
            props.Gravity = 0.0f;
            emiter        = new ParticlesSystem();
        }
Esempio n. 3
0
 public PlayerTest(Texture texture) : base(texture)
 {
     m_particleEmiter = new ParticlesSystem();
     m_particleProps  = new ParticleProps();
 }