Example #1
0
 void SFML.Graphics.Drawable.Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates states)
 {
     rnd = new SFML.Graphics.CircleShape(10);
     ((SFML.Graphics.CircleShape)rnd).Position  = new SFML.System.Vector2f(myBody.Position.X, myBody.Position.Y);
     ((SFML.Graphics.CircleShape)rnd).FillColor = new SFML.Graphics.Color(255, 255, 255, 255);
     ((SFML.Graphics.CircleShape)rnd).Draw(target, states);
     Console.Out.Write("Y: " + myBody.Position.Y);
 }
Example #2
0
 /// <summary>
 /// This will need to be changed if you want drawables to be mutable,
 /// as there is not way to edit the array accuratly besides restarting.
 /// </summary>
 /// <param name="shapeToDraw"></param>
 public void AddToDraw(SFML.Graphics.Drawable shapeToDraw)
 {
     drawables[_indexOfDrawables] = shapeToDraw;
     _indexOfDrawables++;
 }