File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
NAME =tetrix
2
2
DATA_FILES =info.json
3
3
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
6
7
ifneq (,$(wildcard /usr/sbin/riv-run) )
7
8
RIVEMU_RUN=riv-run
8
9
RIVEMU_EXEC=
@@ -14,6 +15,8 @@ build: $(NAME).sqfs
14
15
run : $(NAME ) .sqfs
15
16
$(RIVEMU_RUN ) $<
16
17
18
+ screenshot : $(NAME ) .png
19
+
17
20
clean :
18
21
rm -f * .sqfs * .elf * .c
19
22
@@ -23,3 +26,6 @@ $(NAME).sqfs: $(NAME).elf $(DATA_FILES)
23
26
$(NAME ) .elf : $(NAME ) .nelua * .nelua
24
27
$(RIVEMU_EXEC ) nelua --verbose --release --binary --cache-dir=. --cflags=" $( CFLAGS) " --output=$@ $<
25
28
$(RIVEMU_EXEC ) riv-strip $@
29
+
30
+ $(NAME ) .png : $(NAME ) .sqfs
31
+ $(RIVEMU ) -save-screenshot=$(NAME ) .png -stop-frame=0 $(NAME ) .sqfs
Original file line number Diff line number Diff line change
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 ` .
You can’t perform that action at this time.
0 commit comments