Home My space log
Language EN (English)

Build a simple 2D physics engine for JavaScript games

Beginner robot Difficulty 2/5 Build project Stop 3 / 166 JavaScript ages 11-13

A free resource picked by the open-source community. Open it to see what's inside.

Start the guide

Your guide

AI-written overview

What is it?

Build a simple 2D physics engine for JavaScript games is in our Physics Engine build group, a list of tutorials about making things bounce, fall and collide in a program. We only know the title, short description and level from our list.

Is it for me?

It is for people who like games, maths and science. Most items need some programming, so it suits about age 11-13 and up.

Grown-ups: this includes maths. A beginner can ignore the hardest parts at first.

How to start

  1. Pick a tutorial that uses a language you know.
  2. Open it with a grown-up and read the first step.
  3. Make one ball fall on the screen first.

How much time?

Plan about 40 minutes at a time over about 5 sessions. (estimate)

40 min per session 5 sessions estimate

A plan you can follow

  1. Day 1 30 min Set up and draw a ball.
  2. Week 1 60 min Add gravity.
  3. Week 2 60 min Add bouncing.
  4. Week 3 60 min Add a second object.

Times are estimates. Go at your own speed.

Go to the learning site

You are about to leave our site to visit Build a simple 2D physics engine for JavaScript games on another website. We don't control that site. Ask a grown-up before you go. Check the original for details. This site may not be in your language. Your browser can translate the page: look for the translate button near the address bar, or ask a grown-up to help.

You are leaving our site

Grown-ups: this link goes to a site we do not control and have not reviewed beyond its listing. Please look at it first.

Go to the learning site (opens the original site in a new tab)

https://developer.ibm.com/tutorials/wa-build2dphysicsengine/?mhsrc=ibmsearch_a&mhq=2dphysic

On another site. From the list: codecrafters-io/build-your-own-x · License: CC0-1.0 · Build your own Physics Engine

How to learn from an article or tutorial site

Your path through Web development

Stop 1 2D breakout game using Phaser Build project Stop 2 A Simple Web Server Build project Stop 3 Build a simple 2D physics engine for JavaScript games Build project Stop 4 CSS Learning Resource list Stop 5 Hydrogen Resource list Stop 6 JavaScript Learning Resource list Stop 7 jQuery Resource list

Explore next