Skip to main content

Animated Physics Game with JavaScript - Tutorial


Curriculum for the course Animated Physics Game with JavaScript - Tutorial

Learn how to code a JavaScript Game featuring interesting physics and AI mechanics. What makes a great game? Is it about beautiful, polished visuals or about gameplay that feels good and responsive? Is it about unique ideas, or maybe it's the little details, special secrets and Easter eggs? What are the ingredients in a perfect game development recipe? Let's explore fantasy mushroom forest theme and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. ✏️ Course created by @Frankslaboratory ⭐️ Assets ⭐️ All project images: https://www.frankslaboratory.co.uk/downloads/109/all_project_images.zip Background: https://www.frankslaboratory.co.uk/downloads/109/background.png Overlay: https://www.frankslaboratory.co.uk/downloads/109/overlay.png Player: https://www.frankslaboratory.co.uk/downloads/109/bull.png Egg: https://www.frankslaboratory.co.uk/downloads/109/egg.png Toad single: https://www.frankslaboratory.co.uk/downloads/109/toad.png Larva: https://www.frankslaboratory.co.uk/downloads/109/larva.png Toads: https://www.frankslaboratory.co.uk/downloads/109/toads.png Bonus images, environmental art, HQ separate pieces in PSD format etc: https://www.frankslaboratory.co.uk/downloads/109/bonus_image_source_files.zip You will learn: - How to implement a very simple AI to make the creatures feel alive - How to control the FPS of our game and how to measure time to trigger periodic events - How to restart the game by pressing a button - How to apply collision detection, resolve collisions and use that to simulate physics - How to use the built-in drawImage method to draw randomized game environments and animated characters from a sprite sheet - How to capture mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character - How to use HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch. We will write and understand every line of code, we will not rely on any external frameworks or libraries ... and much more ⭐️ Contents ⭐️ ⌨️(0:00:00) Intro ⌨️(0:01:01) Basic setup ⌨️(0:04:51) Object oriented programming in JavaScript ⌨️(0:09:14) Drawing the player ⌨️(0:16:24) Mouse controls ⌨️(0:22:24) Making the player move ⌨️(0:30:04) Creating obstacles ⌨️(0:36:37) Non-overlapping obstacles ⌨️(0:43:12) Randomized images from a sprite sheet ⌨️(0:48:27) Positioning rules ⌨️(0:54:26) Reusable collision detection method ⌨️(0:58:31) Let's add physics ⌨️(1:06:38) 8-directional sprite animation ⌨️(1:10:52) Animation angles ⌨️(1:17:58) Debug mode ⌨️(1:21:31) Player movement boundaries ⌨️(1:24:20) FPS ⌨️(1:33:59) Egg class ⌨️(1:38:52) Periodically adding new eggs ⌨️(1:45:51) Egg physics ⌨️(1:51:26) Draw order ⌨️(1:59:44) Enemy class ⌨️(2:11:03) Larva class ⌨️(2:14:30) Egg hatching ⌨️(2:24:28) Larva sprites and collisions ⌨️(2:29:06) Gaining score points ⌨️(2:31:47) Particle effects ⌨️(2:40:42) Particle motion ⌨️(2:47:46) Randomized enemy skins ⌨️(2:52:09) Win and lose condition ⌨️(3:02:41) Restart game 🎉 Thanks to our Champion and Sponsor supporters: 👾 Nattira Maneerat 👾 Heather Wcislo 👾 Serhiy Kalinets 👾 Erdeniz Unvan 👾 Justin Hual 👾 Agustín Kussrow 👾 Otis Morgan -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Watch Online Full Course: Animated Physics Game with JavaScript - Tutorial


Click Here to watch on Youtube: Animated Physics Game with JavaScript - Tutorial


This video is first published on youtube via freecodecamp. If Video does not appear here, you can watch this on Youtube always.


Udemy Animated Physics Game with JavaScript - Tutorial courses free download, Plurasight Animated Physics Game with JavaScript - Tutorial courses free download, Linda Animated Physics Game with JavaScript - Tutorial courses free download, Coursera Animated Physics Game with JavaScript - Tutorial course download free, Brad Hussey udemy course free, free programming full course download, full course with project files, Download full project free, College major project download, CS major project idea, EC major project idea, clone projects download free

What's Hot

CVR Nummer : Register CVR Number for Denmark Generate and Test Online

CVR Nummer : Register CVR Number for Denmark Generate and Test Online | Image credit: Pexel What Is Danish CVR The Central Business Register (CVR) is the central register of the state with information on all Danish companies. Since 1999, the Central Business Register has been the authoritative register for current and historical basic data on all registered companies in Denmark. Data comes from the companies' own registrations on Virk Report. There is also information on associations and public authorities in the CVR. As of 2018, CVR also contains information on Greenlandic companies, associations and authorities. In CVR at Virk you can do single lookups, filtered searches, create extracts and subscriptions, and retrieve a wide range of company documents and transcripts. Generate Danish CVR For Test (Fake) Click the button below to generate the valid CVR number for Denmark. You can click multiple times to generate several numbers. These numbers can be used to Test your ...

Bing Homepage Quiz: Fun, Win Rewards, and Brain Teasers

Bing, Microsoft's search engine, has taken interactive engagement to the next level with its captivating feature - the Bing Homepage Quiz. This intriguing daily quiz not only challenges your knowledge but also offers a chance to earn rewards. In this comprehensive guide, we will explore the ins and outs of the Bing Homepage Quiz, including how to play, the different types of quizzes, and how you can earn and use rewards through this engaging feature. Bing homepage Quiz | Image credit: LanguageLassi How to Play the Bing Homepage Quiz Playing the Bing Homepage Quiz is simple and enjoyable. Here's how you can get started: Visit Bing : Open your preferred web browser and navigate to the Bing homepage (bing.com). Look for the Quiz : On the Bing homepage, keep an eye out for the interactive quiz card. This card is usually located near the bottom of the page and features a captivating image related to the quiz. Click to Start : Click on the quiz card to begin the quiz. It...

How To Iterate Dictionary Object

Dictionary is a object that can store values in Key-Value pair. its just like a list, the only difference is: List can be iterate using index(0-n) but not the Dictionary . Generally when we try to iterate the dictionary we get below error: " Collection was modified; enumeration operation may not execute. " So How to parse a dictionary and modify its values?? To iterate dictionary we must loop through it's keys or key - value pair. Using keys