Analog Circuit Video Game Concept

There's only need for one forum for now. Discuss development. No advertising or thinly veiled attempts at advertising. Create a single thread for your project and be prepared to show and tell.
Post Reply
100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Analog Circuit Video Game Concept

Post by 100goats »

I am an electronics engineer by trade and I have been feeling some stress about how I spent too much free time
developing my programming skills over my circuit skills.

Then, the idea hit me. I can practice developing circuit systems by making a video game just from circuit logic.
I am specifically going to limit myself to analog circuits because I am more interested in analog circuit logic than digital circuit logic
or mixed-signal circuits.

It has been done by Tennis for Two in the 1950s using an analog computer and an oscilloscope.


However, the graphical display was an oscilloscope which limited it to only having 1 point per y-coordinate on a 1 channel oscilloscope.
A switching circuit had to be used to switch between display for tennis ball and net.

My game will try to use a circuit block to convert voltage signal information to a video signal for a composite or component cable
that will be connected to a television set.

I'm excited about this project! If this is successful, maybe this might be a different direction for the video game meta to take.

User avatar
Deckhead
Site Admin
Posts: 89
Joined: Fri Feb 21, 2020 5:44 am
Location: Sydney, Australia
Contact:

Re: Analog Circuit Video Game Concept

Post by Deckhead »

Man, I have only the most rudimentary understanding of what you're trying to do!

But, it sounds really cool.

How can you use circuit logic? Like... are you going to build a board with a tiny microprocessor on it? And how in the world do you translate that to a video signal?
Developer of The Last Boundary and webmaster of IndieGameDev.net

100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Re: Analog Circuit Video Game Concept

Post by 100goats »

Thanks, man! = )
Deckhead wrote:
Fri Jul 24, 2020 10:03 am

How can you use circuit logic? Like... are you going to build a board with a tiny microprocessor on it?
I am not going to use a microprocessor since it is a digital circuit component and I want to only use analog circuit components for analog circuit logic
for this project.

I can use analog circuit logic by manipulating a voltage representing the x coordinate of a player and another voltage representing the y coordinate of a player.

Op-amps allow me to do addition, subtraction, and comparison with voltages which is enough for collision detection and moving a player.

https://www.electronics-tutorials.ws/category/opamp
Deckhead wrote:
Fri Jul 24, 2020 10:03 am

And how in the world do you translate that to a video signal?
I still need to figure out how to convert a 2d image of the world into a video signal to pass to a tv set.

Fortunately, I have these resources that explain how analog video signals make an image on screen.
https://www.maximintegrated.com/en/desi ... /1184.html
https://www.maximintegrated.com/en/desi ... 7/734.html

---------------------------------------------------------------------------------------------------------------------------

The game I am going to develop will be a simple game in which players try to stab the back of the other player to win.
The player who gets their back stabbed dies. Last player standing is the winner.

It is a simple game that will only require collision detection and moving a few dots across the screen.

User avatar
Deckhead
Site Admin
Posts: 89
Joined: Fri Feb 21, 2020 5:44 am
Location: Sydney, Australia
Contact:

Re: Analog Circuit Video Game Concept

Post by Deckhead »

Oh I see what you mean by "analog" now; this sounds really cool.
Developer of The Last Boundary and webmaster of IndieGameDev.net

100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Re: Analog Circuit Video Game Concept

Post by 100goats »

I started tracking this project on Github.

https://github.com/adct-the-experimente ... VG-Stabber

So far I was able to have player position and weapon position set by joystick input and center weapon around player.

I need to design a circuit that reacts to zero volt difference between a player's position and the other player's weapon
for collision detection.

100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Re: Analog Circuit Video Game Concept

Post by 100goats »

I have collision detection working well.

It was difficult, but rewarding.

I just made a circuit that subtracted voltages representing x,y coordinates of 2 objects.
Then, the subtraction result was passed to a positive negative indicator circuit with output connected to a differentiator to get the moment
that a zero was crossed i.e. polarity of signal was changed.

sign = 5V if (position_obj_1 - position_obj_2) is positive, -5V if (position_obj_1 - position_obj_2) is negative
collision ~= d/dt * sign

Post Reply