Awesome
DOTS Arkanoid
It's a clone of the classic arcade game created with the Unity DOTS technologies. The game is based on the original Arkanoid gameplay. And the visual style refers to the games of the 16-bit era.
The goal of this project is to get to know Unity DOTS better. The DOTS (Data-Oriented Technology Stack) is a set of technologies developed by Unity for building high-performance, multithreaded code. The most important part of DOTS is the ECS component system, which allows to write code in a data oriented way. The DOTS Arkanoid project uses physics and rendering built on ECS. Some technical details are described below.
Game design details
- Original game mechanics and retro look inspired by Arkanoid arcade game and SNES Arkanoid: Doh It Again 1997 by Taito. Local coop mode inspired by Block Block (World 910910) arcade game by Capcom.
- For input you can use touch screen, keyboard (A, D, Left, Right, Space), a mouse (only player 1) and gamepads (Xbox Controller/XInput)
- Catch, Enlarge, Laser, Disruption and other power-ups have implemented, hi score and balls speedup mechanics have implemented as well.
- 5 original stages are included, arcade version of field size 13x18 is used.
- The ball movement and bouncing physics is close to the original Arkanoid physics.
- Press Alt+Enter to switch between full screen and windowed mode (for desktop builds).
Tech details
- I tried to avoid excessive sync points in the simulation code. Burst compilation and jobs scheduling is used for most jobs.
- URP + Entities Graphics with shader for UV coord. animation.
- DOTS Physics for triggers (ICollisionEventsJob), queries (CastCollider) and masks filtering
- You can use "F1" cheat button to spawn multiple balls.
- To enable Benchmark mode, make BenchmarkLevelsSettings active and deactivate LevelsSettings in the scene. This mode simulates 1 thousand or more balls and 20 thousand blocks.
Links
- Systems Interaction in Entity-Component-System (Events)
- Unity DOTS forum
- Introduction to the DOTS for advanced Unity developers
- Arkanoid StrategyWiki
Third party resources
- "Press Start 2P" font, designed by CodeMan38 (OFL)
- Title logo "Wonder Boy/Sega" by http://arcade.photonstorm.com/
- Sprites from Arkanoid: Doh it Again 1997 SNES/Taito
- Sound effects from Arkanoid II NES/Taito
- Original Arkanoid gameplay by Taito Corporation
Download
You can download DOTS Arkanoid packages for Android and Windows in Release page.
License
Copyright (c) 2022 Eugeny Novikov. The source code is under the MIT license.