Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 392 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 392 Bytes

This code creates a simple game where the player (represented by a yellow circle) can be moved with the arrow keys, while an enemy (represented by a red circle) moves towards the player. If the player and enemy collide, the game ends.

Pygame is used to create the game screen and handle events, while Numpy is used for vector operations to move the player and enemy and check for collision.