Ring Measure - Easy & practical

2018-05-22  本文已影响0人  lalallaaa

This is a software for testing the size of your fingers. Calculate the dimensions of your fingers by the distance the finger slides.

- Measurement tutorial, let you learn to measure immediately;

- The size chart allows you to specify your own size at the first time after the measurement;

What this framework does for you:

Storesgame state, like cells on game board, falling blocks, time intervals, and score.

Generatesnext blocks with random shape and orientation, while avoiding simple repetition.

Managestimerthat can be pauses and resumed.

Exposes4 controls: moveLeft(), moveRight(), rotate() and drop().

Detectscompleted linesand increments score. Higher score speeds up the timer.

Reports all events via acallback, like periodic fall, line completion, game over, etc.

Allowsserializationto and from a dictionary that is compatible with property list.

What you need to implement:

Graphicsand animations. Be creative!

Userinput, like buttons or gestures.

Write serialized dictionary topersistentlocation and restore it.

Create gamemenuwith play/pause/reset options.

Listen tocallbackfrom the engine and update your UI.

Show next block andscoreon screen.

上一篇 下一篇

猜你喜欢

热点阅读