Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Guest Tutorial #5: Brick Breaker with Yining Shi

47.8K views
•
September 21, 2017
by
The Coding Train
YouTube video player
Guest Tutorial #5: Brick Breaker with Yining Shi

TL;DR

Learn how to create a brick breaker game using p5.js, a JavaScript library for animations and graphics in the browser.

Transcript

hello I am pleased to present another guest tutorial here on the Cody crane and today's guest tutorial is from yuning she and yuning she is an artist and researcher she's an alum of the program ITP where I teach she was also a resident researcher for a year here at ITP and she's done a lot she made a lot of contributions to p5.js org notably this p... Read More

Key Insights

  • 📚 p5.js is a powerful JavaScript library for creating interactive graphics and animations in the browser.
  • 🧱 The process of creating a brick breaker game involves creating and manipulating objects such as the paddle, ball, and bricks.
  • 💥 Collision detection is crucial for handling interactions between the ball, paddle, and bricks.
  • 😉 Game logic, including win and loss conditions, can be implemented using if statements and appropriate variable checks.
  • 👾 Further enhancements and customizations, such as adding colors, animations, and difficulty levels, can be made to create a unique and engaging game experience.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is p5.js?

p5.js is a JavaScript library for creating animations and graphics in the browser. It provides a simple and intuitive way to create interactive visuals.

Q: How do you create the paddle in the game?

The paddle is created using the p5.js library's createVector function, which allows you to define the position of the paddle. You can control the movement of the paddle using keyboard inputs and handle edge cases to prevent it from moving out of the canvas.

Q: How do you handle the ball bouncing off the paddle and bricks?

By checking for collisions between the ball and the paddle or bricks, you can determine how the ball should bounce off. When the ball hits the paddle, you can reverse its y-direction to make it bounce back. Similarly, when the ball hits a brick, you can either make the brick smaller or destroy it.

Q: How do you determine if the player has won or lost the game?

If the ball goes below the canvas, the game is considered over and the player loses. If all the bricks are destroyed, the player wins. These conditions are checked in the draw function, and an appropriate message is shown on the screen.

Summary & Key Takeaways

  • The tutorial is presented by Yuning She, an artist and researcher, who demonstrates how to create a brick breaker game using p5.js.

  • In the game, players use the paddle to bounce a ball and break bricks on the screen.

  • The tutorial covers how to create the paddle, ball, and bricks, as well as how to handle interactions between them.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Computer Mouse Conference Demos! (node.js + tensorflow.js) thumbnail
Computer Mouse Conference Demos! (node.js + tensorflow.js)
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
ITP/IMA Winter Show 2018 thumbnail
ITP/IMA Winter Show 2018
The Coding Train
Coding Challenge #126: Toothpicks thumbnail
Coding Challenge #126: Toothpicks
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.