CorpHackRyan / RP-Spaceoids

Spaceoids - asteroids game clone game. A project idea created with the intent of learning to work collaboratively on the same code base, learn and implement features of GitHub such as discussions, issues and actions, and most importantly improve problem solving and code implementation. The bulk of this code was created by Patrick Pragman (https://www.pragman.io/)
0 stars 2 forks source link

Asteroids can start on top of the player #12

Closed patpragman closed 3 years ago

patpragman commented 3 years ago

Right now the asteroids are just randomly scattered throughout the map on startup. They should be placed randomly, but not to as overlap with the player's ship at start.

patpragman commented 3 years ago

It should be worth mentioning that this shouldn't be too crazy to fix. The instance of the game is created in "menu.py" and there's a function at the very top of the file that creates an instance of a "Game" object and returns it. Tweaking the creation of the SpaceBoulder objects to account for player location would fix this.

patpragman commented 3 years ago

Fixed this with latest commit. Asteroids cannot spawn on top of a player anymore.