Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code to make a boxing game. The game should be made with JavaSvript on replit. The game should put you the player against an

Write code to make a boxing game. The game should be made with JavaSvript on replit. The game should put you the player against an Al. The game should allow for 4 different moves that both the player and Al take turns choosing from: dodge left,dodge right, block, and punch. If you dodge a punch you should be able to get a free counter punch next move and it should notify the player that the punch was dodged this should work for both the player and Al. If you block a punch then the game should notify the player that they blocked it but continue with the Al having the next turn, the opposite should also be true. The Al should be coded to be simple and choose randomly between the 4 options for moves on its turn. The hardest part will be the animation. The player should be able to see a simple character with a torso head arms and fists, and should be able to see whenever they the player or the Al dodges left, dodges right,blocks,or throws a punch. As well as being able to see when a punch lands or is blocked or dodged. And the player and Al hearts should be included in the animation as it decreases for either the player or Al. The animation should also display whether the player wins or loses at the end of the game once either the Al or player reaches 0 hearts first.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Which state has the highest sum of transaction amount?

Answered: 1 week ago