Love Buy Fun-Easy & fun

2018-01-29  本文已影响0人  lalallaaa

Angela hard work, because her boyfriend betrayed her, in a huff, she began her revenge plan. Sweet vengeance, began to restore her hard work, this is a surprising clothing store, the player's mission is to help Angela take care of the store, ready to capture the presence of rats to complete the task of this week!    

What this framework does for you:

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

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

Manages timer that can be pauses and resumed.

Exposes 4 controls: moveLeft(), moveRight(), rotate() and drop().

Detects completed lines and increments score. Higher score speeds up the timer.

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

Allows serialization to and from a dictionary that is compatible with property list.

What you need to implement:

Graphics and animations. Be creative!

User input, like buttons or gestures.

Write serialized dictionary to persistent location and restore it.

Create game menu with play/pause/reset options.

Listen to callback from the engine and update your UI.

Show next block and score on screen.

上一篇 下一篇

猜你喜欢

热点阅读