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, Second Edition
  • Table Of Contents Toc
Learning Dart, Second Edition

Learning Dart, Second Edition - Second Edition

By : Ivo Balbaert
5 (1)
close
close
Learning Dart, Second Edition

Learning Dart, Second Edition

5 (1)
By: Ivo Balbaert

Overview of this book

Dart is an open source programming language for the web, developed at Google, with a steadily growing community. It is a single language for both client and server, appropriate for the full range of devices on the web – including phones, tablets, laptops, and servers. It encompasses the lessons of the last two decades of web programming. This book will give you a thorough overview of Dart, taking you through its ecosystem, syntax, and development principles. With this book, you will build web games using HTML5, audio, and video, and also dive into processing and displaying data in HTML5 forms with Dart. You will also learn how web components fit together with HTML5, and how to apply them in business web applications of the future. You will discover how to store data on the client, communicate data between client and server with JSON, and store JSON data with MongoDB and MySQL. Stop solving new challenges with the same old tools – let Dart show you a whole new way.
Table of Contents (13 chapters)
close
close
12
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. However, instead of presenting and explaining the code completed in the previous chapters, you will design a model first and work your way up from a modest beginning to a completely functional game, step by step. 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
  • The Collision Clones game
  • 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, Second Edition
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