Make a Ping Pong Game in Unity (Free Tutorial)
Updated: Jul 14
Whether you’re hosting a ping pong championship or need to change out assets for projects deployed on multiple platforms, echo3D makes it easy to do this by simply using an API key and updating in 1 place. Assets are stored on the echo3D cloud and called at runtime so you can focus on other things. Like ping pong. Or trying out more open-source projects on our Github.
In this tutorial, you will play ping pong against another player (or the other side of your brain!)
Click this link https://go.echo3d.co/b1Cm or scan this QR code to see the ping pong championship logo in AR.
Don’t have an echo3D account? Register for FREE at echo3D.
Clone this repo, see the full README
Add the assets to the echo3D console from the Unity ‘Models’ folder
Uncheck the Security box in your console
In Unity, open the GameBoard scene
Drag the echo3D script onto Background object in the Hierarchy
Add the API key and entry ID for each object in the Inspector
In the Hierarchy, make sure to the boxes are unchecked for the Sprite Renderer for Background
Adjust the metadata of the Background in the echo3D console. These may work for you: BackgroundImage: scale: .1, zAngle: 180, height: 1180, xAngle: 90, width: 1920, x: .1
Press Play in Unity Left player: w and s keys Right player: up and down keys
Switch Out Assets
Find new asset in the echo3D console (You can upload your own or choose from our library)
Get the API key and entries ID
Swap them out on the echo3D script in the Unity Hierarchy and see your assets change when you run in Play mode
Refer to our documentation to learn more about how to use Unity and echo3D.
Ping pong background asset: freepik
For more easy tutorials, check these out:
echo3D (www.echo3D.co; Techstars 19’) is a cloud platform for 3D/AR/VR that provides tools and network infrastructure to help developers & companies quickly build and deploy 3D apps, games, and content.