Updated on Sep, 2023
Language - English
Duration -1 hours
Element selection using querySelector
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
Step by step learning with all steps included.
What will you learn in this course:
- How to create elements dynamically
What are the prerequisites for this course?
- Access to computer
- Use of editor to write code
- HTML and CSS knowledge
Check out the detailed breakdown of what’s inside the course
- Bomber Plane Game Introduction 02:32 02:32
- Game Area Setup 02:58 02:58
- Add animation frame. 07:48 07:48
- Introducing Game Scoring 02:58 02:58
- Show Scoreboard to player 02:25 02:25
- Add Enemy Base 05:13 05:13
- Make the bomb Dynamically creating elements 07:30 07:30
- Move bombs Automatically 04:49 04:49
- Collision Detection 05:23 05:23
- Final Gameplay Tweaks 07:31 07:31
- Bomber Plane Code Review 07:20 07:20
Laurence SvekisInstructor, GDE, Application Developer
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"
"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!"
User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.
Our students work
with the Best
Related Video CoursesView More
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video CoursesSubscribe now
Master prominent technologies at full length and become a valued certified professional.Explore Now