What happens if you make a 32-bit computer in Terraria?



A high free sandbox-based 2D action game, such as fighting enemies, creating items, building buildings while exploring a vast field, is '

Teraria 'is. In this 'Teraria' you can create circuits using various materials, but movies that build huge circuits, reproduce 32-bit computers, program games and render 3D models are released It has been.

I Made a 32-bit Computer Inside Terraria-YouTube


In Terraria, items such as 'switches' that output signals that activate circuits, 'wires' that transmit signals, 'doors' and 'lightings' that receive signals and operate are prepared to create bases. It is possible to automate the behavior of various items on the top.



Using this mechanism, Mr. From Scratch, who reproduced the 32-bit computer in Terraria this time, says that it is possible to perform logical operations by assuming the ON or OFF state of the switch as '0' or '1'. From Scratch seems to have been playing with the circuit without the main part of Terraria.



Mr. From Scratch continued to connect the circuit for about 3 months.



Expansion after expansion



In the process, From Scratch says he learned a huge amount about digital logic and CPU design through Terraria.



It was said that it was 'debugging' that had a hard time actually trying this circuit. Since the circuits are all made of Terraria items, they look complicated, and if you make a mistake in connecting them somewhere, it seems that you had a lot of trouble finding mistakes.



One wrong type of wire can cause the entire circuit to fail. Mr. From Scratch says that this work was 'like looking for a needle that looks like hay from a haystack.'



In addition, there was also a problem due to Terraria not being optimized for a 'vast world'. This problem seems to have appeared in the form of slow signal transmission speed for wires that are too long.



The mechanism of wire signal transmission is as follows, the wire that receives the signal first checks the adjacent pixels, and if there is an object that can transmit the signal to any pixel, it will move to execute transmission.



Due to the mechanism of transmitting signals one pixel at a time, the longer the wire, the slower the signal transmission speed. It seems that the only way to improve this was to reconnect the wire shorter.



Mr. From Scratch programmed in Terraria the famous 'Pon' as an early computer game. When you move the character on Terraria, you can play Pong on the display placed on Terraria.



A simulation game '

life game ' in which cells repeat the birth and disappearance is also made. The speed of birth and disappearance is quite slow, and the video seems to be 240 times faster.



I also created a system to render a 3D world given X, Y, and Z coordinates. This is also slow, and it takes 45 seconds to render one frame.



From Scratch continues development with the goal of 'running Terraria in Terraria'. The repository for this project is published on GitHub.

GitHub - misprit7/computerraria: A fully compliant RISC-V computer made inside the game Terraria

https://github.com/misprit7/computeraria



in Video,   Game, Posted by log1p_kr