来源:Licence:MIT作者:旅路     这份代码修改自 原作者:唐元帅 的code4App 作品。     原链接为:/ios/打地鼠游戏/53d0f7f0933bf0a3648b5827          主要修改有:     1、将appDelegate上面添加View的方法移植到了一个控制器(ZMStartViewController)上。适应新的设计模式,保证UIWindow的纯洁。     2、添加部分注释 和 修改图片存放路径。     3、添加main.storyBoard 和 launch.storyboard.     3、
2022-11-26 09:17:13 3.51MB iOS源代码 游戏
1
java 打地鼠 游戏 包含完整代码 希望和大家交流一下
2022-11-08 21:55:37 814KB java 打地鼠 游戏 包含完整代码
1
这是自己写的flash小游戏,经典的打地鼠游戏,用as编程
2022-11-08 13:34:29 88KB flash游戏
1
简易的打地鼠游戏Android,一个简单的小游戏
2022-11-02 20:14:19 3.23MB Android
1
Android游戏设计打地鼠,能实现简单的游戏基本操作。是模仿大家熟悉的打地鼠小游戏所设计。
2022-10-18 21:31:40 3.57MB Android
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
android打地鼠游戏源码 学习点: 1、适应屏幕 2、切割图片 3、游戏动画
2022-06-23 09:11:37 4.66MB android 游戏 打地鼠 游戏源码
1