Re: Analog Circuit Video Game Concept
Posted: Fri Mar 25, 2022 4:12 am
I am working on this idea again.
I decided to change the scope of this project to just having analog circuits run the game logic.
Digital display input and analog circuit output are just very different paradigms that don't communicate well with each other.
It is a nightmare trying to figure out a way to have discrete timing for drawing graphics with analog signals.
I am going to make a digital module that takes analog output (positions of players) from the analog circuit logic module
and determines where to draw characters based on analog circuit logic module output.
For now, the plan is to just have a raspberry pi take in analog signal input with an ADC(analog-to-digital converter) and draw
a sprite to screen based on the converted digital input from ADC.
Also, I saw that my previous 2 dimensional collision detector circuit failed if difference between x coordinates and difference between y coordinates
of players were the same. I fixed it by looking for an equation that would be zero if both player's coordinates were the same.
diff_sum = (xdiff + ydiff) + (xdiff - ydiff) . diff_sum is zero only if coordinates of 2 players are are the exact same i.e. xdiff = 0 and ydiff = 0. Also order for subtraction doesn't matter if xdiff and ydiff are zero or the same.
I will figure out collision detection with bounding box later.
I decided to change the scope of this project to just having analog circuits run the game logic.
Digital display input and analog circuit output are just very different paradigms that don't communicate well with each other.
It is a nightmare trying to figure out a way to have discrete timing for drawing graphics with analog signals.
I am going to make a digital module that takes analog output (positions of players) from the analog circuit logic module
and determines where to draw characters based on analog circuit logic module output.
For now, the plan is to just have a raspberry pi take in analog signal input with an ADC(analog-to-digital converter) and draw
a sprite to screen based on the converted digital input from ADC.
Also, I saw that my previous 2 dimensional collision detector circuit failed if difference between x coordinates and difference between y coordinates
of players were the same. I fixed it by looking for an equation that would be zero if both player's coordinates were the same.
diff_sum = (xdiff + ydiff) + (xdiff - ydiff) . diff_sum is zero only if coordinates of 2 players are are the exact same i.e. xdiff = 0 and ydiff = 0. Also order for subtraction doesn't matter if xdiff and ydiff are zero or the same.
I will figure out collision detection with bounding box later.