Skip to content

neslinesli93/breakoutex

Repository files navigation

Build status

A Breakoutex clone written in pure Elixir, using Phoenix LiveView. Can be played here

Install

Clone the repo

$ git clone https://github.com/neslinesli93/breakoutex

Start the container:

$ docker-compose run --service-ports app

Install npm deps:

$ cd assets && npm i && cd ..

Start server:

$ ./run.sh # executes mix deps.get && mix phx.server

Now you can visit localhost:4000 from your browser.

Deploy

To build an image ready for production, run:

$ make build

This will build a new docker image, which can be pushed to some registry. If you want to test the production image locally, just run:

$ make run

And open http://localhost:4000. See Makefile for more info on the two command.

Notes

Boilerplate taken from here

TODO

  • Lose game
  • Win game
  • Function to call in order to receive a new, updated ball instance
  • Progressive ball acceleration
  • CSS of the page
  • Use coordinates of the center of the ball?
  • Use coordinates of the center of the paddle?
  • Refactor everything NOT to use integer matrix coordinates, and instead compute everything inside config file?
  • Transfer the project on a fresh, clean mix one (just like the guy that made the board game)
  • How to deploy?
  • Article(s) or tutorial?
  • Instructions for deploying

About

A breakout clone written in pure Elixir, using Phoenix LiveView

Resources

Stars

Watchers

Forks

Packages

No packages published