Esempio n. 1
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();
        }