Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Space Race
#7
hmm... 1980... Married for two years; one daughter; no pets...

I am working on a concept... 2nd player (comp. controlled) will begin moving up the screen at the same rate as player 1. Using the circle-circle collision detection to calculate the distance between computer player and "objects". If player 2 gets within, for example, 32 pixels of the object and beneath the "y" axis of the object, player 2's velocity will reverse, until it is more that 32 pixels from the object, then player 2 will continue moving up the screen.

The prototype currently works with one lateral object... I am testing with multiple object but not having much luck... I may not be able to work on it until the day after tomorrow (Thursday) as my eldest grandson will be visiting tomorrow... 17 year olds love computers...
Logic is the beginning of wisdom.
Reply


Messages In This Thread
Space Race - by johnno56 - 12-13-2023, 07:20 PM
RE: Space Race - by 1micha.elok - 12-14-2023, 04:23 AM
RE: Space Race - by johnno56 - 12-14-2023, 06:45 AM
RE: Space Race - by Marcus - 12-19-2023, 06:23 AM
RE: Space Race - by 1micha.elok - 12-20-2023, 03:50 AM
RE: Space Race - by kevin - 12-15-2023, 03:14 PM
RE: Space Race - by johnno56 - 12-15-2023, 06:37 PM
RE: Space Race - by johnno56 - 12-19-2023, 10:01 AM
RE: Space Race - by johnno56 - 12-20-2023, 07:38 AM
RE: Space Race - by 1micha.elok - 12-22-2023, 08:54 AM
RE: Space Race - by johnno56 - 12-22-2023, 10:53 AM
RE: Space Race - by Marcus - 12-23-2023, 09:40 PM
RE: Space Race - by johnno56 - 12-24-2023, 07:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)