UML类图——wxappDemo1
2018-01-30 17:52:24 52 举报
wxapp_demo
作者其他创作
大纲/内容
Player
+ touched:bool+ bullets:array
GameInfo
+ btnArea:array
Music
+ bgmAudio+ shootAudio+ boomAudio
+ constructor()+ playBgm()+ playShoot()+ playExplosion()
模块功能描述如下: wxapp_demo1 飞机大战
Background
+ top:num
+ constructor(ctx)+ update()+ render(ctx)
Sprite
+ img+ width+ height+ x+ y+ visible
Enemy
+ [__.speed]:num
+ constructor()+ init(speed)+ update()- initExplosionAnimation()
DataBus
+ pool:Pool+ frame:num+ score:num+ bullets:array+ enemys:array+ animations:array+ gameOver:bool
+ constructor()+ reset()+ removeEnemy(enemy)+ removeBullets(bullet)
Bullet
Animation
+ [__.timer]:num+ isPlaying:bool+ loop:bool+ interval:num+ index:num+ imgList:array+ count:num
Main
+ bg:BackGround+ player:Player+ gameinfo:GameInfo+ music:Music
+ constructor()+ restart()+ loop()+ update()+ render()- touchEventHandler(e)- collisionDetection()- enemyGenerate()
Pool
+ [__.poolDic]:array
收藏
0 条评论
回复 删除
下一页