nowfound

AI · December 12, 2023

Maginet, a cross-platform strategy game with Rust/WebAssembly

I hereby present my little tiny pet project that entertained me for the past six months. In this post, I briefly present Maginet and its technical components. It is a turn-based strategy game that is built using Rust and compiles to WebAssembly with HTML5 bindings, which works on mobile and desktop alike! It comes with many game mechanics and components, including an AI opponent and online cross-platform multiplayer. There is so much to discuss even for a project of a smaller scale, but I am nevertheless excited to share a little bit about how you can actually build a game in Rust,…

Maginet, a cross-platform strategy game with Rust/WebAssembly launched on December 12, 2023 with 8 votes, #1,136 of 3,780 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 2 years on.

What it does

Engines? We don't need engines in Planet HTML5!

I spent a couple months trying to see if I can release a game and learn new technologies. Maginet was the result of all my hard work. The result is Maginet: It is a turn-based strategy game where two guilds of mages battle each other. You can play locally (with a friend or against the AI) or online, on a PC or on your phone. It’s heavily inspired by chess, but has a little bit of its own spirit to it. In this article, I will be the technical (developing the code ) aspects of building a video game like this from scratch. I am going to be focusing on the choices I made, problems I encountered, and present some code to spice it up. Maginet is developed with Rust and uses wasm-bindgen to…from evrim.zone

In the maker’s words, at launch

I hereby present my little tiny pet project that entertained me for the past six months. In this post, I briefly present Maginet and its technical components. It is a turn-based strategy game that is built using Rust and compiles to WebAssembly with HTML5 bindings, which works on mobile and desktop alike! It comes…

Does a similar job

all alternatives →
  • IM
    I made a browser-based RTS game2022 · battle-of-flags.com · ▲212

    I've posted this game here before, hopefully a repost is fine as the game has changed quite a bit (improved AI, improved mapeditor, much quicker gameplay, etc). Game is based on JavaScript/Canvas and WebSockets. On the browser side the map is pre-rendered (as a background image), just the mobile units/buildings and animations are dynamically rendered. The lobby server is made in node.js, but the game server is C++ for performance reasons (mainly the pathfinding). I found the C++ WebSocket libraries out there to be too difficult to use so I made my own based on the rfc. Overall I…

  • IM
    I'm writing an MMORPG game for learning programming2022 · bytelegend.com · ▲229

    Hi, I've been developing an HTML5 MMORPG game where people can submit code to play a game, like collect items, destroy defense towers or kill monsters, etc.. I've been working on this for over 1.5 yrs (all my spare time) and now it's ready for preview, does anyone want to try it out? It's mostly opensource (and the rest will be opensource sooner or later) Please access it with PC, it's an HTML5 game: https://bytelegend.com/ I really want it to expand to more languages, but right now I've only finished Java part. I wonder if anyone can help me with other languages. Besides, I'm…

  • AO
    An online 2D MMO game, written in Rust and JavaScript2024 · polyfight.io · ▲171

    I made a game (https://polyfight.io/) which revolves around a player (a tank) leveling up and upgrading by killing shapes and other tanks (partially inspired by https://diep.io). It has a bunch of features, a vast number of tanks, an inbuilt chatting system, clans to make teams with your friends, a colour scheme maker, controllable sandboxes which can be public or private, a last man standing gamemode, and an inbuilt 1v1 system with its own ELO rankings and a global leaderboard. The game has a few players right now, and I'd hope to spread the joy players have with…

  • A minimal working Rust / SDL2 / WASM browser game2024 · github.com · ▲82

    "Game" is a stretch, but I put together this repo containing a pure Rust app which uses SDL2 and compiles to WASM (and can be run in a browser). Older resources were a bit out of date and a bit too verbose for my purposes, so here's a minimal working example.

  • Percy – A Rust and WebAssembly isomorphic virtual DOM implementation2018 · github.com · ▲234

    Build frontend browser apps with Rust + WebAssembly. Supports server side rendering. - chinedufn/percy

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 17d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 19d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • A real-time world model you can explore and change

    AI · 29d ago · world.pixverse.video

  • Hemory▲381

    Keep listening. Searchable memory for your AI agents.

    AI · 30d ago · hemory.com

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, December 2023

the whole month →
  • Hi HN! I’m proud to share that we have built a real 3rd party iMessage client for Android. We did it by reverse engineering the iMessage protocol and encryption system. It's available to download today (no waitlist): https://play.google.com/store/apps/details?id=com.beeper.ima and there's a technical writeup here: https://blog.beeper.com/p/how-beeper-mini-works. Unlike every other attempt to build an iMessage app for Android (including our first gen app), Beeper Mini does not use a Mac server relay in the cloud. The app connects directly to Apple…

    Work · 2023 · beeper.com

  • Hey! I made Heynote entirely for my own use case. For many years, I always had an Emacs instance running with the scratch buffer open, even long after I had abandoned Emacs as my programming editor in favor of more recent IDE:s. The simplicity of having just one big scratch buffer appeals to me, but I still want to separate the different things I jot down somehow (without using tabs or similar). Previously, my solution was to insert a bunch of blank lines between the notes, but hitting C-A would still select the entire buffer. That's why I came up with the concept of "blocks", which turned…

    Work · 2023 · heynote.com

  • LogoFast▲988

    Make beautiful logos with AI, fast & free

    AI · 2023 · logofa.st

  • FuseBase▲939

    Client collaboration platform for professional services

    Dev tools · 2023 · thefusebase.com

  • Beep! 2.0▲871

    Fastest tool to assign and share visual tasks with your team

    Work · 2023 · justbeepit.com

  • Clean Up Your Inbox In Minutes Newsletter management, AI automation, and email analytics. Inbox Zero is the open-source email app that puts you back in control of your inbox.

    AI · 2023 · getinboxzero.com