Skip to content

hackingstar124/Football-game-in-HTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football-game-in-HTML

you have to change the path name where you have downloaded the file to run the game

you can change the emoji from the code

you can press L to shoot and A,D to move the charecter

This function adjusts the horizontal position of the striker on the field based on the provided distance. It ensures that the striker stays within the field boundaries.

Similar to moveStriker, but controls the horizontal position of the football.

Initiates the ball's shooting animation. After a specified time, it checks if a goal has been scored and resets the ball's position.

Determines whether the ball has entered the goal area based on its position relative to the goalpost.

Displays a message indicating whether a goal was scored or missed.

About

A simple interactive penalty kick game

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published