Including screenshots and stats script.

This commit is contained in:
Steve 2016-04-17 10:59:20 +01:00
parent dde34beedb
commit 40ea6765b4
16 changed files with 48 additions and 1 deletions

4
.gitignore vendored
View File

@ -35,4 +35,6 @@ tbftss
# folders # folders
dist dist
dev dev/*
!dev/screenshots
!dev/stats.sh

BIN
dev/screenshots/v0.1-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

BIN
dev/screenshots/v0.1-02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 KiB

BIN
dev/screenshots/v0.2-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

BIN
dev/screenshots/v0.4-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

BIN
dev/screenshots/v0.4-03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

BIN
dev/screenshots/v0.5-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

BIN
dev/screenshots/v0.5-02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

BIN
dev/screenshots/v0.5-03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

BIN
dev/screenshots/v0.6-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
dev/screenshots/v0.6-02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 KiB

BIN
dev/screenshots/v0.6-03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 KiB

BIN
dev/screenshots/v0.6-04.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 KiB

BIN
dev/screenshots/v0.6-05.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
dev/screenshots/v0.6-06.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 KiB

45
dev/stats.sh Executable file
View File

@ -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