SHOW:
|
|
- or go back to the newest paste.
1 | - | 0.1 Pre-BETA: |
1 | + | # Composition Counter |
2 | - | -Prepared place for building. |
2 | + | # Made by Gary |
3 | - | -Emptied map |
3 | + | # Figures out the percentages of different file extensions and their sizes (similarly to what Github displays but for bash) |
4 | - | -Configured some settings |
4 | + | # Not really optimized that well but works fine |
5 | - | -Game was named "Titian Defence Tycoon" |
5 | + | |
6 | - | 1.0 BETA: |
6 | + | #!/bin/bash |
7 | - | -Tycoon starter |
7 | + | |
8 | - | -Owner room |
8 | + | shopt -s globstar nullglob dotglob |
9 | - | -Baseplate |
9 | + | |
10 | - | -Added the basic Titian. (Fun fact: All the titians and titian types in this game came from one simple zombie freemodel) |
10 | + | # First iteration to get total size |
11 | - | -Game was renamed to "Revenge of the Titian" |
11 | + | fullsize=0 |
12 | - | 1.1 BETA: |
12 | + | for ext in c cpp txt asm inc md sh m4 s; do |
13 | - | -Added mesh kits |
13 | + | files=(**/*."$ext" ) |
14 | - | -Added RPG mode |
14 | + | |
15 | - | -Added the house, statue, and path to the tycoon |
15 | + | for f in "${files[@]}"; do |
16 | - | -Added second machine to tycoon |
16 | + | fullsize=$(($fullsize + `stat --printf="%s" "%f"`)) |
17 | - | -Added Owner-only-door to the tycoon |
17 | + | done |
18 | - | -Added low income, but very fast, stone producer to the second machine |
18 | + | done |
19 | - | -Added wall layers to the tycoon |
19 | + | |
20 | - | 1.2 BETA: |
20 | + | # Second iteration to get percentages |
21 | - | -Added minigame lobby. Currently has no minigames. |
21 | + | for ext in c cpp txt asm inc md sh m4 s; do |
22 | - | -Added new types of titians for RPG mode |
22 | + | totalsize=0 |
23 | - | -Added armor for RPG mode |
23 | + | files=(**/*."$ext" ) |
24 | - | -Improved the second machine |
24 | + | |
25 | - | -Added the Gold and diamond producer into second machine in tycoon |
25 | + | for f in "${files[@]}"; do |
26 | - | 1.2.1 BETA: |
26 | + | totalsize=$(($totalsize + `stat --printf="%s" "%f"`)) |
27 | - | -Made the tycoon area more safe by blocking off the RPG zone with 1-way stairs |
27 | + | done |
28 | - | 1.3 BETA: |
28 | + | |
29 | - | -Added a parkour (obby) to the minigame lobby |
29 | + | divided=`echo "scale=8 ; $totalsize / $fullsize * 100" | bc` |
30 | - | -Added more empty paths in the minigame lobby, for future minigames |
30 | + | |
31 | - | 1.4 BETA: |
31 | + | printf '%s:\t%d (%d bytes, %f%%)\n' "$ext" "${#files[@]}" "$totalsize" "$divided" |
32 | - | -Added plans for future minigames |
32 | + | done |