Make It Your Own

Twelve is complete and fun now, but it’s not really finished. Improving it could help you reinforce skills you learned earlier in this book, or could take you beyond what you’ve already done. Here are some ideas to get you started.

Add a start screen.

Break Twelve into two or more scenes—one that gives the user some instructions and one for the game. A really amazing start screen could even play an animation of a move.

Add some sounds.

Give Twelve some sound effects, maybe a happy “snick” for a successful move and something sadder for an unsuccessful one.

Add different visual cues.

The highlighted squares in Add Visual Feedback, are just one possible way to give the player some feedback. Perhaps you can think of a way you like ...

Get Learn Game Programming with Ruby now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.