Exemple #1
0
        public void PlaceOnGround(Vector2f on_ground_pos, Texture texture)
        {
            float x = on_ground_pos.X - texture.Size.X / 2.0f;
            float y = on_ground_pos.Y + Constants.TILE_SIZE - texture.Size.Y;

            cEnvironmentItem item = new cEnvironmentItem(new Vector2f(x, y), texture);

            envItems.Add(item);
        }
Exemple #2
0
        public void PlaceOnGround(Vector2f texture_pos, Texture texture, cAABB bounding_rect)
        {
            cEnvironmentItem item = new cEnvironmentItem(texture_pos, texture, bounding_rect);

            envItems.Add(item);
        }