MCPcopy Index your code
hub / github.com/TanTanDev/rusty_demon_attack

github.com/TanTanDev/rusty_demon_attack @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
105 symbols 161 edges 10 files 6 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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)

Extension points exported contracts — how you extend this code

GameState (Interface)
(no doc) [2 implementers]
src/game.rs

Core symbols most depended-on inside this repo

getArray
called by 34
utils/wasm/gl.js
assert
called by 18
utils/wasm/gl.js
UTF8ToString
called by 11
utils/wasm/gl.js
play_sound
called by 9
src/resources.rs
load_sound
called by 8
src/resources.rs
load_texture
called by 8
src/resources.rs
_glGenObject
called by 5
utils/wasm/gl.js
into_sapp_keycode
called by 3
utils/wasm/gl.js

Shape

Method 43
Function 29
Enum 17
Class 15
Interface 1

Languages

Rust78%
TypeScript22%

Modules by API surface

src/enemy.rs25 symbols
utils/wasm/gl.js22 symbols
src/game.rs15 symbols
src/wave.rs14 symbols
src/player.rs10 symbols
src/resources.rs9 symbols
src/bullet.rs6 symbols
src/main.rs3 symbols
utils/wasm/audio.js1 symbols

For agents

$ claude mcp add rusty_demon_attack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact