mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-27 00:29:35 +00:00
sa: work on getting art compressed
This commit is contained in:
parent
50b8e21e7c
commit
97136e521d
20
still_alive/art/01_aperture.txt
Normal file
20
still_alive/art/01_aperture.txt
Normal file
@ -0,0 +1,20 @@
|
||||
.,-:;//;:=,
|
||||
. :H@@@MM@M#H/.,+%;,
|
||||
,/X+ +M@@M@MM%=,-%HMMM@X/,
|
||||
-+@MM; $M@@MH+-,;XMMMM@MMMM@+-
|
||||
;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
|
||||
,%MM@@MH ,@%= .---=-=:=,.
|
||||
=@#@@@MX ., -%HX$$%%%+;
|
||||
=-./@M@M$ .;@MMMM@MM:
|
||||
X@/ -$MM/ .+MM@@@M$
|
||||
,@M@H: :@: . =X#@@@@-
|
||||
,@@@MMX, . /H- ;@M@M=
|
||||
.H@@@@M@+, %MM+..%#$.
|
||||
/MMMM@MMH/. XM@MH; =;
|
||||
/%+%$XHH@$= , .H@@@@MX,
|
||||
.=--------. -%H.,@@@@@MX,
|
||||
.%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
|
||||
=XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
|
||||
=%@M@M#@$-.=$@MM@@@M; %M%=
|
||||
,:+$+-,/H#MMMMMMM@= =,
|
||||
=++%%%%+/:-.
|
20
still_alive/art/02_radioactive.txt
Normal file
20
still_alive/art/02_radioactive.txt
Normal file
@ -0,0 +1,20 @@
|
||||
=+$HM####@H%;,
|
||||
/H###############M$,
|
||||
,@################+
|
||||
.H##############+
|
||||
X############/
|
||||
$##########/
|
||||
%########/
|
||||
/X/;;+X/
|
||||
|
||||
-XHHX-
|
||||
,######,
|
||||
#############X .M####M. X#############
|
||||
##############- -//- -##############
|
||||
X##############%, ,+##############X
|
||||
-##############X X##############-
|
||||
%############% %############%
|
||||
%##########; ;##########%
|
||||
;#######M= =M#######;
|
||||
.+M###@, ,@###M+.
|
||||
:XH. .HX:
|
20
still_alive/art/03_atom.txt
Normal file
20
still_alive/art/03_atom.txt
Normal file
@ -0,0 +1,20 @@
|
||||
=/;;/-
|
||||
+: //
|
||||
/; /;
|
||||
-X H.
|
||||
.//;;;:;;-, X= :+ .-;:=;:;%;.
|
||||
M- ,=;;;#:, ,:#;;:=, ,@
|
||||
:% :%.=/++++/=.$= %=
|
||||
,%; %/:+/;,,/++:+/ ;+.
|
||||
,+/. ,;@+, ,%H;, ,/+,
|
||||
;+;;/= @. .H##X -X :///+;
|
||||
;+=;;;.@, .XM@$. =X.//;=%/.
|
||||
,;: :@%= =$H: .+%-
|
||||
,%= %;-///==///-// =%,
|
||||
;+ :%-;;;:;;;;-X- +:
|
||||
@- .-;;;;M- =M/;;;-. -X
|
||||
:;;::;;-. %- :+ ,-;;-;:==
|
||||
,X H.
|
||||
;/ %=
|
||||
// +;
|
||||
,////,
|
20
still_alive/art/04_broken_heart.txt
Normal file
20
still_alive/art/04_broken_heart.txt
Normal file
@ -0,0 +1,20 @@
|
||||
.,---.
|
||||
,/XM#MMMX;,
|
||||
-%##########M%,
|
||||
-@######% $###@=
|
||||
.,--, -H#######$ $###M:
|
||||
,;$M###MMX; .;##########$;HM###X=
|
||||
,/@##########H= ;################+
|
||||
-+#############M/, %##############+
|
||||
%M###############= /##############:
|
||||
H################ .M#############;.
|
||||
@###############M ,@###########M:.
|
||||
X################, -$=X#######@:
|
||||
/@##################%- +######$-
|
||||
.;##################X .X#####+,
|
||||
.;H################/ -X####+.
|
||||
,;X##############, .MM/
|
||||
,:+$H@M#######M#$- .$$=
|
||||
.,-=;+$@###X: ;/=.
|
||||
.,/X$; .::,
|
||||
., ..
|
20
still_alive/art/05_explosion.txt
Normal file
20
still_alive/art/05_explosion.txt
Normal file
@ -0,0 +1,20 @@
|
||||
.+
|
||||
/M;
|
||||
H#@: ;,
|
||||
-###H- -@/
|
||||
%####$. -; .%#X
|
||||
M#####+;#H :M#M.
|
||||
.. .+/;%#########X###-
|
||||
-/%H%+;-, +##############/
|
||||
.:$M###MH$%+############X ,--=;-
|
||||
-/H#####################H+=.
|
||||
.+#################X.
|
||||
=%M####################H;.
|
||||
/@###############+;;/%%;,
|
||||
-%###################$.
|
||||
;H######################M=
|
||||
,%#####MH$%;+#####M###-/@####%
|
||||
:$H%+;=- -####X.,H# -+M##@-
|
||||
. ,###; ; =$##+
|
||||
.#H, :XH,
|
||||
+ .;-
|
20
still_alive/art/06_fire.txt
Normal file
20
still_alive/art/06_fire.txt
Normal file
@ -0,0 +1,20 @@
|
||||
-$-
|
||||
.H##H,
|
||||
+######+
|
||||
.+#########H.
|
||||
-$############@.
|
||||
=H###############@ -X:
|
||||
.$##################: @#@-
|
||||
,; .M###################; H###;
|
||||
;@#: @###################@ ,#####:
|
||||
-M###. M#################@. ;######H
|
||||
M####- +###############$ =@#######X
|
||||
H####$ -M###########+ :#########M,
|
||||
/####X- =########% :M########@/.
|
||||
,;%H@X; .$###X :##MM@%+;:-
|
||||
..
|
||||
-/;:-,. ,,-==+M########H
|
||||
-##################@HX%%+%%$%%%+:,,
|
||||
.-/H%%%+%%$H@###############M@+=:/+:
|
||||
/XHX%:#####MH%= ,---:;;;;/%%XHM,:###$
|
||||
$@#MX %+;- .
|
20
still_alive/art/07_check.txt
Normal file
20
still_alive/art/07_check.txt
Normal file
@ -0,0 +1,20 @@
|
||||
:X-
|
||||
:X###
|
||||
;@####@
|
||||
;M######X
|
||||
-@########$
|
||||
.$##########@
|
||||
=M############-
|
||||
+##############$
|
||||
.H############$=.
|
||||
,/: ,M##########M;.
|
||||
-+@###; =##########M;
|
||||
=%M#######; :#########M/
|
||||
-$M###########; :#########/
|
||||
,;X###########; =########$.
|
||||
;H#########+#######M=
|
||||
,+##############+
|
||||
/M#########@-
|
||||
;M######%
|
||||
+####:
|
||||
,$M-
|
20
still_alive/art/08_black_mesa.txt
Normal file
20
still_alive/art/08_black_mesa.txt
Normal file
@ -0,0 +1,20 @@
|
||||
.-;+$XHHHHHHX$+;-.
|
||||
,;X@@X%/;=----=:/%X@@X/,
|
||||
=$@@%=. .=+H@X:
|
||||
-XMX: =XMX=
|
||||
/@@: =H@+
|
||||
%@X, .$@$
|
||||
+@X. $@%
|
||||
-@@, .@@=
|
||||
%@% +@$
|
||||
H@: :@H
|
||||
H@: :HHHHHHHHHHHHHHHHHHX, =@H
|
||||
%@% ;@M@@@@@@@@@@@@@@@@@H- +@$
|
||||
=@@, :@@@@@@@@@@@@@@@@@@@@@= .@@:
|
||||
+@X :@@@@@@@@@@@@@@@M@@@@@@:%@%
|
||||
$@$, ;@@@@@@@@@@@@@@@@@M@@@@@@$.
|
||||
+@@HHHHHHH@@@@@@@@@@@@@@@@@@@@@@@+
|
||||
=X@@@@@@@@@@@@@@@@@@@@@@@@@@@@X=
|
||||
:$@@@@@@@@@@@@@@@@@@@M@@@@$:
|
||||
,;$@@@@@@@@@@@@@@@@@@X/-
|
||||
.-;+$XXHHHHHX$+;-.
|
20
still_alive/art/09_cake.txt
Normal file
20
still_alive/art/09_cake.txt
Normal file
@ -0,0 +1,20 @@
|
||||
,:/+/-
|
||||
/M/ .,-=;//;-
|
||||
.:/= ;MH/, ,=/+%$XH@MM#@:
|
||||
-$##@+$###@H@MMM#######H:. -/H#
|
||||
.,H@H@ X######@ -H#####@+- -+H###@X
|
||||
.,@##H; +XM##M/, =%@###@X;-
|
||||
X%- :M##########$. .:%M###@%:
|
||||
M##H, +H@@@$/-. ,;$M###@%, -
|
||||
M####M=,,---,.-%%H####M$: ,+@##
|
||||
@##################@/. :%H##@$-
|
||||
M###############H, ;HM##M$=
|
||||
#################. .=$M##M$=
|
||||
################H..;XM##M$= .:+
|
||||
M###################@%= =+@MH%
|
||||
@################M/. =+H#X%=
|
||||
=+M##############M, -/X#X+;.
|
||||
.;XM##########H= ,/X#H+:,
|
||||
.=+HM######M+/+HM@+=.
|
||||
,:/%XM####H/.
|
||||
,.:=-.
|
20
still_alive/art/10_glados.txt
Normal file
20
still_alive/art/10_glados.txt
Normal file
@ -0,0 +1,20 @@
|
||||
#+ @ # # M#@
|
||||
. .X X.%##@;# # +@#######X. @#%
|
||||
,==. ,######M+ -#####%M####M- #
|
||||
:H##M%:=##+ .M##M,;#####/+#######% ,M#
|
||||
.M########= =@#@.=#####M=M#######= X#
|
||||
:@@MMM##M. -##M.,#######M#######. = M
|
||||
@##..###:. .H####. @@ X,
|
||||
############: ###,/####; /##= @#. M
|
||||
,M## ;##,@#M;/M#M @# X#% X#
|
||||
.%= ######M## ##.M#: ./#M ,M #M ,#$
|
||||
##/ $## #+;#: #### ;#/ M M- @# :
|
||||
#+ #M@MM###M-;M #:$#-##$H# .#X @ + $#. #
|
||||
######/.: #%=# M#:MM./#.-# @#: H#
|
||||
+,.= @###: /@ %#,@ ##@X #,-#@.##% .@#
|
||||
#####+;/##/ @## @#,+ /#M . X,
|
||||
;###M#@ M###H .#M- ,##M ;@@; ###
|
||||
.M#M##H ;####X ,@#######M/ -M###$ -H
|
||||
.M###% X####H .@@MM@; ;@#M@
|
||||
H#M /@####/ ,++. / ==-,
|
||||
,=/:, .+X@MMH@#H #####$=
|
10
still_alive/art/Makefile
Normal file
10
still_alive/art/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
CC = gcc
|
||||
CFLAGS = -O2 -Wall
|
||||
|
||||
all: create_lz4_art
|
||||
|
||||
create_lz4_art: create_lz4_art.c
|
||||
$(CC) $(CFLAGS) -o create_lz4_art create_lz4_art.c
|
||||
|
||||
clean:
|
||||
rm -f *.o *~ *.lz4 create_lz4_art
|
49
still_alive/art/create_lz4_art.c
Normal file
49
still_alive/art/create_lz4_art.c
Normal file
@ -0,0 +1,49 @@
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define NUM_FILES 10
|
||||
|
||||
static char art_files[NUM_FILES][20]={
|
||||
"01_aperture.txt",
|
||||
"02_radioactive.txt",
|
||||
"03_atom.txt",
|
||||
"04_broken_heart.txt",
|
||||
"05_explosion.txt",
|
||||
"06_fire.txt",
|
||||
"07_check.txt",
|
||||
"08_black_mesa.txt",
|
||||
"09_cake.txt",
|
||||
"10_glados.txt",
|
||||
};
|
||||
|
||||
#define MAX_SIZE 1024
|
||||
|
||||
static char buffer[MAX_SIZE];
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
int i,fd,size;
|
||||
|
||||
for(i=0;i<NUM_FILES;i++) {
|
||||
|
||||
fd=open(art_files[i],O_RDONLY);
|
||||
if (fd<0) {
|
||||
fprintf(stderr,"Error opening %s\n",art_files[i]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
size=read(fd,buffer,MAX_SIZE);
|
||||
if (size<0) {
|
||||
fprintf(stderr,"Error reading %s\n",art_files[i]);
|
||||
}
|
||||
|
||||
printf("%s %d\n",art_files[i],size);
|
||||
close(fd);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user