Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dolfik

Pages: [1]
1
DotNet / Box2DX
« on: November 14, 2013, 10:35:37 am »
Hi all. How to synchronize coordinates Box2DX and SFML? And how do i can know how many pixels equals one meter?
P.S. I load tile map and objects from tmx, and i need to create the body of the object coordinates

2
DotNet / Re: Shape
« on: November 11, 2013, 04:05:20 pm »
Ok, thx just i thought it works differently.

3
DotNet / Shape
« on: November 11, 2013, 03:54:54 pm »
I'm trying to draw a shape, but nothing is displayed on the screen. The circle is drawn normally.
Code:
public static void ShapeDraw(RenderWindow window)//(float x, float y, float width, float height, RenderWindow window)
        {
            SShape shape = new SShape();
            shape.Origin = new Vector2f(40, 40);
            shape.Position = new Vector2f(5, 5);
            shape.FillColor = new SFML.Graphics.Color(255, 0, 0);
            window.Draw(shape);
        }

SShape
class SShape : SFML.Graphics.Shape
    {
        //protected Shape();
        //public Shape(SFML.Graphics.Shape copy);

       
        public override Vector2f GetPoint(uint index)
        {
            return new Vector2f();
        }
        public override uint GetPointCount()
        {
            return (uint)0;
        }
       
    }

4
DotNet / Re: window.Display
« on: October 26, 2013, 11:42:09 am »
Thank you. I will optimise code later, now i just learning.

5
DotNet / window.Display
« on: October 25, 2013, 10:26:33 pm »
I shared "window.Draw" in different classes, but now do not display sprites on screen (window.Display), if I write in main.cs "window.Display", it displays only those sprites that are registered in the main.cs, other sprites that are in other classes are not displayed. If I write "window.Display" in, for example, player.cs, it displays only the sprites are registered in player.cs (which is logical). How do I make all the sprites appear correctly?

Code: http://pastebin.com/ZPCxm08P

In simple words, do not display the player sprite.

Pages: [1]
anything