打地鼠.swf,代码,flash版的
2022-11-08 13:40:34 53KB 打地鼠
1
这是自己写的flash小游戏,经典的打地鼠游戏,用as编程
2022-11-08 13:34:29 88KB flash游戏
1
简易的打地鼠游戏Android,一个简单的小游戏
2022-11-02 20:14:19 3.23MB Android
1
c语言期末大作业,借助Easy-X实现疯狂打地鼠小游戏,包含素材和设计报告。
2022-10-28 09:07:48 7.26MB c语言
1
Android游戏设计打地鼠,能实现简单的游戏基本操作。是模仿大家熟悉的打地鼠小游戏所设计。
2022-10-18 21:31:40 3.57MB Android
1
使用C#写的打地鼠小游戏,多用于基础代码实现,功能简单使用
2022-10-18 09:04:27 152KB 打地鼠
1
Creator打地鼠游戏hitmouse.zip // Learn cc.Class: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html // Learn Attribute: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html cc.Class({ extends: cc.Component, properties: { mouse: [cc.Node], hammer: cc.Node, txtCount: cc.Label, }, // LIFE-CYCLE CALLBACKS: onLoad () { var manager = cc.director.getCollisionManager(); manager.enabled = true; this.count = 0; this.txtCount.string = this.count; }, start () { cc.director.getScheduler().schedule(this.logic, this, 0.5, false); this.node.on(cc.Node.EventType.TOUCH_START, function(event){ for(let i = 0; i < this.mouse.length; i++){ if(this.mouse[i].opacity == 0){ continue; } let parent = this.mouse[i].parent; let maskPos = parent.parent.convertToWorldSpaceAR(parent.position); let maskRect = cc.rect(maskPos.x - parent.width / 2 , maskPos.y , parent.width, parent.height); let mouse = this.mouse[i]; let mousePos = parent.convertToWorldSpaceAR(mouse.position); let mousRect = cc.rect(mousePos.x - mouse.width / 2, mousePos.y - mouse.height / 2, mouse.width, mouse.height); let mixRect = new cc.Rect(); maskRect.intersection(mixRect, mousRect); if(mixRect.contains(event.getLocation())){ this.hammer.position = parent.position; this.hammer.active = true; this.count++; this.txtCount.string = this.count; break; } } }, this); this.node.on(cc.Node.EventType.TOUCH_END, function(event){ this.hammer.active = false; }, this); }, logic(){ let index = Math.floor(Math.random() * 9); cc.log(`index:${index}`); if(index < 0 || index >= this.mouse.length){ return; } this.mouse[index].getComponent('mouse').appear(); }, // update (dt) {}, });
2022-09-23 16:05:12 468KB Creator打地鼠
1
Scratch游戏项目
2022-09-03 19:06:37 414KB scratch
1
前言在开始构建我们的游戏之前,让我们从GitHub下载教程。你也可以下载已完成的版本,但是首先尝试与我们一起构建你的游戏。如果你在我们的教程中遇到麻烦,请学习一
2022-08-04 21:00:15 2.49MB 游戏
1
appinventer 软件开发 打地鼠游戏
2022-07-31 16:03:49 23KB appinventer 软件开发
1