A game inspired by the classic atari game: demon attack

Overview

rusty_demon_attack

A game inspired by the classic atari game: demon attack

You can play the game in the web! https://tantandev.itch.io/rusty-demons-attack

Written using Rust and a game framework called macroquad: https://github.com/not-fl3/macroquad

I documented the creation of this game on my Youtube channel: https://youtu.be/Ymq35SIv9Gg

Building to WebAssembly

Add build target for webassembly

rustup target add wasm32-unknown-unknown

There is a script in utils/wasm/build.sh.

./build.sh

This script compiles the program with cargo, takes the generated rusty_demon_attack.wasm file, and the files in utils/wasm/ and moves them into a new folder called static/. To run it in the browser I'm, using basic-http-server.

cargo install basic-http-server

start the server by using the correct path

basic-http-server . # starts server based on current directory
basic-http-server static # start server in the folder /static

External assets with license

in this project I'm using Kenny assets fonts which is using: License: (Creative Commons Zero, CC0)

You might also like...
⬡ Zone of Control is a hexagonal turn-based strategy game written in Rust. [DISCONTINUED]
⬡ Zone of Control is a hexagonal turn-based strategy game written in Rust. [DISCONTINUED]

Zone of Control The project is discontinued Sorry, friends. ZoC is discontinued. See https://ozkriff.github.io/2017-08-17--devlog.html Downloads Preco

A refreshingly simple data-driven game engine built in Rust

What is Bevy? Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever! WARNING Bevy is still in the ve

Data-oriented and data-driven game engine written in Rust
Data-oriented and data-driven game engine written in Rust

What is Amethyst? Amethyst is a data-driven and data-oriented game engine aiming to be fast and as configurable as possible. Principles These principl

Rust library to create a Good Game Easily

ggez What is this? ggez is a Rust library to create a Good Game Easily. The current version is 0.6.0-rc0. This is a RELEASE CANDIDATE version, which m

Rate my game setup 😜
Rate my game setup 😜

minesweeper.rs Rate my game setup 😜

Minesweeper game developed with Rust, WebAssembly (Wasm), and Canvas
Minesweeper game developed with Rust, WebAssembly (Wasm), and Canvas

👉 click here to play the game 👈 Minesweeper game Revealing all the cells without hitting the mines is the task. Each number in the cell denotes how

Snake Game in rust for the web

About This template shows how to create a web app using Yew and wasm-pack. 🚴 Usage 🛠️ Build When building for the first time, ensure to install depe

Minesweeper game where you only lose if the move is certainly wrong.
Minesweeper game where you only lose if the move is certainly wrong.

Non-deterministic Minesweeper Tired of having to guess in a game of minesweeper? Worry no more! This is a variation of Minesweeper game where you only

Octo3D - A 3D Game Engine for the Web!
Octo3D - A 3D Game Engine for the Web!

Octo3D is a WebGPU based 3D Game Development Engine for the web. It provides various functions and utilities to improve the game development experience on the web while leveraging technologies such as TypeScript and WASM (via Rust!).

Comments
  • Split the main file in multiple modules

    Split the main file in multiple modules

    Hi, this PR moves structs, functions and enums from the main file into more appropriate modules. Here are the modules:

    mod bullet;    // the `Bullet` struct
    mod constants; // all constant values 
    mod enemy;     // the `Enemy` struct and others prefixed by `Enemy` 
    mod game;      // the `GameManager` and `GameState` structs
    mod player;    // the `Player` struct and others prefixed by `Player`
    mod resources; // the `Resources` struct and the `load_resources` function
    mod wave;      // the `WaveManager` and the `spawn_enemy` function
    

    Besides these moves, the only other changes are:

    • Extract the creation of resources into the load_resources function to move it more easily
    • Update the visibility of fields in some structs to pub to be able to use them in other modules

    Better reviewed commit by commit

    opened by DidiBear 2
Owner
null
The classic tetris game written in Rust using ncurses

tetris.rs This is the classic tetris game I wrote to have a bit of fun with Rust. Installation and playing cargo install --

null 71 Jul 25, 2022
👾 The classic Space Invaders game made in rust!

?? Invaders The classic space-shooter game now in your terminal! And the good part: made in Rust! ❕ This game was made during the course Ultimate Rust

João Augusto Perin 1 Feb 8, 2022
Fish Game for Macroquad is an online multiplayer game, created as a demonstration of Nakama, an open-source scalable game server, using Rust-lang and the Macroquad game engine.

Fish Game for Macroquad is an online multiplayer game, created as a demonstration of Nakama, an open-source scalable game server, using Rust-lang and the Macroquad game engine.

Heroic Labs 130 Dec 29, 2022
A Rust library and cli for Wordle. Inspired by Wordle in Bash

A Rust library and cli for Wordle. Inspired by Wordle in Bash

Himanshu Neema 9 Dec 18, 2022
The video game for Fonts of Power. A tabletop roleplaying game made in Rust with Bevy!

The code and rules for Fonts of Power, a tactical TTRPG / video game about exploring magical places. You can follow its development in our Discord ser

null 25 Dec 23, 2022
Red Light, Green Light is a traditional Korean children's game, popularised by the Squid Game TV series.

Red Light, Green Light Red Light, Green Light is a traditional Korean children's game, popularised by the Squid Game TV series. This project is the di

Cedric Chee 1 Jan 10, 2022
A work-in-progress, open-source, multi-player city simulation game.

Citybound is a city building game with a focus on realism, collaborative planning and simulation of microscopic details. It is independently developed

Citybound 7.2k Jan 3, 2023
A roguelike game in Rust

A fantasy deathcrawl in Rust Work in progress. To run, with Rust compiler and Cargo package manager installed: cargo run --release When building on W

Risto Saarelma 347 Nov 21, 2022
Extensible open world rogue like game with pixel art. Players can explore the wilderness and ruins.

Rusted Ruins Extensible open world rogue like game with pixel art. Players can explore the wilderness and ruins. This game is written in Rust. Screens

T. Okubo 427 Dec 13, 2022
😠⚔️😈 A minimalistic 2D turn-based tactical game in Rust

Zemeroth is a turn-based hexagonal tactical game written in Rust. Support: patreon.com/ozkriff News: @ozkriff on twitter | ozkriff.games | facebook |

Andrey Lesnikóv 1.3k Jan 5, 2023