Code Monkey home page Code Monkey logo

mach_breakout's Introduction

Breakout game

This is an implementation of a breakout game using the Mach Engine. The game is designed around the Mach ECS library and reuses code provided by the Mach examples. The primary I goal is to explore the different features available.

Running the game

zig build run

Controls

  • Space to launch ball
  • Left and right to control paddle
  • p to pause the game
  • q or esc to exit

Each time the bricks are cleared the ball and paddle will speed up.

The direction of the ball can be manipulated by keeping the paddle in motion as the ball lands. The ball horizontal speed will increase in the direction that the paddle is moving. Making the ball trajectory shallower or steeper.

Implementation

The paddle, ball, bricks, and walls are the main game entities in the game. In addition background, text, and sound use the gfx.Sprite, gfx.Text, and sysgpu modules respectively. Most of the vector computation is done using mach.math.

mach_breakout's People

Contributors

hordurj avatar slimsag avatar

Stargazers

 avatar AClon avatar

Watchers

 avatar

Forkers

slimsag lhk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.