12-19-2023, 10:01 AM
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...
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.