Cpper
C/C++高级工程师 Android高级软件工程师 IT集成工程师 音频工程师 熟悉c,c++,java,c#,py,js,asp等多种语言 程序猿
import QtQuick 2.0
import QtQuick.Particles 2.0

Rectangle 
{
    id
: root
    width: 480
; height: 360
    color: "#1f1f1f"
    ParticleSystem 
    {
        id: ps
    
}
    
    Emitter 
    
{
        id
: emitter
        anchors.left: parent.left
        anchors.verticalCenter: parent.verticalCenter
        width: 1
; height: 1
        system: ps
        emitRate: 10
        lifeSpan: 6400
        lifeSpanVariation: 600
        size: 32
        
        velocity: PointDirection 
        {
            x: 100
            y: 0
            xVariation: 0
            yVariation: 100/6
        
}
        
        acceleration: AngleDirection 
        
{
            angle
: 90
            magnitude: 30
        
}
    }
    ImageParticle 
    
{
        source
: "assets/ufo.png"
        system: ps
    
}
}
posted on 2015-08-20 14:31 ccsdu2009 阅读(532) 评论(0)  编辑 收藏 引用 所属分类: QT编程

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理