Skip to content
A breakout clone written in pure Elixir, using Phoenix LiveView
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
env
lib
priv/gettext
rel
test
.dockerignore
.formatter.exs
.gitignore
Dockerfile-prod
Makefile
README.md
docker-compose.yml
elixir_buildpack.config
mix.exs
mix.lock
run.sh

README.md

A Breakout 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.

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
You can’t perform that action at this time.