Including screenshots and stats script.
|
@ -35,4 +35,6 @@ tbftss
|
||||||
|
|
||||||
# folders
|
# folders
|
||||||
dist
|
dist
|
||||||
dev
|
dev/*
|
||||||
|
!dev/screenshots
|
||||||
|
!dev/stats.sh
|
||||||
|
|
After Width: | Height: | Size: 536 KiB |
After Width: | Height: | Size: 506 KiB |
After Width: | Height: | Size: 539 KiB |
After Width: | Height: | Size: 474 KiB |
After Width: | Height: | Size: 407 KiB |
After Width: | Height: | Size: 574 KiB |
After Width: | Height: | Size: 636 KiB |
After Width: | Height: | Size: 593 KiB |
After Width: | Height: | Size: 256 KiB |
After Width: | Height: | Size: 987 KiB |
After Width: | Height: | Size: 631 KiB |
After Width: | Height: | Size: 506 KiB |
After Width: | Height: | Size: 458 KiB |
After Width: | Height: | Size: 738 KiB |
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
STATS_FILE="stats.md"
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
SRC_SIZE=`du -bsh src | awk '{print $1}'`
|
||||||
|
DATA_SIZE=`du -bsh data | awk '{print $1}'`
|
||||||
|
GFX_SIZE=`du -bsh gfx | awk '{print $1}'`
|
||||||
|
SND_SIZE=`du -bsh sound | awk '{print $1}'`
|
||||||
|
MUSIC_SIZE=`du -bsh music | awk '{print $1}'`
|
||||||
|
|
||||||
|
SRC_LINES=`find src -name *.c | xargs wc -l | grep total | awk '{print $1}'`
|
||||||
|
|
||||||
|
NUM_MISSIONS=`find data/missions -iname *.json | wc -l`
|
||||||
|
NUM_CHALLENGES=`find data -name '*.json' -print0 | xargs -0 cat | grep "\"type\" : \"CHALLENGE_" | wc -l`
|
||||||
|
NUM_TROPHIES=`cat data/trophies/trophies.json | grep id | wc -l`
|
||||||
|
|
||||||
|
NUM_CRAFT=`find data/craft/* | wc -l`
|
||||||
|
NUM_FIGHTERS=`find data/fighters/* | wc -l`
|
||||||
|
NUM_GUNS=`find data/turrets/* | wc -l`
|
||||||
|
NUM_CAPS=`find data/capitalShips/* | wc -l`
|
||||||
|
TOTAL_CRAFT=$(($NUM_CRAFT + $NUM_FIGHTERS + $NUM_GUNS + $NUM_CAPS))
|
||||||
|
|
||||||
|
LOCALE=`cat locale/tbftss.pot | grep msgid | wc -l`
|
||||||
|
|
||||||
|
echo "Statistics" > $STATS_FILE
|
||||||
|
echo "----------" >> $STATS_FILE
|
||||||
|
echo "" >> $STATS_FILE
|
||||||
|
|
||||||
|
echo "Lines of code: $SRC_LINES" >> $STATS_FILE
|
||||||
|
echo "Size of source: $SRC_SIZE" >> $STATS_FILE
|
||||||
|
echo "Size of data: $DATA_SIZE" >> $STATS_FILE
|
||||||
|
echo "Size of graphics: $GFX_SIZE" >> $STATS_FILE
|
||||||
|
echo "Size of sound: $SND_SIZE" >> $STATS_FILE
|
||||||
|
echo "Size of music $MUSIC_SIZE" >> $STATS_FILE
|
||||||
|
echo "" >> $STATS_FILE
|
||||||
|
|
||||||
|
echo "Number of missions: $NUM_MISSIONS" >> $STATS_FILE
|
||||||
|
echo "Number of challenges: $NUM_CHALLENGES" >> $STATS_FILE
|
||||||
|
echo "Number of spacecraft: $TOTAL_CRAFT" >> $STATS_FILE
|
||||||
|
echo "Number of trophies: $NUM_TROPHIES" >> $STATS_FILE
|
||||||
|
echo "" >> $STATS_FILE
|
||||||
|
|
||||||
|
echo "Translatable strings: $LOCALE" >> $STATS_FILE
|