JavaScript DOM based Game Plane Bomber web Game from Scratch
What you'll learn
- How to use JavaScript
- How to create elements dynamically
- Manipulate elements using JavaScript
- Explore JavaScript Document Object Model
Course content
- Preview02:32
- Preview02:58
- 00:07Source Code
- Preview06:19
- 00:14Source Code
- 04:51JavaScript Start Game
- 00:24Source Code
- 07:48Add animation frame.
- 00:32Source Code
- 04:39JavaScript quick Game fixes
- 00:40Source Code
- 02:58Introducing Game Scoring
- 00:44Source Code
- 02:25Show Scoreboard to player
- 00:48Source Code
- 05:13Add Enemy Base
- 00:58Source Code
- 07:30Make the bomb Dynamically creating elements
- 01:12Source Code
- 04:49Move bombs Automatically
- 01:18Source Code
- 05:23Collision Detection
- 01:23Source Code
- 07:31Final Gameplay Tweaks
- 01:29Source Code
- 07:20Bomber Plane Code Review
Requirements
- Fundamental JavaScript concepts
- Access to computer
- Use of editor to write code
- HTML and CSS knowledge
Description
This course is perfect to practice and learn more about the Document Object Model, while building a fun interactive game from scratch. build your own version of this JavaScript game. Step by step lessons with explanations of JavaScript methods and applying logic to create this mini application.
Its not always fun and games to learn JavaScript, but in this case it can be :)
Source code is included so you can try the code at the end of the lessons to see it in action. Useful coding concepts and JavaScript methods are covered to get you more familiar with using them and building out customized applications from scratch.
Scope of the course is to introduce you to element manipulation via the DOM. Content covered relates to effectively creating interactive and dynamic content for web users. I keep non JavaScript coding to a minimal to focus directly on JavaScript. This is a fast paced course straight to the point on how to apply JavaScript.
Element selection using querySelector
Elements as objects in JavaScript
Adding addEventListener Keyboard events
Getting Key press values
Setup of global variables and objects for gameplay
Element creation on the fly createElement() method
Adding new elements to the page appendChild()
Setting of element attributes setAttribute()
Adding animation of content requestAnimationFrame()
Updating element position depending on key press
Updating element style values
Tracking element position within data objects
Using offset values of element to get position X,Y
Adding classes to elements classList()
Applying scoring and game logic for gameplay functionality
Creating dynamic values that can scale with game
Updating element content innerHTML
Applying logic and game concepts.
Adding enemy target to gameplay
Moving targets and document element with gameplay
Adding elements to the page and tracking movement
Dynamically creating elements
Automation of movement for non player elements
Checking element position and determining element overlap
Collision Detection between two elements on the page
Getting element details getBoundingClientRect()
Returning the size of an element and its position relative to the viewport.
Debugging and game checking
Code review and adjustments
No libraries, no shortcuts just learning JavaScript making it DYNAMIC and INTERACTIVE web application.
Step by step learning with all steps included.
Beginner JavaScript knowledge is required as the course covers only JavaScript relevant to the building of the game. Also HTML and CSS knowledge is essential as scope of this course is all JavaScript focused.
Along with friendly support in the Q&A to help you learn and answer any questions you may have.
Try it now you have nothing to lose, comes with a 30 day money back guarantee.
Start building your own version of the game today!!!!
Who this course is for:
- Beginners to JavaScript
- Anyone who wants to practice writing JavaScript
- Web developers
- Anyone who wants to learn to make a JavaScript game without any libraries
- Beginners to JavaScript curious about Document Object Model and JavaScript Methods
Instructor
I'm here to help you learn, achieve your dreams, come join me on this amazing adventure today
Google Developers Expert - GSuite
Providing Web development courses and digital marketing strategy courses since 2002.
Innovative technology expert with a wide range of real world experience. Providing Smart digital solutions online for both small and enterprise level businesses.
"I have a passion for anything digital technology related, enjoy programming and the challenge of developing successful digital experiences. As an experienced developer, I created my first computer applications in 1990, and my first website in 1998. I enjoy sharing my knowledge with others and want to help you share in the wonderful opportunities that the internet provides."
"Learning, understanding with a strong passion for education. The internet has provided us with new opportunities to expand and share knowledge."
Want to learn more about becoming a web developer, do you want to experience the freedom that technology provides for us? Learn how to bring amazing things to life online. Technology connects us all in many ways. It opens up doors to those who embrace it and learn how to make those connections real.
"My courses are designed to help you achieve your goals, learn and update skills"
Background : An experienced web application developer, having worked on multiple enterprise level applications, hundreds of websites, business solutions and many unique and innovative web applications. Web application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP and MySQL. Anything to do with web creation and digital experience. Passionate about everything to do with web application development, programming to online marketing with a strong focus on social media and SEO.
"Understanding technology provides a means to better connect with users. It also opens so many doors. Knowledge is the key to success and I want to help you experience what technology has to offer. I'm passionate about web technologies, and look forward to sharing my knowledge and experience with you!"