Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 641 Bytes
using System;
using System.Threading;
using CocosSharp;
namespace Particles
{
public class ParticlesScene : CCScene
{
CCLayer _layer;
public ParticlesScene(CCGameView gameView) : base(gameView)
{
_layer = new CCLayer();
this.AddLayer(_layer);
}
public void DrawParticle(CCPoint point)
{
var explosion = new CCParticleExplosion(CCPoint.Zero)
{
TotalParticles = 10,
StartColor = new CCColor4F(CCColor3B.White),
EndColor = new CCColor4F(CCColor3B.Black),
Position = new CCPoint(point.X / App.Density, App.Height - point.Y / App.Density)
};
_layer.AddChild(explosion);
}
}
}