csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! ![]()
Mutonex gamedesign was finished some years back and I wrote the initial version as microservices-style Ruby and Javascript servers, but decided to make it an Elixir-based monolith. It is very much pre-alpha, but I feel the gameserver modules are now set.
Mutonex gameserver now has 7 app components, the major ones being:
- game engine (game_loop.ex)
- planet simulation (simulation.ex)
- webserver (endpoint.ex)
Kind of hidden under the hood are the Phoenix pubsub/channels, db/ecto and the game session supervisor. Also added sobelow for vulnerability scans.
Sounds convincing? But I’m new to Elixir, am I even doing this right? I’ve done my best to be succinct. Can you suggest points of improvement?
Please, also free to test-drive or pick this repo apart, suggest improvements? GitHub - csmr/mutonex at dev · GitHub (dev branch)
The monorepo also has easy-to-start containerized dev-env, the graphics-content generators, and a browser-client in vanilla JS & Three.js 3D WebGL. The sectors will be based on real Earth satellite images, eventually. Just for fun!
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #elixirconf-us
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #elixirconf-eu
- #processes
- #security
- #api
- #forms
- #performance











Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
derek-zhou
it would be easier if you just list out the design decisions that you are not so sure of. Asking people to :pick apart" your code is a big favor, unless your code is a gold mine for good ideas.
csmr
Yes it is, unless they really like reading Elixir code. Personally, I like the implementation so far, and I think I’ve got things at least semi-right. The websocket connection seems to work in milliseconds, versus +100 ms for http.
But being new(ish) to Elixir, Genserver and Phoenix-based websockets, its hard to tell if I’ve done something silly or obviously wrong.
derek-zhou
Code review works in a work environment because the reviewer is also a stakeholder. I’d also advise against “preemptively” fixing issues you haven’t even perceived, I am assuming they exist. It may feel like taking a shortcut but will harm your growth in the long run.
csmr
Sorry, lost me at ‘work environment’, as that is not what it is. This is all FOSS and if its not Just for fun for you, you don’t have to do anything. Thanks for your comments.