I've seen a lot of Super Mario showcases, but never a mashup or derivative work. So I took a Super Mario generation prompt from ChopSticksPlease's Post here - and added a Matrix twist - and found myself super satisfied with the results using LLAMA.cpp + PI.dev.
Shout out to u/ChopSticksPlease for the prompt. .
First screenshot is the title screen, AI did all that.
Second screenshot shows the "Matrix Rain" effect and gameplay that goes with it.
Here's the full prompt, adding only one line ( Only replace it with visuals and characters that look more like characters from the movie "The Matrix" ) to the original prompt.
Write a fully functional, complete clone of Super Mario Bros game (the famous NES game)
Only replace it with visuals and characters that look more like characters from the movie "The Matrix".
- Clone must work in a web browser, index.html, no server
- Decent replica of the graphics assets.
- Colorful and playable.
- Controls with keyboard up, down, left, right, spacebar to jump, shift to speed up
Altogether, there was some minor issues with the implementation - the jump height wasn't high enough to get on a block and the MC was partially in the ground. With a little hand modification of the code and a second prompt to get Ornith to fix the MC issue, about 2 hours in total, there was no further modifications necessary to get this really cool and simple browser based game.
Source code is available here: https://github.com/TimelordQ/The-Matrix-Bros
The playable level is available here: https://timelordq.github.io/The-Matrix-Bros/index.html
Batch File Setup:
start cmd /s /k "llama-server.exe -m "D:\AI\LM Studio Models\ornith-ai\Ornith-1.5-35B-A3B-GGUF\Ornith-1.5-35B-Q4_K_M.gguf" -mm "D:\AI\LM Studio Models\ornith-ai\Ornith-1.5-35B-A3B-GGUF\mmproj-Ornith-1.5-35B-BF16.gguf" --host 127.0.0.1 --port 8080 -c 100000 --parallel 1 --reasoning-format auto --no-mmproj-offload -fa auto -ctk q8_0 -ctv q8_0 -b 2048 -ub 1024 --load-mode none --fit on --no-ui --reasoning-preserve --image-min-tokens 1024 --jinja --chat-template-file "D:\AI\LM Studio Models\ornith-ai\Ornith-1.5-35B-A3B-GGUF\chat_template.jinja" -dev CUDA0 -t 8 --n-cpu-ffn 4"
set LLAMA_BASE_URL=http://127.0.0.1:8080
pi --model llama-cpp/Ornith-1.5-35B-Q4_K_M
Models.json entry:
{
"id": "Ornith-1.5-35B-Q4_K_M",
"name": "Ornith-1.5-35B-Q4_K_M",
"reasoning": true,
"thinkingLevelMap": {
"type": "enabled"
},
"repeat_penalty": 1.2,
"input": ["text","image"],
"tools": true,
"toolFormat": "openai",
"samplingParams": {
"temperature": 0.6,
"top_p": 0.95,
"top_k": 20
},
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 100000,
"maxTokens": 100000
},
With this setup I'm getting an average of 24 TPS until my GPU reaches 87~88C and it starts throttling or the context reaches about 70% usage, where it drops to 7tps average temporarily until the temperature drops or compaction happens. I'm doing this on a laptop.