GithubHelp home page GithubHelp logo

yunzixun / lyl_whack-a-mole Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liuyulei001/lyl_whack-a-mole

0.0 1.0 0.0 5.47 MB

一款简单的打地鼠小游戏,涉及到音频、动画、计算、视图等各种配合!

License: MIT License

Objective-C 100.00%

lyl_whack-a-mole's Introduction

LYL_whack-a-mole

一款简单的打地鼠小游戏,涉及到音频、动画、计算、视图等各种配合!

1.视图布局

两层for循环布局九宫格,没个格子都是一个MouseItemView视图;

MouseItemView视图:

设置MouseItemViewDelegate:- (void)hitMouse:(MouseItemView *)mouseItem;//打中地鼠后回调

  • (void)mouseOutHole;//地鼠出洞(动画)

  • (void)mouseInHole;//地鼠回洞(动画)

2.音频工具GameSoundTool:用于背景音乐及打击音效

@property(nonatomic,assign,readonly)BOOL isPlaying;//是否正在播放

@property(nonatomic,assign)BOOL circulating;//是否需要循环播放

  • (void)playSoundWithURL:(NSURL *)soundURL;//播放

  • (void)stopSound;//停止

lyl_whack-a-mole's People

Contributors

liuyulei001 avatar

Watchers

Jornathan Thorne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.