Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Dart
  • Table Of Contents Toc
Learning Dart

Learning Dart

4.4 (10)
close
close
Learning Dart

Learning Dart

4.4 (10)

Overview of this book

Mastering Dart by Projects is a step-by-step guide that aims to give you hands-on knowledge about programming in Dart using an example-based approach.If you want to become a web developer, or perhaps you already are a web developer but you want to add Dart to your tool belt, then this book is for you. This book assumes that you have at least some knowledge of HTML and how web applications work. Some previous programming experience, preferably in a modern language like C#, Java, Python, Ruby, or JavaScript, will also give you a head start. You can also work with Dart on your preferred platform, be it Linux, Mac OS X, or Windows.
Table of Contents (14 chapters)
close
close
13
Index

Chapter 7. Building Games with HTML5 and Dart

In this chapter, you will use the knowledge of the previous chapters to create a well-known memory game. But instead of presenting and explaining the code completed in the previous chapters, a model is designed first, and you work up your way from a modest beginning to a completely functional game, spiral by spiral. You will also learn how to enhance the attractiveness of web games with audio and video techniques. The following topics will be covered in this chapter:

  • The model for the memory game
  • Spiral 1 – drawing the board
  • Spiral 2 – drawing cells
  • Spiral 3 – coloring the cells
  • Spiral 4 – implementing the rules
  • Spiral 5 – game logic (bringing in the time element)
  • Spiral 6 – some finishing touches
  • Spiral 7 – using images
  • Adding audio to a web page
  • Using an audio library – Collision clones
  • Adding video to a web page
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Dart
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon