Skip to content

Commit da940ff

Browse files
committed
Add README
1 parent f615387 commit da940ff

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
NAME=tetrix
22
DATA_FILES=info.json
33
COMP=xz
4-
RIVEMU_RUN=rivemu
5-
RIVEMU_EXEC=rivemu -quiet -no-window -sdk -workspace -exec
4+
RIVEMU=rivemu
5+
RIVEMU_RUN=$(RIVEMU)
6+
RIVEMU_EXEC=$(RIVEMU) -quiet -no-window -sdk -workspace -exec
67
ifneq (,$(wildcard /usr/sbin/riv-run))
78
RIVEMU_RUN=riv-run
89
RIVEMU_EXEC=
@@ -14,6 +15,8 @@ build: $(NAME).sqfs
1415
run: $(NAME).sqfs
1516
$(RIVEMU_RUN) $<
1617

18+
screenshot: $(NAME).png
19+
1720
clean:
1821
rm -f *.sqfs *.elf *.c
1922

@@ -23,3 +26,6 @@ $(NAME).sqfs: $(NAME).elf $(DATA_FILES)
2326
$(NAME).elf: $(NAME).nelua *.nelua
2427
$(RIVEMU_EXEC) nelua --verbose --release --binary --cache-dir=. --cflags="$(CFLAGS)" --output=$@ $<
2528
$(RIVEMU_EXEC) riv-strip $@
29+
30+
$(NAME).png: $(NAME).sqfs
31+
$(RIVEMU) -save-screenshot=$(NAME).png -stop-frame=0 $(NAME).sqfs

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Tetrix
2+
3+
A Tetris like game written in [Nelua](https://nelua.io/) for [RIV](https://docs.rives.io) fantasy console.
4+
5+
You can play it in your browser
6+
[here](https://emulator.rives.io/#cartridge=https://raw.githubusercontent.com/edubart/cartridges/main/tetrix.sqfs)
7+
8+
![Screenshot](https://raw.githubusercontent.com/edubart/tetrix/master/screenshot.png)
9+
10+
## Compiling
11+
12+
First make sure you have the RIV SDK installed in your environment, then just type `make` to compile.
13+
You can also play it by typing `make run`.

tetrix.png

1.17 KB
Loading

0 commit comments

Comments
 (0)