Updated to version 1.0.1

This commit is contained in:
Functioning Member of Society 2023-03-12 01:26:39 +01:00
parent f56aace8b2
commit 6f9771cd7e
44 changed files with 23284 additions and 9814 deletions

View File

@ -1,8 +1,8 @@
# Blender MTL File: 'facility.blend' # Blender MTL File: 'None'
# Material Count: 5 # Material Count: 5
newmtl Material.001 newmtl Material.001
Ns 225.000000 Ns 223.529412
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
@ -11,9 +11,8 @@ Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl Material.002 newmtl Material.002
Ns 225.000000 Ns 223.529412
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
@ -22,9 +21,8 @@ Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl Material.003 newmtl Material.003
Ns 225.000000 Ns 223.529412
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
@ -33,9 +31,8 @@ Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl Material.004 newmtl Material.004
Ns 225.000000 Ns 223.529412
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
@ -44,9 +41,8 @@ Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl Material.005 newmtl Material.005
Ns 225.000000 Ns 223.529412
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
@ -54,4 +50,3 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,825 @@
# Blender 3.4.1
# www.blender.org
o Cube
v -3.570589 -1.000000 3.000000
v -3.570589 1.000000 3.000000
v -3.570589 -1.000000 -45.926144
v -3.570589 1.000000 -45.926144
v 1.000000 -1.000000 3.000000
v 1.000000 1.000000 3.000000
v 1.000000 -1.000000 -45.926144
v 1.000000 1.000000 -45.926144
v -3.570589 -1.000000 5.000000
v -1.285295 -0.750000 7.000000
v 1.000000 1.000000 7.000000
v 1.000000 -1.000000 7.000000
v -1.285295 -1.000000 3.000000
v -1.285295 1.000000 3.000000
v -1.285295 -1.000000 7.000000
v -1.285295 1.000000 7.000000
v -3.570589 1.000000 5.000000
v -3.263761 1.000000 3.000000
v -3.263761 -1.000000 5.000000
v -3.263761 1.000000 5.000000
v -3.263761 -0.750000 5.000000
v -1.285295 -0.750000 4.750000
v -3.263761 -0.750000 4.750000
v -1.285295 -0.500000 4.750000
v -3.263761 -0.500000 4.750000
v -1.285295 -0.500000 4.500000
v -3.263761 -0.500000 4.500000
v -1.285295 -0.250000 4.500000
v -3.263761 -0.250000 4.500000
v -1.285295 -0.250000 4.250000
v -3.263761 -0.250000 4.250000
v -1.285295 0.000000 4.250000
v -3.263761 0.000000 4.250000
v -1.285295 0.000000 4.000000
v -3.263761 0.000000 4.000000
v -1.285295 0.250000 4.000000
v -3.263761 0.250000 4.000000
v -1.285295 0.250000 3.750000
v -3.263761 0.250000 3.750000
v -1.285295 0.500000 3.750000
v -3.263761 0.500000 3.750000
v -1.285295 0.500000 3.500000
v -3.263761 0.500000 3.500000
v -1.285295 0.750000 3.500000
v -3.263761 0.750000 3.500000
v -1.285295 0.750000 3.250000
v -3.263761 0.750000 3.250000
v -1.285295 1.000000 3.250000
v -3.263761 1.000000 3.250000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.7109 -0.0000 0.7033
s 0
f 1//1 2//1 4//1 3//1
f 3//2 4//2 8//2 7//2
f 7//3 8//3 6//3 5//3
f 3//4 7//4 5//4 13//4 1//4
f 8//5 4//5 2//5 18//5 14//5 6//5
f 5//3 6//3 11//3 12//3
f 12//6 11//6 16//6 10//6 15//6
f 13//4 5//4 12//4 15//4
f 1//4 13//4 15//4 19//4 9//4
f 6//5 14//5 48//5 16//5 11//5
f 2//1 1//1 9//1 17//1
f 20//5 49//5 18//5 2//5 17//5
f 17//6 9//6 19//6 21//6 20//6
f 19//7 15//7 10//7 21//7
f 21//5 10//5 22//5 23//5
f 23//6 22//6 24//6 25//6
f 25//5 24//5 26//5 27//5
f 27//6 26//6 28//6 29//6
f 29//5 28//5 30//5 31//5
f 31//6 30//6 32//6 33//6
f 33//5 32//5 34//5 35//5
f 35//6 34//6 36//6 37//6
f 37//5 36//5 38//5 39//5
f 39//6 38//6 40//6 41//6
f 41//5 40//5 42//5 43//5
f 43//6 42//6 44//6 45//6
f 45//5 44//5 46//5 47//5
f 46//6 48//6 49//6 47//6
f 18//5 49//5 48//5 14//5
f 16//1 48//1 46//1 44//1 42//1 40//1 38//1 36//1 34//1 32//1 30//1 28//1 26//1 24//1 22//1 10//1
f 21//3 23//3 25//3 27//3 29//3 31//3 33//3 35//3 37//3 39//3 41//3 43//3 45//3 47//3 49//3 20//3
o Cube.001
v -1.119972 1.000000 0.000000
v -0.727963 1.364723 0.000000
v -1.119972 1.000000 -40.000000
v -0.727963 1.364723 -40.000000
v 0.880028 1.000000 0.000000
v 0.488020 1.364723 0.000000
v 0.880028 1.000000 -40.000000
v 0.488020 1.364723 -40.000000
v -0.701534 1.000000 -40.000000
v -0.473557 1.364723 -40.000000
v -0.701534 1.000000 0.000000
v -0.473557 1.364723 0.000000
v 0.115339 1.364723 -40.000000
v 0.267059 1.000000 0.000000
v 0.267059 1.000000 -40.000000
v 0.115339 1.364723 0.000000
v 0.115339 3.765200 0.000000
v -0.473557 3.765200 0.000000
v -0.473557 3.765200 -40.000000
v 0.115339 3.765200 -40.000000
v 0.115339 4.135352 0.000000
v -0.473557 4.135352 0.000000
v -0.473557 4.135352 -40.000000
v 0.115339 4.135352 -40.000000
v -0.764953 3.765200 -40.000000
v -0.764953 3.765200 0.000000
v -0.764953 4.135352 -40.000000
v -0.764953 4.135352 0.000000
v -2.800790 4.027719 -40.000000
v -2.800790 4.027719 0.000000
v -2.800790 4.135352 -40.000000
v -2.800790 4.135352 0.000000
v -1.119972 1.000000 7.000000
v -0.727963 1.364723 7.000000
v 0.488020 1.364723 7.000000
v 0.880028 1.000000 7.000000
v 0.267059 1.000000 7.000000
v -0.701534 1.000000 7.000000
v -0.473557 3.285037 0.000000
v 0.115339 3.285037 0.000000
v 0.050797 1.364723 7.000000
v -0.409015 1.364723 7.000000
v -0.056417 2.393961 7.000000
v -0.301801 2.393961 7.000000
vn -0.6812 0.7321 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 0.6812 0.7321 -0.0000
vn -0.0000 -1.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 0.9920 0.1263
vn 1.0000 -0.0000 -0.0000
vn -1.0000 -0.0000 -0.0000
vn 0.9939 0.1035 0.0376
vn -0.0000 -0.0000 1.0000
vn -0.1279 -0.9918 -0.0000
vn -1.0000 -0.0000 0.0092
vn -0.9939 0.1035 0.0376
vn 1.0000 -0.0000 0.0092
s 0
f 50//8 51//8 53//8 52//8
f 64//9 62//9 57//9 56//9
f 56//10 57//10 55//10 54//10
f 60//11 63//11 86//11 87//11
f 64//11 56//11 54//11 63//11
f 59//12 53//12 51//12 61//12
f 62//9 59//9 68//9 69//9
f 52//11 58//11 60//11 50//11
f 51//8 50//8 82//8 83//8
f 52//9 53//9 59//9 58//9
f 89//13 88//13 93//13 92//13
f 57//12 62//12 65//12 55//12
f 58//11 64//11 63//11 60//11
f 58//9 59//9 62//9 64//9
f 66//14 69//14 73//14 70//14
f 59//15 61//15 88//15 67//15 68//15
f 65//14 62//14 69//14 66//14 89//14
f 89//16 92//16 90//16
f 73//12 72//12 71//12 70//12
f 67//17 71//17 77//17 75//17
f 69//9 68//9 72//9 73//9
f 67//17 66//17 70//17 71//17
f 74//18 75//18 79//18 78//18
f 68//11 67//11 75//11 74//11
f 72//9 68//9 74//9 76//9
f 71//12 72//12 76//12 77//12
f 78//15 79//15 81//15 80//15
f 76//9 74//9 78//9 80//9
f 77//12 76//12 80//12 81//12
f 75//17 77//17 81//17 79//17
f 85//17 84//17 90//17 86//17
f 86//17 90//17 91//17 87//17
f 82//17 87//17 91//17 83//17
f 63//11 54//11 85//11 86//11
f 88//19 61//19 91//19
f 91//17 90//17 92//17 93//17
f 54//10 55//10 84//10 85//10
f 50//11 60//11 87//11 82//11
f 88//17 89//17 66//17 67//17
f 61//11 65//11 90//11 91//11
f 91//12 61//12 51//12 83//12
f 90//12 84//12 55//12 65//12
f 93//20 88//20 91//20
f 65//21 89//21 90//21
o Cube.002
v -2.388322 1.269027 -3.033572
v -2.388322 1.361725 -3.033572
v -2.388322 1.269027 -5.026642
v -2.388322 1.361725 -5.026642
v -1.611678 1.269027 -3.033572
v -1.611678 1.361725 -3.033572
v -1.611678 1.269027 -5.026642
v -1.611678 1.361725 -5.026642
v -2.297065 1.269027 -5.026642
v -2.297065 1.361725 -5.026642
v -2.297065 1.269027 -3.033572
v -2.297065 1.361725 -3.033572
v -1.697818 1.361725 -5.026642
v -1.697818 1.269027 -3.033572
v -1.697818 1.269027 -5.026642
v -1.697818 1.361725 -3.033572
v -2.388322 1.269027 -4.931385
v -2.388322 1.361725 -4.931385
v -1.611678 1.269027 -4.931385
v -1.611678 1.361725 -4.931385
v -2.297065 1.361725 -4.931385
v -2.297065 1.269027 -4.931385
v -1.697818 1.361725 -4.931385
v -1.697818 1.269027 -4.931385
v -2.388322 1.269027 -3.126817
v -1.611678 1.361725 -3.126817
v -2.297065 1.361725 -3.126817
v -2.297065 1.269027 -3.126817
v -1.697818 1.361725 -3.126817
v -1.697818 1.269027 -3.126817
v -2.388322 1.361725 -3.126817
v -1.611678 1.269027 -3.126817
v -2.388322 1.000000 -3.126817
v -2.388322 1.000000 -3.033572
v -2.297065 1.000000 -5.026642
v -2.388322 1.000000 -5.026642
v -1.611678 1.000000 -4.931385
v -1.611678 1.000000 -5.026642
v -1.697818 1.000000 -3.033572
v -1.611678 1.000000 -3.033572
v -2.297065 1.000000 -3.033572
v -2.297065 1.000000 -3.126817
v -1.697818 1.000000 -5.026642
v -1.697818 1.000000 -3.126817
v -2.388322 1.000000 -4.931385
v -2.297065 1.000000 -4.931385
v -1.697818 1.000000 -4.931385
v -1.611678 1.000000 -3.126817
v -1.606665 1.950419 -5.026642
v -1.520525 1.950419 -5.026642
v -1.520525 1.950419 -3.126817
v -1.520525 1.950419 -3.033572
v -1.606665 1.950419 -3.033572
v -1.606665 1.950419 -3.126817
v -1.520525 1.950419 -4.931385
v -1.606665 1.950419 -4.931385
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9882 -0.1530 -0.0000
vn -0.9882 0.1530 -0.0000
s 0
f 110//22 111//22 97//22 96//22
f 108//23 106//23 101//23 100//23
f 125//24 119//24 99//24 98//24
f 104//25 105//25 95//25 94//25
f 121//24 104//24 134//24 135//24
f 120//26 124//26 95//26 105//26
f 115//25 110//25 138//25 139//25
f 122//26 120//26 105//26 109//26
f 96//23 97//23 103//23 102//23
f 98//25 99//25 109//25 107//25
f 101//23 106//23 142//23 143//23
f 107//25 109//25 105//25 104//25
f 121//27 123//27 107//27 104//27
f 102//23 103//23 106//23 108//23
f 113//28 101//28 143//28 148//28
f 94//22 118//22 126//22 127//22
f 102//27 108//27 117//27 115//27
f 103//26 97//26 111//26 114//26
f 108//23 100//23 131//23 136//23
f 100//24 101//24 113//24 112//24
f 94//22 95//22 124//22 118//22
f 137//27 141//27 133//27 132//27
f 126//27 135//27 134//27 127//27
f 129//27 128//27 139//27 138//27
f 136//27 131//27 130//27 140//27
f 98//25 107//25 132//25 133//25
f 118//23 121//23 135//23 126//23
f 102//24 115//24 139//24 128//24
f 107//22 123//22 137//22 132//22
f 96//23 102//23 128//23 129//23
f 112//25 117//25 140//25 130//25
f 117//22 108//22 136//22 140//22
f 110//22 96//22 129//22 138//22
f 123//23 125//23 141//23 137//23
f 125//24 98//24 133//24 141//24
f 104//25 94//25 127//25 134//25
f 100//24 112//24 130//24 131//24
f 144//26 147//26 146//26 145//26
f 143//26 142//26 149//26 148//26
f 122//29 109//29 146//29 147//29
f 106//29 116//29 149//29 142//29
f 109//25 99//25 145//25 146//25
f 99//28 119//28 144//28 145//28
f 106//26 103//26 114//26 116//26
f 113//28 148//28 144//28 119//28
f 148//26 149//26 147//26 144//26
f 149//29 116//29 122//29 147//29
f 116//26 114//26 120//26 122//26
f 114//26 111//26 124//26 120//26
f 110//22 118//22 124//22 111//22
f 115//27 117//27 123//27 121//27
f 117//27 112//27 125//27 123//27
f 112//24 113//24 119//24 125//24
f 110//27 115//27 121//27 118//27
o Cube.003
v -2.388322 1.269027 -10.807060
v -2.388322 1.361725 -10.807060
v -2.388322 1.269027 -12.800129
v -2.388322 1.361725 -12.800129
v -1.611678 1.269027 -10.807060
v -1.611678 1.361725 -10.807060
v -1.611678 1.269027 -12.800129
v -1.611678 1.361725 -12.800129
v -2.297065 1.269027 -12.800129
v -2.297065 1.361725 -12.800129
v -2.297065 1.269027 -10.807060
v -2.297065 1.361725 -10.807060
v -1.697818 1.361725 -12.800129
v -1.697818 1.269027 -10.807060
v -1.697818 1.269027 -12.800129
v -1.697818 1.361725 -10.807060
v -2.388322 1.269027 -12.704872
v -2.388322 1.361725 -12.704872
v -1.611678 1.269027 -12.704872
v -1.611678 1.361725 -12.704872
v -2.297065 1.361725 -12.704872
v -2.297065 1.269027 -12.704872
v -1.697818 1.361725 -12.704872
v -1.697818 1.269027 -12.704872
v -2.388322 1.269027 -10.900305
v -1.611678 1.361725 -10.900305
v -2.297065 1.361725 -10.900305
v -2.297065 1.269027 -10.900305
v -1.697818 1.361725 -10.900305
v -1.697818 1.269027 -10.900305
v -2.388322 1.361725 -10.900305
v -1.611678 1.269027 -10.900305
v -2.388322 1.000000 -10.900305
v -2.388322 1.000000 -10.807060
v -2.297065 1.000000 -12.800129
v -2.388322 1.000000 -12.800129
v -1.611678 1.000000 -12.704872
v -1.611678 1.000000 -12.800129
v -1.697818 1.000000 -10.807060
v -1.611678 1.000000 -10.807060
v -2.297065 1.000000 -10.807060
v -2.297065 1.000000 -10.900305
v -1.697818 1.000000 -12.800129
v -1.697818 1.000000 -10.900305
v -2.388322 1.000000 -12.704872
v -2.297065 1.000000 -12.704872
v -1.697818 1.000000 -12.704872
v -1.611678 1.000000 -10.900305
v -1.606665 1.950419 -12.800129
v -1.520525 1.950419 -12.800129
v -1.520525 1.950419 -10.900305
v -1.520525 1.950419 -10.807060
v -1.606665 1.950419 -10.807060
v -1.606665 1.950419 -10.900305
v -1.520525 1.950419 -12.704872
v -1.606665 1.950419 -12.704872
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9882 -0.1530 -0.0000
vn -0.9882 0.1530 -0.0000
s 0
f 166//30 167//30 153//30 152//30
f 164//31 162//31 157//31 156//31
f 181//32 175//32 155//32 154//32
f 160//33 161//33 151//33 150//33
f 177//32 160//32 190//32 191//32
f 176//34 180//34 151//34 161//34
f 171//33 166//33 194//33 195//33
f 178//34 176//34 161//34 165//34
f 152//31 153//31 159//31 158//31
f 154//33 155//33 165//33 163//33
f 157//31 162//31 198//31 199//31
f 163//33 165//33 161//33 160//33
f 177//35 179//35 163//35 160//35
f 158//31 159//31 162//31 164//31
f 169//36 157//36 199//36 204//36
f 150//30 174//30 182//30 183//30
f 158//35 164//35 173//35 171//35
f 159//34 153//34 167//34 170//34
f 164//31 156//31 187//31 192//31
f 156//32 157//32 169//32 168//32
f 150//30 151//30 180//30 174//30
f 193//35 197//35 189//35 188//35
f 182//35 191//35 190//35 183//35
f 185//35 184//35 195//35 194//35
f 192//35 187//35 186//35 196//35
f 154//33 163//33 188//33 189//33
f 174//31 177//31 191//31 182//31
f 158//32 171//32 195//32 184//32
f 163//30 179//30 193//30 188//30
f 152//31 158//31 184//31 185//31
f 168//33 173//33 196//33 186//33
f 173//30 164//30 192//30 196//30
f 166//30 152//30 185//30 194//30
f 179//31 181//31 197//31 193//31
f 181//32 154//32 189//32 197//32
f 160//33 150//33 183//33 190//33
f 156//32 168//32 186//32 187//32
f 200//34 203//34 202//34 201//34
f 199//34 198//34 205//34 204//34
f 178//37 165//37 202//37 203//37
f 162//37 172//37 205//37 198//37
f 165//33 155//33 201//33 202//33
f 155//36 175//36 200//36 201//36
f 162//34 159//34 170//34 172//34
f 169//36 204//36 200//36 175//36
f 204//34 205//34 203//34 200//34
f 205//37 172//37 178//37 203//37
f 172//34 170//34 176//34 178//34
f 170//34 167//34 180//34 176//34
f 166//30 174//30 180//30 167//30
f 171//35 173//35 179//35 177//35
f 173//35 168//35 181//35 179//35
f 168//32 169//32 175//32 181//32
f 166//35 171//35 177//35 174//35
o Cube.004
v -2.388322 1.269027 -18.972490
v -2.388322 1.361725 -18.972490
v -2.388322 1.269027 -20.965559
v -2.388322 1.361725 -20.965559
v -1.611678 1.269027 -18.972490
v -1.611678 1.361725 -18.972490
v -1.611678 1.269027 -20.965559
v -1.611678 1.361725 -20.965559
v -2.297065 1.269027 -20.965559
v -2.297065 1.361725 -20.965559
v -2.297065 1.269027 -18.972490
v -2.297065 1.361725 -18.972490
v -1.697818 1.361725 -20.965559
v -1.697818 1.269027 -18.972490
v -1.697818 1.269027 -20.965559
v -1.697818 1.361725 -18.972490
v -2.388322 1.269027 -20.870302
v -2.388322 1.361725 -20.870302
v -1.611678 1.269027 -20.870302
v -1.611678 1.361725 -20.870302
v -2.297065 1.361725 -20.870302
v -2.297065 1.269027 -20.870302
v -1.697818 1.361725 -20.870302
v -1.697818 1.269027 -20.870302
v -2.388322 1.269027 -19.065735
v -1.611678 1.361725 -19.065735
v -2.297065 1.361725 -19.065735
v -2.297065 1.269027 -19.065735
v -1.697818 1.361725 -19.065735
v -1.697818 1.269027 -19.065735
v -2.388322 1.361725 -19.065735
v -1.611678 1.269027 -19.065735
v -2.388322 1.000000 -19.065735
v -2.388322 1.000000 -18.972490
v -2.297065 1.000000 -20.965559
v -2.388322 1.000000 -20.965559
v -1.611678 1.000000 -20.870302
v -1.611678 1.000000 -20.965559
v -1.697818 1.000000 -18.972490
v -1.611678 1.000000 -18.972490
v -2.297065 1.000000 -18.972490
v -2.297065 1.000000 -19.065735
v -1.697818 1.000000 -20.965559
v -1.697818 1.000000 -19.065735
v -2.388322 1.000000 -20.870302
v -2.297065 1.000000 -20.870302
v -1.697818 1.000000 -20.870302
v -1.611678 1.000000 -19.065735
v -1.606665 1.950419 -20.965559
v -1.520525 1.950419 -20.965559
v -1.520525 1.950419 -19.065735
v -1.520525 1.950419 -18.972490
v -1.606665 1.950419 -18.972490
v -1.606665 1.950419 -19.065735
v -1.520525 1.950419 -20.870302
v -1.606665 1.950419 -20.870302
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9882 -0.1530 -0.0000
vn -0.9882 0.1530 -0.0000
s 0
f 222//38 223//38 209//38 208//38
f 220//39 218//39 213//39 212//39
f 237//40 231//40 211//40 210//40
f 216//41 217//41 207//41 206//41
f 233//40 216//40 246//40 247//40
f 232//42 236//42 207//42 217//42
f 227//41 222//41 250//41 251//41
f 234//42 232//42 217//42 221//42
f 208//39 209//39 215//39 214//39
f 210//41 211//41 221//41 219//41
f 213//39 218//39 254//39 255//39
f 219//41 221//41 217//41 216//41
f 233//43 235//43 219//43 216//43
f 214//39 215//39 218//39 220//39
f 225//44 213//44 255//44 260//44
f 206//38 230//38 238//38 239//38
f 214//43 220//43 229//43 227//43
f 215//42 209//42 223//42 226//42
f 220//39 212//39 243//39 248//39
f 212//40 213//40 225//40 224//40
f 206//38 207//38 236//38 230//38
f 249//43 253//43 245//43 244//43
f 238//43 247//43 246//43 239//43
f 241//43 240//43 251//43 250//43
f 248//43 243//43 242//43 252//43
f 210//41 219//41 244//41 245//41
f 230//39 233//39 247//39 238//39
f 214//40 227//40 251//40 240//40
f 219//38 235//38 249//38 244//38
f 208//39 214//39 240//39 241//39
f 224//41 229//41 252//41 242//41
f 229//38 220//38 248//38 252//38
f 222//38 208//38 241//38 250//38
f 235//39 237//39 253//39 249//39
f 237//40 210//40 245//40 253//40
f 216//41 206//41 239//41 246//41
f 212//40 224//40 242//40 243//40
f 256//42 259//42 258//42 257//42
f 255//42 254//42 261//42 260//42
f 234//45 221//45 258//45 259//45
f 218//45 228//45 261//45 254//45
f 221//41 211//41 257//41 258//41
f 211//44 231//44 256//44 257//44
f 218//42 215//42 226//42 228//42
f 225//44 260//44 256//44 231//44
f 260//42 261//42 259//42 256//42
f 261//45 228//45 234//45 259//45
f 228//42 226//42 232//42 234//42
f 226//42 223//42 236//42 232//42
f 222//38 230//38 236//38 223//38
f 227//43 229//43 235//43 233//43
f 229//43 224//43 237//43 235//43
f 224//40 225//40 231//40 237//40
f 222//43 227//43 233//43 230//43
o Cube.005
v -2.388322 1.269027 -27.137918
v -2.388322 1.361725 -27.137918
v -2.388322 1.269027 -29.130987
v -2.388322 1.361725 -29.130987
v -1.611678 1.269027 -27.137918
v -1.611678 1.361725 -27.137918
v -1.611678 1.269027 -29.130987
v -1.611678 1.361725 -29.130987
v -2.297065 1.269027 -29.130987
v -2.297065 1.361725 -29.130987
v -2.297065 1.269027 -27.137918
v -2.297065 1.361725 -27.137918
v -1.697818 1.361725 -29.130987
v -1.697818 1.269027 -27.137918
v -1.697818 1.269027 -29.130987
v -1.697818 1.361725 -27.137918
v -2.388322 1.269027 -29.035730
v -2.388322 1.361725 -29.035730
v -1.611678 1.269027 -29.035730
v -1.611678 1.361725 -29.035730
v -2.297065 1.361725 -29.035730
v -2.297065 1.269027 -29.035730
v -1.697818 1.361725 -29.035730
v -1.697818 1.269027 -29.035730
v -2.388322 1.269027 -27.231163
v -1.611678 1.361725 -27.231163
v -2.297065 1.361725 -27.231163
v -2.297065 1.269027 -27.231163
v -1.697818 1.361725 -27.231163
v -1.697818 1.269027 -27.231163
v -2.388322 1.361725 -27.231163
v -1.611678 1.269027 -27.231163
v -2.388322 1.000000 -27.231163
v -2.388322 1.000000 -27.137918
v -2.297065 1.000000 -29.130987
v -2.388322 1.000000 -29.130987
v -1.611678 1.000000 -29.035730
v -1.611678 1.000000 -29.130987
v -1.697818 1.000000 -27.137918
v -1.611678 1.000000 -27.137918
v -2.297065 1.000000 -27.137918
v -2.297065 1.000000 -27.231163
v -1.697818 1.000000 -29.130987
v -1.697818 1.000000 -27.231163
v -2.388322 1.000000 -29.035730
v -2.297065 1.000000 -29.035730
v -1.697818 1.000000 -29.035730
v -1.611678 1.000000 -27.231163
v -1.606665 1.950419 -29.130987
v -1.520525 1.950419 -29.130987
v -1.520525 1.950419 -27.231163
v -1.520525 1.950419 -27.137918
v -1.606665 1.950419 -27.137918
v -1.606665 1.950419 -27.231163
v -1.520525 1.950419 -29.035730
v -1.606665 1.950419 -29.035730
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9882 -0.1530 -0.0000
vn -0.9882 0.1530 -0.0000
s 0
f 278//46 279//46 265//46 264//46
f 276//47 274//47 269//47 268//47
f 293//48 287//48 267//48 266//48
f 272//49 273//49 263//49 262//49
f 289//48 272//48 302//48 303//48
f 288//50 292//50 263//50 273//50
f 283//49 278//49 306//49 307//49
f 290//50 288//50 273//50 277//50
f 264//47 265//47 271//47 270//47
f 266//49 267//49 277//49 275//49
f 269//47 274//47 310//47 311//47
f 275//49 277//49 273//49 272//49
f 289//51 291//51 275//51 272//51
f 270//47 271//47 274//47 276//47
f 281//52 269//52 311//52 316//52
f 262//46 286//46 294//46 295//46
f 270//51 276//51 285//51 283//51
f 271//50 265//50 279//50 282//50
f 276//47 268//47 299//47 304//47
f 268//48 269//48 281//48 280//48
f 262//46 263//46 292//46 286//46
f 305//51 309//51 301//51 300//51
f 294//51 303//51 302//51 295//51
f 297//51 296//51 307//51 306//51
f 304//51 299//51 298//51 308//51
f 266//49 275//49 300//49 301//49
f 286//47 289//47 303//47 294//47
f 270//48 283//48 307//48 296//48
f 275//46 291//46 305//46 300//46
f 264//47 270//47 296//47 297//47
f 280//49 285//49 308//49 298//49
f 285//46 276//46 304//46 308//46
f 278//46 264//46 297//46 306//46
f 291//47 293//47 309//47 305//47
f 293//48 266//48 301//48 309//48
f 272//49 262//49 295//49 302//49
f 268//48 280//48 298//48 299//48
f 312//50 315//50 314//50 313//50
f 311//50 310//50 317//50 316//50
f 290//53 277//53 314//53 315//53
f 274//53 284//53 317//53 310//53
f 277//49 267//49 313//49 314//49
f 267//52 287//52 312//52 313//52
f 274//50 271//50 282//50 284//50
f 281//52 316//52 312//52 287//52
f 316//50 317//50 315//50 312//50
f 317//53 284//53 290//53 315//53
f 284//50 282//50 288//50 290//50
f 282//50 279//50 292//50 288//50
f 278//46 286//46 292//46 279//46
f 283//51 285//51 291//51 289//51
f 285//51 280//51 293//51 291//51
f 280//48 281//48 287//48 293//48
f 278//51 283//51 289//51 286//51
o Cube.006
v -2.388322 1.269027 -35.042049
v -2.388322 1.361725 -35.042049
v -2.388322 1.269027 -37.035122
v -2.388322 1.361725 -37.035122
v -1.611678 1.269027 -35.042049
v -1.611678 1.361725 -35.042049
v -1.611678 1.269027 -37.035122
v -1.611678 1.361725 -37.035122
v -2.297065 1.269027 -37.035122
v -2.297065 1.361725 -37.035122
v -2.297065 1.269027 -35.042049
v -2.297065 1.361725 -35.042049
v -1.697818 1.361725 -37.035122
v -1.697818 1.269027 -35.042049
v -1.697818 1.269027 -37.035122
v -1.697818 1.361725 -35.042049
v -2.388322 1.269027 -36.939865
v -2.388322 1.361725 -36.939865
v -1.611678 1.269027 -36.939865
v -1.611678 1.361725 -36.939865
v -2.297065 1.361725 -36.939865
v -2.297065 1.269027 -36.939865
v -1.697818 1.361725 -36.939865
v -1.697818 1.269027 -36.939865
v -2.388322 1.269027 -35.135296
v -1.611678 1.361725 -35.135296
v -2.297065 1.361725 -35.135296
v -2.297065 1.269027 -35.135296
v -1.697818 1.361725 -35.135296
v -1.697818 1.269027 -35.135296
v -2.388322 1.361725 -35.135296
v -1.611678 1.269027 -35.135296
v -2.388322 1.000000 -35.135296
v -2.388322 1.000000 -35.042049
v -2.297065 1.000000 -37.035122
v -2.388322 1.000000 -37.035122
v -1.611678 1.000000 -36.939865
v -1.611678 1.000000 -37.035122
v -1.697818 1.000000 -35.042049
v -1.611678 1.000000 -35.042049
v -2.297065 1.000000 -35.042049
v -2.297065 1.000000 -35.135296
v -1.697818 1.000000 -37.035122
v -1.697818 1.000000 -35.135296
v -2.388322 1.000000 -36.939865
v -2.297065 1.000000 -36.939865
v -1.697818 1.000000 -36.939865
v -1.611678 1.000000 -35.135296
v -1.606665 1.950419 -37.035122
v -1.520525 1.950419 -37.035122
v -1.520525 1.950419 -35.135296
v -1.520525 1.950419 -35.042049
v -1.606665 1.950419 -35.042049
v -1.606665 1.950419 -35.135296
v -1.520525 1.950419 -36.939865
v -1.606665 1.950419 -36.939865
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9882 -0.1530 -0.0000
vn -0.9882 0.1530 -0.0000
s 0
f 334//54 335//54 321//54 320//54
f 332//55 330//55 325//55 324//55
f 349//56 343//56 323//56 322//56
f 328//57 329//57 319//57 318//57
f 345//56 328//56 358//56 359//56
f 344//58 348//58 319//58 329//58
f 339//57 334//57 362//57 363//57
f 346//58 344//58 329//58 333//58
f 320//55 321//55 327//55 326//55
f 322//57 323//57 333//57 331//57
f 325//55 330//55 366//55 367//55
f 331//57 333//57 329//57 328//57
f 345//59 347//59 331//59 328//59
f 326//55 327//55 330//55 332//55
f 337//60 325//60 367//60 372//60
f 318//54 342//54 350//54 351//54
f 326//59 332//59 341//59 339//59
f 327//58 321//58 335//58 338//58
f 332//55 324//55 355//55 360//55
f 324//56 325//56 337//56 336//56
f 318//54 319//54 348//54 342//54
f 361//59 365//59 357//59 356//59
f 350//59 359//59 358//59 351//59
f 353//59 352//59 363//59 362//59
f 360//59 355//59 354//59 364//59
f 322//57 331//57 356//57 357//57
f 342//55 345//55 359//55 350//55
f 326//56 339//56 363//56 352//56
f 331//54 347//54 361//54 356//54
f 320//55 326//55 352//55 353//55
f 336//57 341//57 364//57 354//57
f 341//54 332//54 360//54 364//54
f 334//54 320//54 353//54 362//54
f 347//55 349//55 365//55 361//55
f 349//56 322//56 357//56 365//56
f 328//57 318//57 351//57 358//57
f 324//56 336//56 354//56 355//56
f 368//58 371//58 370//58 369//58
f 367//58 366//58 373//58 372//58
f 346//61 333//61 370//61 371//61
f 330//61 340//61 373//61 366//61
f 333//57 323//57 369//57 370//57
f 323//60 343//60 368//60 369//60
f 330//58 327//58 338//58 340//58
f 337//60 372//60 368//60 343//60
f 372//58 373//58 371//58 368//58
f 373//61 340//61 346//61 371//61
f 340//58 338//58 344//58 346//58
f 338//58 335//58 348//58 344//58
f 334//54 342//54 348//54 335//54
f 339//59 341//59 347//59 345//59
f 341//59 336//59 349//59 347//59
f 336//56 337//56 343//56 349//56
f 334//59 339//59 345//59 342//59
o Plane
v -82.701134 -1.060372 118.172653
v 39.298870 -1.060372 118.172653
v -82.701134 -1.060372 -123.827347
v 39.298870 -1.060372 -123.827347
vn -0.0000 1.0000 -0.0000
s 0
f 374//62 375//62 377//62 376//62
o Cube.007
v -7.701131 -1.060372 23.172657
v -7.701131 5.939628 23.172657
v -7.701131 -1.060372 -48.827343
v -7.701131 5.939628 -48.827343
v 4.298869 -1.060372 23.172657
v 4.298869 5.939628 23.172657
v 4.298869 -1.060372 -48.827343
v 4.298869 5.939628 -48.827343
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
s 0
f 378//63 380//63 381//63 379//63
f 380//64 384//64 385//64 381//64
f 384//65 382//65 383//65 385//65
f 382//66 378//66 379//66 383//66
f 380//67 378//67 382//67 384//67
f 385//68 383//68 379//68 381//68

View File

@ -1,11 +1,9 @@
# As a wise man once said: # Blender 3.4.1 MTL File: 'station.blend'
# Imagine what it would be like to suck a 12 inch cock. # www.blender.org
# Now imagine a cock two times as long.
newmtl Benches newmtl Benches
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
@ -13,23 +11,22 @@ d 1.000000
illum 2 illum 2
newmtl Clouds
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 1.000000 1.000000 1.000000
Ni 1.450000
d 1.000000
illum 2
newmtl Display newmtl Display
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
newmtl Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
Ke 0.200000 0.200000 0.200000 Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
@ -37,19 +34,19 @@ illum 2
newmtl Overhang newmtl Overhang
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl Platform newmtl Platform
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000 Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\green-wall.jpg
newmtl Material.002 newmtl Material.002
Ns 225.000000 Ns 225.000000
@ -21,7 +21,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\door1.jpg
newmtl Material.003 newmtl Material.003
Ns 225.000000 Ns 225.000000
@ -32,7 +32,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\grass.jpg
newmtl Material.004 newmtl Material.004
Ns 225.000000 Ns 225.000000
@ -43,7 +43,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\roof.jpg
newmtl Material.005 newmtl Material.005
Ns 225.000000 Ns 225.000000
@ -54,4 +54,4 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\fence.jpg

View File

@ -10,7 +10,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\door1.jpg
newmtl Material.002 newmtl Material.002
Ns 225.000000 Ns 225.000000
@ -21,7 +21,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\pink-tiles.jpg
newmtl Material.003 newmtl Material.003
Ns 225.000000 Ns 225.000000
@ -32,7 +32,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\green-tiles.jpg
newmtl Material.004 newmtl Material.004
Ns 225.000000 Ns 225.000000
@ -43,7 +43,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\door1.jpg
newmtl Material.005 newmtl Material.005
Ns 225.000000 Ns 225.000000
@ -54,7 +54,7 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\green-wall.jpg
newmtl Material.007 newmtl Material.007
Ns 225.000000 Ns 225.000000
@ -65,4 +65,4 @@ Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
map_Kd C:\\Users\\tnetb\\Desktop\\PogoBijoux\\green-wall.jpg

View File

@ -1,18 +1,7 @@
# Blender MTL File: 'car.blend' # Blender 3.4.1 MTL File: 'car.blend'
# Material Count: 3 # www.blender.org
newmtl Material newmtl back
Ns 359.999993
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
newmtl Material.001
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
@ -22,8 +11,7 @@ Ni 1.450000
d 1.000000 d 1.000000
illum 2 illum 2
newmtl front
newmtl Material.002
Ns 250.000000 Ns 250.000000
Ka 1.000000 1.000000 1.000000 Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000 Kd 0.800000 0.800000 0.800000
@ -31,4 +19,14 @@ Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000
Ni 1.450000 Ni 1.450000
d 1.000000 d 1.000000
illum 2
newmtl side
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,11 @@
# PogoBijoux CMake List
# By Kacper "kacperks" Kostka
cmake_minimum_required(VERSION 3.16 FATAL_ERROR) #Why cannot older versions be used? cmake_minimum_required(VERSION 3.16 FATAL_ERROR) #Why cannot older versions be used?
project(PogoBijoux) project(PogoBijoux)
add_executable(PogoBijoux "src/main.cpp" "src/Sound.c") add_executable(PogoBijoux "main.cpp" "Sound.c")
if(UNIX AND NOT APPLE) # GNU/Linux if(UNIX AND NOT APPLE) # GNU/Linux
target_link_libraries(PB -lopenal) target_link_libraries(PB -lopenal)

View File

@ -1,27 +1,38 @@
PogoBijoux Levels:  ____ ____ _ _
1: Sky & Clouds | _ \ ___ __ _ ___ | __ )(_)(_) ___ _ ___ __
2: Night Parking Lot | |_) / _ \ / _` |/ _ \| _ \| || |/ _ \| | | \ \/ /
| __/ (_) | (_| | (_) | |_) | || | (_) | |_| |> <
|_| \___/ \__, |\___/|____/|_|/ |\___/ \__,_/_/\_\
|___/ |__/
_ _
| | _____ _____| |___
| | / _ \ \ / / _ \ / __|
| |__| __/\ V / __/ \__ \
|_____\___| \_/ \___|_|___/
----------------------------
1: Clouds
2: Empty Parking Lot
3: City 3: City
4: Vinyl Flooring 4: Vinyl Flooring
5: Train Station 5: Train Station
6: Backyard 6: Backyard
7: Ingul 7: Ingul
8: Randomness (WIP) 8: Surreal
9: Winter Neighborhood @ Night 9: Winter Neighborhood @ Night
10: Star 10: Star
11: Office 11: Office
12: Night 12: Backlot @ Night
13: Dashcon 2014 13: Dashcon 2014
14: Poolroom 14: Poolroom
15: Pink 15: Pink
16: Laundry Room at 3am 16: Laundry Room at 3am
17: 17: Mysterious Staircase
18: Backrooms 18: Backrooms
19: Boardwalk 19: Boardwalk
20: Ukraine 20: Ukraine
21: Suburb 21: Suburb
22: Waiting Room 22: Waiting Room
23: Playground 23: Playground
24: Rainy Day 24: Rude Sign
25: 8800 Blue Lick Road 25: 8800 Blue Lick Road

View File

@ -1,17 +1,21 @@
audio/music/12.ogg is an unmodified copy of voc-night by semajD, licensed under Creative Commons Attribution Share-Alike 3.0 Unported, https://creativecommons.org/licenses/by-sa/3.0/legalcode By using this software you agree to its license agreement as well as the license
agreements of its components.
For in-depth audio copyright information see licenses/AUDIO.TXT For in-depth audio copyright information see licenses/AUDIO.TXT
All other files ending in ".jpg", ".png", ".xcf", ".obj", ".mtl", ".ogg", and ".txt" are Copyright 2020-2022 MCL and Looki2000, licensed under Creative Commons Attribution 4.0 International, https://creativecommons.org/licenses/by-sa/4.0/legalcode All other files ending in ".jpg", ".png", ".xcf", ".obj", ".mtl", ".ogg", and ".txt" are Copyright 2020-2023 MCL and Looki2000,
licensed under Creative Commons Attribution 4.0 International, located in licenses/CCBY40.TXT
Files ending in ".exe", ".cpp", ".c", and ".h" are Copyright 2020-2023 MCL, licensed
under the agreement in licenses/BJXSRC.TXT
Files ending in ".exe", ".cpp", ".c", and ".h" are Copyright 2020-2022 MCL, licensed under the agreement in licenses/BJXSRC.TXT This program makes use of the Irrlicht library, the license for which,
can be found in licenses/IRRLICHT.TXT
This program makes use of the Irrlicht library, the license for which, can be found in licenses/IRRLICHT.TXT
This program also makes use of libjpeg, licensed under the terms found in licenses/LIBJPEG.TXT This program also makes use of libjpeg, licensed under the terms found in licenses/LIBJPEG.TXT
The libsndfile library used in this software is distributed in accordance with the GNU Lesser General Public License Version 3, which can be found in licenses/LGPL.TXT, The libsndfile library used in this software is distributed in accordance with the
GNU Lesser General Public License Version 3, which can be found in licenses/LGPL.TXT,
the original source code was not modified and can be accessed at the following Web address: http://www.mega-nerd.com/libsndfile/ the original source code was not modified and can be accessed at the following Web address: http://www.mega-nerd.com/libsndfile/
An unmodified version of OpenAL-Soft 1.21.1 has been used in the making of this software, it An unmodified version of OpenAL-Soft 1.21.1 has been used in the making of this software, it

View File

@ -7,30 +7,30 @@
----------------------------- -----------------------------
PogoBijoux PogoBijoux
Version 1.0.0-dev Version 1.0.1
Released on March 3, 2023 Released on March 11, 2023
----------------------------- -----------------------------
PogoBijoux (pronounced POE-GOE BIH-JOKES) PogoBijoux (pronounced POE-GOE BIH-JOKES)
An experimental game/demo about liminal spaces, dream exploration, anemoia, An experimental game/demo about liminal spaces, dream exploration, anemoia,
kenopsia, and loneliness. I started working on it in mid-2020 and I finished it in 2023. kenopsia, and loneliness. I started working on it in mid-2020 and I finished it in 2023.
Special thanks to KacperKS for helping us with the train station model. Special thanks to KacperKS for helping make the train station model,
mouselook/freelook, and the CMakeLists.txt file for GNU/Linux builds.
>> THIS IS A DEVELOPMENT VERSION; GLITCHES MAY OCCUR <<
Some levels might be incomplete and level progression is not fully finished.
Sorry for the inconvenience.
Licensing information is in LICENSE.TXT Licensing information is in LICENSE.TXT
Please refer to either the official Web site and/or Itch page
to see where to find the source code.
|===========================| |===========================|
|Minimum system requirements| |Minimum system requirements|
|===========================| |===========================|
Operating system: Windows XP or higher / can be built for Linux. It might also work on Windows 98 with KernelEx, but I don't know for sure. Operating system: Windows XP or higher / can be built for GNU/Linux and possibly other OS's. It might also work on Windows 98 with KernelEx, but I don't know for sure.
Video card: 256MB VRAM; OpenGL 2.1+ Video card: 256MB VRAM; OpenGL 2.1+
RAM: 512MB RAM: 512MB should work fine; might be able to run with less than that.
CPU: Pentium 4 or higher CPU: Pentium 4 or higher
@ -56,6 +56,11 @@ Tilt down - ↓ (DOWN ARROW)
Tilt left - ← (LEFT ARROW) Tilt left - ← (LEFT ARROW)
Tilt right - → (RIGHT ARROW) Tilt right - → (RIGHT ARROW)
Freelook / Mouselook - Move mouse horizontally and vertically
Enter door - ENTER / Left mouse button
Quit game - ESC (ESCAPE KEY) Quit game - ESC (ESCAPE KEY)
______________________________________________________ ______________________________________________________
@ -68,6 +73,6 @@ Quit game - ESC (ESCAPE KEY)
______________________________________________________ ______________________________________________________
/_____/_____/_____/_____/_____/_____/_____/_____/_____/ /_____/_____/_____/_____/_____/_____/_____/_____/_____/
OFFICIAL ITCH PAGE----- https://migdyn.itch.io/pogobijoux OFFICIAL ITCH PAGE------- https://migdyn.itch.io/pogobijoux
OFFICAL WEB SITE------- https://mcl.sovnat.info/soft/bijoux/index.htm OFFICAL WEB SITE--------- https://mcl.sovnat.info/soft/bijoux/index.htm
MCL SOFTWARE WEB SITE-- https://mcl.sovnat.info/ MCL SOFTWARE WEB SITE---- https://mcl.sovnat.info/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

85
bijoux.nsi Normal file
View File

@ -0,0 +1,85 @@
# Bijoux NSIS Installer
Name "PogoBijoux 1.0.1"
OutFile "INSTBIJX.EXE"
InstallDir "$PROGRAMFILES\PogoBijoux"
Icon data/install.ico
InstallDirRegKey HKLM "Software\PogoBijoux" "INSTDIR"
RequestExecutionLevel admin
Page Directory
Page License
Page InstFiles
UninstPage UninstConfirm
UninstPage InstFiles
LicenseText "You must agree to the terms and conditions in order to install this software."
LicenseData "LICENSE.TXT"
VIProductVersion "1.0.1.0"
VIAddVersionKey "ProductName" "PogoBijoux"
VIAddVersionKey "Comments" "Version 1.0.1 | released on 3/11/2023"
VIAddVersionKey "CompanyName" "MCL Software"
VIAddVersionKey "LegalCopyright" "Copyright (c) MCL Software 2020-2023"
VIAddVersionKey "FileDescription" "Installer for PogoBijoux"
VIAddVersionKey "FileVersion" "1.0.1"
Section "Install PogoBijoux"
SetOutPath $INSTDIR
File PogoBijoux.exe
File LEVELS.TXT
File LICENSE.TXT
File README.TXT
File Irrlicht.dll
File libgcc_s_dw2-1.dll
File libwinpthread-1.dll
File libsndfile-1.dll
File libstdc++-6.dll
File OpenAL32.dll
File /r audio
File /r licenses
File /r img
File /r 3d
File /r data
CreateShortCut "$DESKTOP\PogoBijoux 1.0.1.lnk" "$INSTDIR\PogoBijoux.exe" "" "" 0
WriteRegStr HKLM Software\PogoBijoux "INSTDIR" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PogoBijoux" "DisplayName" "PogoBijoux"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PogoBijoux" "UninstallString" '"$INSTDIR\UNINST.EXE"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PogoBijoux" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PogoBijoux" "NoRepair" 1
WriteUninstaller "UNINST.EXE"
Exec '"$WINDIR\NOTEPAD.EXE" "$INSTDIR\README.TXT"'
MessageBox MB_OK|MB_ICONINFORMATION "PogoBijoux has been installed! There should be a shortcut on your desktop now."
MessageBox MB_OK|MB_ICONINFORMATION "Thank you for your interest in PogoBijoux and I really hope you enjoy the game."
Quit
SectionEnd
Section "Uninstall"
MessageBox MB_YESNO|MB_ICONSTOP "WARNING! This will delete everything inside $INSTDIR!!! Would you like to continue? YOUR DATA WILL BE DESTROYED!!!" IDNO UnInstAborted
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PogoBijoux"
DeleteRegKey HKLM Software\PogoBijoux
RMDir /r "$INSTDIR"
Delete "$DESKTOP\PogoBijoux 1.0.1.lnk"
Goto Over
UnInstAborted:
MessageBox MB_OK|MB_ICONINFORMATION "Uninstall has been aborted. Don't worry, all your files are safe and nothing has been deleted! :)"
Over:
MessageBox MB_OK|MB_ICONINFORMATION "I hope you have an amazing rest of your day!"
MessageBox MB_OK|MB_ICONINFORMATION "Bye!"
Quit
SectionEnd

52
data/CREDITS Normal file
View File

@ -0,0 +1,52 @@
Programming:
MCL
Textures:
MCL & Looki2000
3-D Models:
MCL & Looki2000
Beta testing:
Kacper K., Michal K., and Tuncay Y. Buyukadali
Font:
Noto Sans, licensed under the Open Font License.
Music:
Title: Looki2000 & MCL - MenuBijoux
01. Looki2000 & The Ziuk - PogoBijoux
02. Looki2000 - Spoon of Cinnamon
03. MCL - Try
04. MCL - Bijouex
05. Looki2000 - Idle
06. MCL - Nine Eleven
07. MCL - Ingul
08. MCL - Liminal
09. MCL - Winter Colors
10. MCL - Star
11. Looki2000 - Electric
12. MCL - Night
13. MCL - Unfulfilled Expectations
14. MCL - Life
15. MCL - FotoBijoux
16. MCL - Space Above
17. MCL - TemeBijoux
18. MCL - Hyperspeed
19. Looki2000 & MCL - Relaxing Bijoux
20. MCL - Berries
21. MCL - Weasel
22. MCL - Waiting
23. MCL - Alouette
24. MCL - Still Waiting
25. Looki2000 - End
Credits: Looki2000 - AfterBijoux
Special thanks to
KacperKS for helping with the models and GNU/Linux ports.
Thank you for playing PogoBijoux!
Don't forget to rate the game on Itch!
PRESS 'ESCAPE' TO EXIT

BIN
data/install.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
font.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 KiB

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 494 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@ -29,4 +29,4 @@ title.ogg - MenuBijoux, Looki2000 & MCL
23.ogg - Alouette, MCL 23.ogg - Alouette, MCL
24.ogg - Still Waiting, MCL 24.ogg - Still Waiting, MCL
25.ogg - End, Looki2000 25.ogg - End, Looki2000
credits.ogg - There's Hope, Looki2000 & MCL credits.ogg - AfterBijoux, Looki2000 & MCL

View File

@ -1,73 +0,0 @@
/*
Base.h
-------------------------------
Copyright (c) 2020-2023 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef BASE_H
#define BASE_H
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
#include "EventReceiver.h"
class PogoBijoux
{
public:
EventReceiver er;
bool enableBump = true;
bool enableShadows = true;
bool showWaterOverlay = false;
bool showLoadingOverlay = false;
bool showNextLevelOverlay = false;
int speed = 400;
int screenWidth = 1024;
int screenHeight = 768;
irr::scene::ISceneNode* rootNode;
irr::IrrlichtDevice* device;
float verticalCamRot = 50;
irr::scene::ISceneNode* player;
irr::scene::ICameraSceneNode* camera;
irr::video::IVideoDriver* driver;
irr::scene::ISceneManager* scnmgr;
irr::gui::IGUIEnvironment* guiEnv;
irr::gui::IGUISkin* guiSkin;
// define mouseSensivity
float mouseSensitivity = 0.5f;
bool isPlayerCollidingWithAABB(irr::core::aabbox3d<irr::f32> aabb)
{
irr::core::aabbox3d<irr::f32> playerAABB = player -> getTransformedBoundingBox();
return playerAABB.intersectsWithBox(aabb);
}
void drawIngameHUD()
{
if(showWaterOverlay)
{
driver -> draw2DRectangle(irr::video::SColor(119, 5, 107, 200), irr::core::rect<irr::s32>(0, 0, screenWidth, screenHeight));
}
if(showLoadingOverlay)
{
guiEnv -> addImage(driver -> getTexture("img/gui/loading.png"), irr::core::position2d<irr::s32>(screenWidth / 2 - 600 / 2, screenHeight / 2 - 200 / 2));
}
if(showNextLevelOverlay)
{
driver -> draw2DRectangle(irr::video::SColor(255, 255, 255, 255), irr::core::rect<irr::s32>(0, screenHeight / 2 + 600 / 2, screenWidth, screenHeight));
guiEnv -> addStaticText(L"Would like to go through the door (and go to the next level)? (ENTER = YES)", irr::core::rect<irr::s32>(0, screenHeight / 2 + 600 / 2, screenWidth, screenHeight));
}
}
};
#endif

View File

@ -1,91 +0,0 @@
/*
Credits.h
-------------------------------
Copyright (c) 2022-2023 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CREDITS_H
#define CREDITS_H
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
#include <vector>
#include <fstream>
#include "Base.h"
PogoBijoux pb;
std::vector<irr::gui::IGUIStaticText*> credits;
extern "C"
{
#include "Sound.h"
}
irr::u32 then;
void showCredits()
{
irr::video::ITexture* bgimg = pb.driver -> getTexture("img/sky/night.jpg");
irr::video::ITexture* bijouxLogo = pb.driver -> getTexture("img/gui/bijoux.png");
irr::video::ITexture* info = pb.driver -> getTexture("img/gui/info.png");
irr::gui::IGUIFont* font = pb.guiEnv -> getFont("img/gui/font.png");
pb.guiSkin -> setFont(font);
pb.guiSkin -> setColor(irr::gui::EGDC_BUTTON_TEXT, irr::video::SColor(255, 255, 255, 255));
ALuint music = loadSound("audio/music/credits.ogg");
playSound(0, 0, music);
float verticalOffset = 0;
then = pb.device -> getTimer() -> getTime();
// Load credits into vector
std::string creditsLineText;
std::ifstream creditsFile("CREDITS.txt");
if(creditsFile.is_open())
{
getline(creditsFile, creditsLineText);
}
const wchar_t* creditsLineText1 = std::wstring(creditsLineText.begin(), creditsLineText.end()).c_str();
irr::gui::IGUIStaticText* creditsLine = pb.guiEnv -> addStaticText(creditsLineText1, irr::core::rect<irr::s32>(pb.screenWidth / 2 - 312 / 2, pb.screenHeight / 2 + (800 + verticalOffset) / 2, pb.screenWidth, pb.screenHeight));
credits.push_back(creditsLine);
while(pb.device -> run() && !pb.er.isKeyDown(irr::KEY_ESCAPE))
{
// Compute frame delta time and then use it to animate the elements.
const irr::u32 now = pb.device -> getTimer() -> getTime();
const irr::f32 frameDeltaTime = (irr::f32)(now - then) / 32.0F;
then = now;
verticalOffset -= 2 * frameDeltaTime;
pb.driver -> beginScene(true, true, irr::video::SColor(255, 113, 113, 133));
pb.driver -> draw2DImage(bgimg, irr::core::rect<irr::s32>(0, 0, pb.screenWidth, pb.screenHeight), irr::core::rect<irr::s32>(0, 0, pb.screenWidth, pb.screenHeight));
pb.guiEnv -> addImage(bijouxLogo, irr::core::position2d<irr::s32>(pb.screenWidth / 2 - 458 / 2, pb.screenHeight / 2 + (400 + verticalOffset) / 2));
pb.guiEnv -> addImage(info, irr::core::position2d<irr::s32>(pb.screenWidth / 2 - 128 / 2, pb.screenHeight / 2 + (600 + verticalOffset) / 2));
//credits -> setAlignment(irr::gui::EGUIA_UPPERLEFT, irr::gui::EGUIA_UPPERLEFT, irr::gui::EGUIA_LOWERRIGHT, irr::gui::EGUIA_LOWERRIGHT);
pb.guiEnv -> drawAll();
pb.guiEnv -> clear();
pb.driver -> endScene();
}
pb.guiEnv -> clear();
}
#endif

View File

@ -1,74 +0,0 @@
#ifndef EVENT_RECEIVER_H
#define EVENT_RECEIVER_H
class EventReceiver : public irr::IEventReceiver
{
public:
virtual bool OnEvent(const irr::SEvent& event)
{
if(event.EventType == irr::EET_KEY_INPUT_EVENT)
{
keyIsDown[event.KeyInput.Key] = event.KeyInput.PressedDown;
}
else if(event.EventType == irr::EET_MOUSE_INPUT_EVENT)
{
if(event.MouseInput.Event == irr::EMIE_LMOUSE_PRESSED_DOWN)
{
mouseIsDown = true;
}
else if(event.MouseInput.Event == irr::EMIE_LMOUSE_LEFT_UP)
{
mouseIsDown = false;
}
}/*
else if (event.EventType == irr::EET_MOUSE_INPUT_EVENT)
{
switch(event.MouseInput.Event)
{
case irr::EMIE_LMOUSE_PRESSED_DOWN:
MouseState.LeftButtonDown = true;
break;
case irr::EMIE_LMOUSE_LEFT_UP:
MouseState.LeftButtonDown = false;
break;
case irr::EMIE_MOUSE_MOVED:
MouseState.Position.X = event.MouseInput.X;
MouseState.Position.Y = event.MouseInput.Y;
break;
default:
// We won't use the wheel
break;
}
}*/
return false;
}
virtual bool isKeyDown(irr::EKEY_CODE keyCode) const
{
return keyIsDown[keyCode];
}
virtual bool isMouseDown()
{
return mouseIsDown;
}
EventReceiver()
{
for(irr::u32 i = 0; i < irr::KEY_KEY_CODES_COUNT; i++)
{
keyIsDown[i] = false;
}
}
private:
bool mouseIsDown;
bool keyIsDown[irr::KEY_KEY_CODES_COUNT];
};
#endif

View File

@ -1,367 +0,0 @@
/*
LevelSwitcher.h
------------------------------------
Copyright (c) 2020-2023 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "Levels.h"
class LevelSwitcher
{
public:
int currentLevel;
void nextLevel(bool calledFromConsensualLevel)
{
currentLevel++;
pb.player -> removeAnimators();
pb.scnmgr -> addToDeletionQueue(pb.rootNode);
currentLevel = loadLevel(currentLevel);
pb.showLoadingOverlay = false;
pb.showNextLevelOverlay = false;
}
void proceedWithLevelSwitch()
{
if(flag)
{
flag = false;
nextLevel(true);
}
}
void playerCanProgress(bool calledFromConsensualLevel)
{
if(calledFromConsensualLevel)
{
pb.showNextLevelOverlay = true;
}
if((calledFromConsensualLevel && pb.er.isKeyDown(irr::KEY_RETURN)) || !calledFromConsensualLevel)
{
pb.showLoadingOverlay = true;
flag = true;
}
}
void checkIfPlayerShouldGoToNextLevel()
{
if(currentLevel == 1)
{
if(pb.player -> getAbsolutePosition().Y < -400)
{
playerCanProgress(false);
}
}
else if(currentLevel == 2)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(21481, 5, 20900), irr::core::vector3df(21481, 400, 21000));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 3)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-7566, -250, -3042), irr::core::vector3df(-7530, 0, -2960));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 4)
{
if(pb.player -> getAbsolutePosition().Z < -232)
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 5)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(167, -90, 774), irr::core::vector3df(187, 90, 794));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 6)
{
if(pb.player -> getAbsolutePosition().X < -310)
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 7)
{
if(pb.player -> getAbsolutePosition().Z > 270)
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 8)
{
playerCanProgress(false);
}
else if(currentLevel == 9)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(1587, 0, 27510), irr::core::vector3df(1768, 400, 27625));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 10)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(431, 0, 500), irr::core::vector3df(431, 400, 660));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 11)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-287, 0, -108), irr::core::vector3df(-287, 400, 10));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 12)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-1114, 0, -64346), irr::core::vector3df(-1075, 100, -64300));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 13)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-9652, 0, -6533), irr::core::vector3df(-9600, 800, -6433));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 14)
{
if(pb.player -> getAbsolutePosition().Y < -400)
{
playerCanProgress(false);
}
}
else if(currentLevel == 15)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-778, 0, -20), irr::core::vector3df(-817, 400, 215));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(false);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 16)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-210, 0, -420), irr::core::vector3df(-205, 400, -415));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 17)
{
if(pb.player -> getAbsolutePosition().Z < 0)
{
playerCanProgress(false);
}
}
else if(currentLevel == 18)
{
if(pb.player -> getAbsolutePosition().Y < -1899)
{
playerCanProgress(false);
}
}
else if(currentLevel == 19)
{
if(pb.player -> getAbsolutePosition().X > 2000)
{
playerCanProgress(false);
}
}
else if(currentLevel == 20)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(2609, -100, 2823), irr::core::vector3df(2700, 400, 2900));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 21)
{
if(pb.player -> getAbsolutePosition().X > 3200)
{
playerCanProgress(false);
}
}
else if(currentLevel == 22)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-390, 80, -200), irr::core::vector3df(-390, 130, -166));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 23)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(688, -80, 476), irr::core::vector3df(1416, 130, 1322));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 24)
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-249, -120, -118), irr::core::vector3df(233, 290, 69));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(true);
}
else
{
pb.showNextLevelOverlay = false;
}
}
else if(currentLevel == 25)
{
if(pb.player -> getAbsolutePosition().Z > 1780)
{
pb.player -> removeAnimators();
pb.scnmgr -> addToDeletionQueue(pb.rootNode);
showCredits();
pb.device -> closeDevice();
}
}
else
{
irr::core::aabbox3d<irr::f32> aabb = irr::core::aabbox3d<irr::f32>(irr::core::vector3df(432, 0, -300), irr::core::vector3df(500, 300, 466));
if(pb.isPlayerCollidingWithAABB(aabb))
{
playerCanProgress(false);
}
}
}
private:
bool flag = false;
};

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +0,0 @@
#include "Base.h"
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
class RayCastHandler
{
public:
bool isPlayerLookingAtAABB(irr::core::aabbox3d<irr::f32> aabb)
{
irr::core::line3d<irr::f32> ray;
ray.start = pb.player -> getPosition();
ray.end = ray.start + (pb.camera -> getTarget() - ray.start).normalize() * 1000.0F;
return true;
}
};

View File

@ -1,74 +0,0 @@
/*
Skybox.h
-------------------------------
Copyright (c) 2022 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef SKYBOX_H
#define CREDITS_H
#include "Base.h"
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
class SkyboxManager
{
public:
enum Skybox
{
CLOUDS,
NIGHT,
WOODS,
CITY,
FOG,
SUNSET
};
void setSkybox(Skybox skybox)
{
if(skybox == CLOUDS)
{
pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/clouds_top.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"));
return;
}
if(skybox == NIGHT)
{
pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"));
return;
}
if(skybox == CITY)
{
pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/city/city1-5.jpg"), pb.driver -> getTexture("img/sky/city/city1-4.jpg"), pb.driver -> getTexture("img/sky/city/city1-1.jpg"), pb.driver -> getTexture("img/sky/city/city1-3.jpg"), pb.driver -> getTexture("img/sky/city/city1-0.jpg"), pb.driver -> getTexture("img/sky/city/city1-2.jpg"));
return;
}
if(skybox == FOG)
{
pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/fog/fog.jpg"), pb.driver -> getTexture("img/sky/fog/fog.jpg"), pb.driver -> getTexture("img/sky/fog/fog_bottom.jpg"), pb.driver -> getTexture("img/sky/fog/fog_top.jpg"), pb.driver -> getTexture("img/sky/fog/fog_right.jpg"), pb.driver -> getTexture("img/sky/fog/fog_left.jpg"));
return;
}
if(skybox == SUNSET)
{
pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/sunset/sunset_top.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset_sun.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"));
return;
}
}
};
#endif

View File

@ -1,184 +0,0 @@
/*
Sound.c
AudioBijoux - A very simple OpenAL-based audio engine
Created by MCL
-------------------------------
Copyright (c) 2021-2022 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <AL/al.h>
#include <AL/alc.h>
#include <stdlib.h>
#include <sndfile.h>
#include "Sound.h"
ALCdevice *device;
ALuint source;
ALuint musicSource;
ALuint buffer;
ALCcontext *context;
void checkForErrors()
{
ALCenum error = alGetError();
if(error == AL_NO_ERROR)
printf("\nAudioBijoux: OK\n");
else
printf("\n-------------------------------\nAudioBijoux: An error occurred!\nERROR CODE IS AS FOLLOWS: %X, \nplease report to MCL Software.\n\n", error);
}
void initAudioEngine()
{
printf("\n---------------------------------\nAudioBijoux has been initialized!\n---------------------------------\n");
// Open device
device = alcOpenDevice(0);
if(!device)
printf("\nAudioBijoux: Failed to open device.\n");
else
{
// Create context
context = alcCreateContext(device, 0);
if(!alcMakeContextCurrent(context))
{
// TODO: Add more specific error messages using alGetError()
printf("\nAudioBijoux: Failed to make the context current.\n");
checkForErrors();
}
else
{
// TODO: Define some other listener properties (i.e. position, orientation, etc.)
// Create the sound effect source
alGenSources((ALuint)1, &source);
checkForErrors();
alSourcef(source, AL_PITCH, 1);
checkForErrors();
alSourcef(source, AL_GAIN, 1);
checkForErrors();
alSource3f(source, AL_POSITION, 0, 0, 0);
checkForErrors();
alSource3f(source, AL_VELOCITY, 0, 0, 0);
checkForErrors();
// Create the music source
alGenSources((ALuint)1, &musicSource);
checkForErrors();
alSourcef(musicSource, AL_PITCH, 1);
checkForErrors();
alSourcef(musicSource, AL_GAIN, 1);
checkForErrors();
alSource3f(musicSource, AL_POSITION, 0, 0, 0);
checkForErrors();
alSource3f(musicSource, AL_VELOCITY, 0, 0, 0);
checkForErrors();
}
}
}
int stopAudioEngine()
{
ALenum sourceState;
alGetSourcei(source, AL_SOURCE_STATE, &sourceState);
/*while(sourceState == AL_PLAYING)
{
alGetSourcei(source, AL_SOURCE_STATE, &sourceState);
}*/
alDeleteSources(1, &source);
alDeleteSources(1, &musicSource);
alDeleteBuffers(1, &buffer);
device = alcGetContextsDevice(context);
alcMakeContextCurrent(0);
alcDestroyContext(context);
alcCloseDevice(device);
}
ALuint playSound(int sourceToUse, int loop, ALuint buffer)
{
if(sourceToUse)
{
alSourceStop(source); // Stop the sound that's currently playing
alSourcei(source, AL_LOOPING, loop); // Make the sound looped / not looped
alSourcei(source, AL_BUFFER, buffer); // Add buffer to source
alSourcePlay(source); // Play the sound
}
else
{
alSourceStop(musicSource); // Stop the music that's currently playing.
alSourcei(musicSource, AL_LOOPING, loop); // Make the sound looped / not looped
alSourcei(musicSource, AL_BUFFER, buffer); // Add buffer to source
alSourcePlay(musicSource); // Play the music
}
}
ALuint loadSound(const char path[])
{
ALenum format;
SNDFILE *sndFile;
SF_INFO sfInfo;
short *memoryBuffer;
sf_count_t numFrames;
ALsizei numBytes;
// Try to open and decode the passed file path
sndFile = sf_open(path, SFM_READ, &sfInfo);
if(!sndFile)
printf("\nAudioBijoux: Couldn't open file %s\n", path);
else
printf("\nAudioBijoux: OK: File loaded successfully!");
if(sfInfo.channels == 1)
{
printf("\nAudioBijoux: OK: File has 1 channel.\n");
format = AL_FORMAT_MONO16; // One channel, 16-bits
}
else if(sfInfo.channels == 2)
{
printf("\nAudioBijoux: OK: File has 2 channels.\n");
format = AL_FORMAT_STEREO16;
}
else
{
printf("\nAudioBijoux: ERROR: Unknown # of channels.\n");
}
memoryBuffer = malloc((size_t)(sfInfo.frames * sfInfo.channels) * sizeof(short));
numFrames = sf_readf_short(sndFile, memoryBuffer, sfInfo.frames);
numBytes = (ALsizei)(numFrames * sfInfo.channels) * (ALsizei)sizeof(short);
buffer = 0;
alGenBuffers((ALuint)1, &buffer);
alBufferData(buffer, format, memoryBuffer, numBytes, sfInfo.samplerate);
checkForErrors();
free(memoryBuffer);
sf_close(sndFile);
return buffer;
}

View File

@ -1,18 +0,0 @@
/*
Sound.h
AudioBijoux - A very simple OpenAL-based audio engine
Created by MCL
-------------------------------
Copyright (c) 2021 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <AL/al.h>
void initAudioEngine();
int stopAudioEngine();
ALuint playSound(int sourceToUse, int loop, ALuint buffer);
ALuint loadSound(const char filename[]);

View File

@ -1,37 +0,0 @@
/*
SoundHandler.h
-------------------------------
Copyright (c) 2021 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <AL/al.h>
extern "C"
{
#include "Sound.h"
};
class SoundHandler
{
public:
void playMusic(const char filename[], bool loop)
{
music = loadSound(filename);
playSound(0, loop, music);
}
void playSoundEffect(const char filename[], bool loop)
{
music = loadSound(filename);
playSound(1, loop, music);
}
private:
ALuint music;
ALuint soundEffect;
};

View File

@ -1,150 +0,0 @@
/*
TitleMenu.h - PogoBijoux title menu
-------------------------------
Copyright (c) 2021-2023 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef TITLEMENU_H
#define TITLEMENU_H
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
#include "Base.h"
#include "Credits.h"
extern "C"
{
#include "Sound.h"
}
int currentlySelected = 0;
irr::u32 oldTime;
void switchSelectedItem(bool item, bool delay)
{
// Delay to prevent issues when a key is being held down for too long
if(delay)
{
const irr::u32 currentTime = pb.device -> getTimer() -> getTime();
const irr::u32 interval = (irr::f32)(currentTime - oldTime);
oldTime = currentTime;
if(interval < 150)
{
return;
}
}
currentlySelected = item ? 1 : 0;
}
bool showTitleScreen()
{
pb.guiSkin = pb.guiEnv -> getSkin();
pb.guiEnv -> setSkin(pb.guiSkin);
irr::video::ITexture* bgimg = pb.driver -> getTexture("img/gui/bgimg.jpg");
irr::video::ITexture* bijouxLogo = pb.driver -> getTexture("img/gui/bijoux.png");
irr::video::ITexture* startButton = pb.driver -> getTexture("img/gui/start.jpg");
irr::video::ITexture* startButtonHighlighted = pb.driver -> getTexture("img/gui/starthlt.jpg");
irr::video::ITexture* creditsButton = pb.driver -> getTexture("img/gui/credits.jpg");
irr::video::ITexture* creditsButtonHighlighted = pb.driver -> getTexture("img/gui/creditshlt.jpg");
irr::video::ITexture* info = pb.driver -> getTexture("img/gui/info.png");
irr::gui::IGUIFont* font = pb.guiEnv -> getFont("img/gui/font.png");
pb.guiSkin -> setFont(font);
int buttonX = pb.screenWidth / 2 - 600 / 2;
int startButtonY = pb.screenHeight / 2 - 360 / 2;
int creditsButtonY = pb.screenHeight / 2 + 100 / 2;
ALuint music = loadSound("audio/music/title.ogg");
playSound(0, 1, music);
while(pb.device -> run() && !pb.er.isKeyDown(irr::KEY_RETURN))
{
if(pb.er.isKeyDown(irr::KEY_ESCAPE))
{
pb.driver -> endScene();
return false;
}
if(pb.er.isKeyDown(irr::KEY_UP) || pb.er.isKeyDown(irr::KEY_DOWN) || pb.er.isKeyDown(irr::KEY_TAB))
{
switchSelectedItem(currentlySelected != 0 ? false : true, true);
}
int cursorX = pb.device -> getCursorControl() -> getPosition().X;
int cursorY = pb.device -> getCursorControl() -> getPosition().Y;
if(cursorX >= buttonX && cursorY >= startButtonY && cursorX <= buttonX + 600 && cursorY <= startButtonY + 200)
{
switchSelectedItem(false, false);
}
else if(cursorX >= buttonX && cursorY >= creditsButtonY && cursorX <= buttonX + 600 && cursorY <= creditsButtonY + 200)
{
switchSelectedItem(true, false);
}
if(pb.er.isMouseDown())
{
if(!(cursorX >= buttonX && cursorY >= creditsButtonY && cursorX <= buttonX + 600 && cursorY <= creditsButtonY + 200) && !(cursorX >= buttonX && cursorY >= startButtonY && cursorX <= buttonX + 600 && cursorY <= startButtonY + 200))
{
currentlySelected = -1;
}
else
{
pb.guiEnv -> clear();
pb.driver -> endScene();
}
if(currentlySelected == 1)
{
showCredits();
//return;
}
if(currentlySelected == 0)
{
return true;
}
}
pb.driver -> beginScene(true, true, irr::video::SColor(255, 113, 113, 133));
pb.driver -> draw2DImage(bgimg, irr::core::rect<irr::s32>(0, 0, pb.screenWidth, pb.screenHeight), irr::core::rect<irr::s32>(0, 0, pb.screenWidth, pb.screenHeight));
font -> draw(L"Copyright (c) 2020-2023 MCL Software.", irr::core::rect<irr::s32>(0, 0, pb.screenWidth, pb.screenHeight), irr::video::SColor(255, 0, 0, 0));
pb.guiEnv -> addImage(bijouxLogo, irr::core::position2d<irr::s32>(pb.screenWidth / 2 - 458 / 2, pb.screenHeight / 2 - 620 / 2));
pb.guiEnv -> addImage(currentlySelected == 0 ? startButtonHighlighted : startButton, irr::core::position2d<irr::s32>(buttonX, startButtonY));
pb.guiEnv -> addImage(currentlySelected == 1 ? creditsButtonHighlighted : creditsButton, irr::core::position2d<irr::s32>(buttonX, creditsButtonY));
pb.guiEnv -> addImage(info, irr::core::position2d<irr::s32>(pb.screenWidth / 2 - 128 / 2, pb.screenHeight / 2 + 540 / 2));
pb.guiEnv -> drawAll();
pb.guiEnv -> clear();
pb.driver -> endScene();
}
pb.guiEnv -> clear();
return true;
}
#endif

View File

@ -1,255 +0,0 @@
/*
main.cpp
-------------------------------
Copyright (c) 2020-2023 MCL Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#include "TitleMenu.h"
#include "LevelSwitcher.h"
#include "Base.h"
#include "RayCastHandler.h"
LevelSwitcher levelSwitcher;
RayCastHandler rayCastHandler;
int main(int argc, char *argv[])
{
irr::u32 then;
if(argc == 3 && std::string(argv[1]) == "--level" && atoi(argv[2]) >= 1 && atoi(argv[2]) <= 25)
{
levelSwitcher.currentLevel = atoi(argv[2]);
}
else if(argc > 1)
{
printf("\nUsage: --level <LEVEL NUMBER, 1...25>\n=====================================\n");
}
else
{
//scanf("%i", &levelSwitcher.currentLevel);
levelSwitcher.currentLevel = 1;
}
float leftRightVel;
float angularVel;
float rotVel;
pb.device = createDevice(irr::video::EDT_OPENGL, irr::core::dimension2d<irr::u32>(pb.screenWidth, pb.screenHeight), 16, false, true, false, &pb.er);
pb.driver = pb.device -> getVideoDriver();
pb.scnmgr = pb.device -> getSceneManager();
pb.guiEnv = pb.device -> getGUIEnvironment();
irr::core::stringw motd[23] = {"PogoBijoux | ", "fuck you to home chris", "Xtreem!", "Most of y'all parents are dumb", "# Stand with MCL", "Think of all the children this will save!", "the ocelots and wolves will have there revenge", "it's not a mistake * it's a masterpiece *", "heroine i thot he was removed from the game", "queen of eggland dies :(", "i am 8 years old", "The latest and greatest", "L'beg to differ!", "The more you play with me, the happier L will be!", "Your shit's all retarded", "100 years of computer disease", "Keep projecting", "stfu stupid camper kid", "gr8 b8 m8 i r8 8/8", "Be sure to check out /r/LiminalSpace!", "Everything is the coolest here!", "L + ratio + rip bozo + go touch some grass", "Rate us on Itch.io!!!"};
// Frame title //
srand((unsigned int)time(0));
motd[0] += motd[1 + rand() % 22];
const wchar_t* currentMotd = motd[0].c_str();
pb.device -> setWindowCaption(currentMotd);
// Initialize audio engine //
initAudioEngine();
////////////
// Player //
////////////
pb.scnmgr -> setAmbientLight(irr::video::SColorf(.3F, .3F, .36F, 1.0F));
pb.player = pb.scnmgr -> addCubeSceneNode(90);
pb.camera = pb.scnmgr -> addCameraSceneNode(pb.player, irr::core::vector3df(0, 0, 0), pb.player -> getAbsolutePosition(), true);
pb.camera -> setPosition(irr::core::vector3df(-20, 30, 0));
pb.camera -> setFarValue(100000.0F);
// Main menu //
if(!showTitleScreen())
{
return 0;
}
// Set shadow color //
pb.scnmgr -> setShadowColor(irr::video::SColor(150, 0, 0, 0));
// Store textures in 32-bits; this is needed for parallax mapping //
pb.driver -> setTextureCreationFlag(irr::video::ETCF_ALWAYS_32_BIT, true);
loadLevel(levelSwitcher.currentLevel);
//device -> getCursorControl() -> setVisible(false); // Hide the cursor, commented out, as the game currently does not use the mouse for controls (yet).
while(pb.device -> run())
{
pb.driver -> beginScene(true, true, irr::video::SColor(255, 113, 113, 133));
// Get frame delta //
const irr::u32 now = pb.device -> getTimer() -> getTime();
const irr::f32 frameDeltaTime = (irr::f32)(now - then) / 1000.0F;
then = now;
if(pb.er.isKeyDown(irr::KEY_ESCAPE))
{
pb.device -> closeDevice();
}
if(pb.er.isKeyDown(irr::KEY_KEY_W))
{
angularVel = -pb.speed * frameDeltaTime;
}
else if(pb.er.isKeyDown(irr::KEY_KEY_S))
{
angularVel = pb.speed * frameDeltaTime;
}
else
{
angularVel = 0;
}
if(pb.er.isKeyDown(irr::KEY_KEY_A))
{
leftRightVel = -90;
}
else if(pb.er.isKeyDown(irr::KEY_KEY_D))
{
leftRightVel = 90;
}
else
{
leftRightVel = 0;
}
if(pb.er.isKeyDown(irr::KEY_F2))
{
// Display position and rotation //
printf("\nCoordinates: %f, %f, %f\nRotation: %f\n\n", pb.player -> getAbsolutePosition().X, pb.player -> getAbsolutePosition().Y, pb.player -> getAbsolutePosition().Z, pb.player -> getRotation().Y);
}
if(pb.er.isKeyDown(irr::KEY_F1))
{
// Get camera target //
printf("\nCamTarget: %i\n", rayCastHandler.isPlayerLookingAtAABB(irr::core::aabbox3d<irr::f32>(irr::core::vector3df(-210, 0, -420), irr::core::vector3df(-205, 400, -415))));
}
/////////////////////
// Camera rotation //
/////////////////////
// Up / Down //
if(pb.er.isKeyDown(irr::KEY_UP) && pb.verticalCamRot < 100)
{
if(pb.verticalCamRot < -10)
pb.verticalCamRot -= (6 * pb.verticalCamRot / 10) * frameDeltaTime;
else
pb.verticalCamRot += 56 * frameDeltaTime;
}
else if(pb.er.isKeyDown(irr::KEY_DOWN) && pb.verticalCamRot > -120)
{
if(pb.verticalCamRot < -10)
pb.verticalCamRot += (6 * pb.verticalCamRot / 10) * frameDeltaTime;
else
pb.verticalCamRot -= 56 * frameDeltaTime;
}
// Left / Right //
if(pb.er.isKeyDown(irr::KEY_LEFT))
rotVel = -300 * frameDeltaTime;
else if(pb.er.isKeyDown(irr::KEY_RIGHT))
rotVel = 300 * frameDeltaTime;
else
rotVel = 0;
pb.device->getCursorControl()->setVisible(false);
irr::core::position2d<irr::s32> mousePos = pb.device -> getCursorControl() -> getPosition();
pb.device -> getCursorControl() -> setPosition(pb.screenWidth / 2, pb.screenHeight / 2);
irr::core::position2d<irr::s32> mouseMovement = pb.device -> getCursorControl() -> getPosition() - mousePos;
rotVel = mouseMovement.X * pb.mouseSensitivity;
rotVel *= -1;
pb.verticalCamRot += mouseMovement.Y * pb.mouseSensitivity/2;
irr::core::vector3df playerRot = pb.player -> getRotation();
irr::core::vector3df playerPos = pb.player -> getPosition();
pb.camera -> setTarget(irr::core::vector3df(playerPos.X - cos(irr::core::degToRad(playerRot.Y + leftRightVel)) * angularVel, playerPos.Y + pb.verticalCamRot, playerPos.Z + sin(irr::core::degToRad(playerRot.Y + leftRightVel)) * angularVel));
pb.player -> setRotation(irr::core::vector3df(-playerRot.X, playerRot.Y + rotVel, playerRot.Z));
pb.player -> setPosition(irr::core::vector3df(playerPos.X - cos(irr::core::degToRad(playerRot.Y + leftRightVel)) * angularVel, playerPos.Y, playerPos.Z + sin(irr::core::degToRad(playerRot.Y + leftRightVel)) * angularVel));
pb.player -> updateAbsolutePosition();
// Water on Level 7 //
if(levelSwitcher.currentLevel == 7)
{
if(pb.player -> getAbsolutePosition().Y < -80)
{
waterSurface -> setRotation(irr::core::vector3df(0, 0, 180));
pb.showWaterOverlay = true;
}
else
{
waterSurface -> setRotation(irr::core::vector3df(0, 0, 0));
pb.showWaterOverlay = false;
}
}
// Fix for level 19 //
if(levelSwitcher.currentLevel == 19 && pb.player -> getAbsolutePosition().Y < 0)
{
pb.player -> setPosition(irr::core::vector3df(1000, 140, 1500));
}
levelSwitcher.checkIfPlayerShouldGoToNextLevel();
pb.scnmgr -> drawAll();
pb.drawIngameHUD();
pb.guiEnv -> drawAll();
pb.driver -> endScene();
pb.guiEnv -> clear();
levelSwitcher.proceedWithLevelSwitch();
}
stopAudioEngine();
pb.device -> drop();
return 0;
}

View File

@ -1,857 +0,0 @@
/*
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
** sndfile.h -- system-wide definitions
**
** API documentation is in the doc/ directory of the source code tarball
** and at http://www.mega-nerd.com/libsndfile/api.html.
*/
#ifndef SNDFILE_H
#define SNDFILE_H
/* This is the version 1.0.X header file. */
#define SNDFILE_1
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* The following file types can be read and written.
** A file type would consist of a major type (ie SF_FORMAT_WAV) bitwise
** ORed with a minor type (ie SF_FORMAT_PCM). SF_FORMAT_TYPEMASK and
** SF_FORMAT_SUBMASK can be used to separate the major and minor file
** types.
*/
enum
{ /* Major formats. */
SF_FORMAT_WAV = 0x010000, /* Microsoft WAV format (little endian default). */
SF_FORMAT_AIFF = 0x020000, /* Apple/SGI AIFF format (big endian). */
SF_FORMAT_AU = 0x030000, /* Sun/NeXT AU format (big endian). */
SF_FORMAT_RAW = 0x040000, /* RAW PCM data. */
SF_FORMAT_PAF = 0x050000, /* Ensoniq PARIS file format. */
SF_FORMAT_SVX = 0x060000, /* Amiga IFF / SVX8 / SV16 format. */
SF_FORMAT_NIST = 0x070000, /* Sphere NIST format. */
SF_FORMAT_VOC = 0x080000, /* VOC files. */
SF_FORMAT_IRCAM = 0x0A0000, /* Berkeley/IRCAM/CARL */
SF_FORMAT_W64 = 0x0B0000, /* Sonic Foundry's 64 bit RIFF/WAV */
SF_FORMAT_MAT4 = 0x0C0000, /* Matlab (tm) V4.2 / GNU Octave 2.0 */
SF_FORMAT_MAT5 = 0x0D0000, /* Matlab (tm) V5.0 / GNU Octave 2.1 */
SF_FORMAT_PVF = 0x0E0000, /* Portable Voice Format */
SF_FORMAT_XI = 0x0F0000, /* Fasttracker 2 Extended Instrument */
SF_FORMAT_HTK = 0x100000, /* HMM Tool Kit format */
SF_FORMAT_SDS = 0x110000, /* Midi Sample Dump Standard */
SF_FORMAT_AVR = 0x120000, /* Audio Visual Research */
SF_FORMAT_WAVEX = 0x130000, /* MS WAVE with WAVEFORMATEX */
SF_FORMAT_SD2 = 0x160000, /* Sound Designer 2 */
SF_FORMAT_FLAC = 0x170000, /* FLAC lossless file format */
SF_FORMAT_CAF = 0x180000, /* Core Audio File format */
SF_FORMAT_WVE = 0x190000, /* Psion WVE format */
SF_FORMAT_OGG = 0x200000, /* Xiph OGG container */
SF_FORMAT_MPC2K = 0x210000, /* Akai MPC 2000 sampler */
SF_FORMAT_RF64 = 0x220000, /* RF64 WAV file */
/* Subtypes from here on. */
SF_FORMAT_PCM_S8 = 0x0001, /* Signed 8 bit data */
SF_FORMAT_PCM_16 = 0x0002, /* Signed 16 bit data */
SF_FORMAT_PCM_24 = 0x0003, /* Signed 24 bit data */
SF_FORMAT_PCM_32 = 0x0004, /* Signed 32 bit data */
SF_FORMAT_PCM_U8 = 0x0005, /* Unsigned 8 bit data (WAV and RAW only) */
SF_FORMAT_FLOAT = 0x0006, /* 32 bit float data */
SF_FORMAT_DOUBLE = 0x0007, /* 64 bit float data */
SF_FORMAT_ULAW = 0x0010, /* U-Law encoded. */
SF_FORMAT_ALAW = 0x0011, /* A-Law encoded. */
SF_FORMAT_IMA_ADPCM = 0x0012, /* IMA ADPCM. */
SF_FORMAT_MS_ADPCM = 0x0013, /* Microsoft ADPCM. */
SF_FORMAT_GSM610 = 0x0020, /* GSM 6.10 encoding. */
SF_FORMAT_VOX_ADPCM = 0x0021, /* OKI / Dialogix ADPCM */
SF_FORMAT_G721_32 = 0x0030, /* 32kbs G721 ADPCM encoding. */
SF_FORMAT_G723_24 = 0x0031, /* 24kbs G723 ADPCM encoding. */
SF_FORMAT_G723_40 = 0x0032, /* 40kbs G723 ADPCM encoding. */
SF_FORMAT_DWVW_12 = 0x0040, /* 12 bit Delta Width Variable Word encoding. */
SF_FORMAT_DWVW_16 = 0x0041, /* 16 bit Delta Width Variable Word encoding. */
SF_FORMAT_DWVW_24 = 0x0042, /* 24 bit Delta Width Variable Word encoding. */
SF_FORMAT_DWVW_N = 0x0043, /* N bit Delta Width Variable Word encoding. */
SF_FORMAT_DPCM_8 = 0x0050, /* 8 bit differential PCM (XI only) */
SF_FORMAT_DPCM_16 = 0x0051, /* 16 bit differential PCM (XI only) */
SF_FORMAT_VORBIS = 0x0060, /* Xiph Vorbis encoding. */
SF_FORMAT_ALAC_16 = 0x0070, /* Apple Lossless Audio Codec (16 bit). */
SF_FORMAT_ALAC_20 = 0x0071, /* Apple Lossless Audio Codec (20 bit). */
SF_FORMAT_ALAC_24 = 0x0072, /* Apple Lossless Audio Codec (24 bit). */
SF_FORMAT_ALAC_32 = 0x0073, /* Apple Lossless Audio Codec (32 bit). */
/* Endian-ness options. */
SF_ENDIAN_FILE = 0x00000000, /* Default file endian-ness. */
SF_ENDIAN_LITTLE = 0x10000000, /* Force little endian-ness. */
SF_ENDIAN_BIG = 0x20000000, /* Force big endian-ness. */
SF_ENDIAN_CPU = 0x30000000, /* Force CPU endian-ness. */
SF_FORMAT_SUBMASK = 0x0000FFFF,
SF_FORMAT_TYPEMASK = 0x0FFF0000,
SF_FORMAT_ENDMASK = 0x30000000
} ;
/*
** The following are the valid command numbers for the sf_command()
** interface. The use of these commands is documented in the file
** command.html in the doc directory of the source code distribution.
*/
enum
{ SFC_GET_LIB_VERSION = 0x1000,
SFC_GET_LOG_INFO = 0x1001,
SFC_GET_CURRENT_SF_INFO = 0x1002,
SFC_GET_NORM_DOUBLE = 0x1010,
SFC_GET_NORM_FLOAT = 0x1011,
SFC_SET_NORM_DOUBLE = 0x1012,
SFC_SET_NORM_FLOAT = 0x1013,
SFC_SET_SCALE_FLOAT_INT_READ = 0x1014,
SFC_SET_SCALE_INT_FLOAT_WRITE = 0x1015,
SFC_GET_SIMPLE_FORMAT_COUNT = 0x1020,
SFC_GET_SIMPLE_FORMAT = 0x1021,
SFC_GET_FORMAT_INFO = 0x1028,
SFC_GET_FORMAT_MAJOR_COUNT = 0x1030,
SFC_GET_FORMAT_MAJOR = 0x1031,
SFC_GET_FORMAT_SUBTYPE_COUNT = 0x1032,
SFC_GET_FORMAT_SUBTYPE = 0x1033,
SFC_CALC_SIGNAL_MAX = 0x1040,
SFC_CALC_NORM_SIGNAL_MAX = 0x1041,
SFC_CALC_MAX_ALL_CHANNELS = 0x1042,
SFC_CALC_NORM_MAX_ALL_CHANNELS = 0x1043,
SFC_GET_SIGNAL_MAX = 0x1044,
SFC_GET_MAX_ALL_CHANNELS = 0x1045,
SFC_SET_ADD_PEAK_CHUNK = 0x1050,
SFC_SET_ADD_HEADER_PAD_CHUNK = 0x1051,
SFC_UPDATE_HEADER_NOW = 0x1060,
SFC_SET_UPDATE_HEADER_AUTO = 0x1061,
SFC_FILE_TRUNCATE = 0x1080,
SFC_SET_RAW_START_OFFSET = 0x1090,
SFC_SET_DITHER_ON_WRITE = 0x10A0,
SFC_SET_DITHER_ON_READ = 0x10A1,
SFC_GET_DITHER_INFO_COUNT = 0x10A2,
SFC_GET_DITHER_INFO = 0x10A3,
SFC_GET_EMBED_FILE_INFO = 0x10B0,
SFC_SET_CLIPPING = 0x10C0,
SFC_GET_CLIPPING = 0x10C1,
SFC_GET_CUE_COUNT = 0x10CD,
SFC_GET_CUE = 0x10CE,
SFC_SET_CUE = 0x10CF,
SFC_GET_INSTRUMENT = 0x10D0,
SFC_SET_INSTRUMENT = 0x10D1,
SFC_GET_LOOP_INFO = 0x10E0,
SFC_GET_BROADCAST_INFO = 0x10F0,
SFC_SET_BROADCAST_INFO = 0x10F1,
SFC_GET_CHANNEL_MAP_INFO = 0x1100,
SFC_SET_CHANNEL_MAP_INFO = 0x1101,
SFC_RAW_DATA_NEEDS_ENDSWAP = 0x1110,
/* Support for Wavex Ambisonics Format */
SFC_WAVEX_SET_AMBISONIC = 0x1200,
SFC_WAVEX_GET_AMBISONIC = 0x1201,
/*
** RF64 files can be set so that on-close, writable files that have less
** than 4GB of data in them are converted to RIFF/WAV, as per EBU
** recommendations.
*/
SFC_RF64_AUTO_DOWNGRADE = 0x1210,
SFC_SET_VBR_ENCODING_QUALITY = 0x1300,
SFC_SET_COMPRESSION_LEVEL = 0x1301,
/* Cart Chunk support */
SFC_SET_CART_INFO = 0x1400,
SFC_GET_CART_INFO = 0x1401,
/* Following commands for testing only. */
SFC_TEST_IEEE_FLOAT_REPLACE = 0x6001,
/*
** SFC_SET_ADD_* values are deprecated and will disappear at some
** time in the future. They are guaranteed to be here up to and
** including version 1.0.8 to avoid breakage of existing software.
** They currently do nothing and will continue to do nothing.
*/
SFC_SET_ADD_DITHER_ON_WRITE = 0x1070,
SFC_SET_ADD_DITHER_ON_READ = 0x1071
} ;
/*
** String types that can be set and read from files. Not all file types
** support this and even the file types which support one, may not support
** all string types.
*/
enum
{ SF_STR_TITLE = 0x01,
SF_STR_COPYRIGHT = 0x02,
SF_STR_SOFTWARE = 0x03,
SF_STR_ARTIST = 0x04,
SF_STR_COMMENT = 0x05,
SF_STR_DATE = 0x06,
SF_STR_ALBUM = 0x07,
SF_STR_LICENSE = 0x08,
SF_STR_TRACKNUMBER = 0x09,
SF_STR_GENRE = 0x10
} ;
/*
** Use the following as the start and end index when doing metadata
** transcoding.
*/
#define SF_STR_FIRST SF_STR_TITLE
#define SF_STR_LAST SF_STR_GENRE
enum
{ /* True and false */
SF_FALSE = 0,
SF_TRUE = 1,
/* Modes for opening files. */
SFM_READ = 0x10,
SFM_WRITE = 0x20,
SFM_RDWR = 0x30,
SF_AMBISONIC_NONE = 0x40,
SF_AMBISONIC_B_FORMAT = 0x41
} ;
/* Public error values. These are guaranteed to remain unchanged for the duration
** of the library major version number.
** There are also a large number of private error numbers which are internal to
** the library which can change at any time.
*/
enum
{ SF_ERR_NO_ERROR = 0,
SF_ERR_UNRECOGNISED_FORMAT = 1,
SF_ERR_SYSTEM = 2,
SF_ERR_MALFORMED_FILE = 3,
SF_ERR_UNSUPPORTED_ENCODING = 4
} ;
/* Channel map values (used with SFC_SET/GET_CHANNEL_MAP).
*/
enum
{ SF_CHANNEL_MAP_INVALID = 0,
SF_CHANNEL_MAP_MONO = 1,
SF_CHANNEL_MAP_LEFT, /* Apple calls this 'Left' */
SF_CHANNEL_MAP_RIGHT, /* Apple calls this 'Right' */
SF_CHANNEL_MAP_CENTER, /* Apple calls this 'Center' */
SF_CHANNEL_MAP_FRONT_LEFT,
SF_CHANNEL_MAP_FRONT_RIGHT,
SF_CHANNEL_MAP_FRONT_CENTER,
SF_CHANNEL_MAP_REAR_CENTER, /* Apple calls this 'Center Surround', Msft calls this 'Back Center' */
SF_CHANNEL_MAP_REAR_LEFT, /* Apple calls this 'Left Surround', Msft calls this 'Back Left' */
SF_CHANNEL_MAP_REAR_RIGHT, /* Apple calls this 'Right Surround', Msft calls this 'Back Right' */
SF_CHANNEL_MAP_LFE, /* Apple calls this 'LFEScreen', Msft calls this 'Low Frequency' */
SF_CHANNEL_MAP_FRONT_LEFT_OF_CENTER, /* Apple calls this 'Left Center' */
SF_CHANNEL_MAP_FRONT_RIGHT_OF_CENTER, /* Apple calls this 'Right Center */
SF_CHANNEL_MAP_SIDE_LEFT, /* Apple calls this 'Left Surround Direct' */
SF_CHANNEL_MAP_SIDE_RIGHT, /* Apple calls this 'Right Surround Direct' */
SF_CHANNEL_MAP_TOP_CENTER, /* Apple calls this 'Top Center Surround' */
SF_CHANNEL_MAP_TOP_FRONT_LEFT, /* Apple calls this 'Vertical Height Left' */
SF_CHANNEL_MAP_TOP_FRONT_RIGHT, /* Apple calls this 'Vertical Height Right' */
SF_CHANNEL_MAP_TOP_FRONT_CENTER, /* Apple calls this 'Vertical Height Center' */
SF_CHANNEL_MAP_TOP_REAR_LEFT, /* Apple and MS call this 'Top Back Left' */
SF_CHANNEL_MAP_TOP_REAR_RIGHT, /* Apple and MS call this 'Top Back Right' */
SF_CHANNEL_MAP_TOP_REAR_CENTER, /* Apple and MS call this 'Top Back Center' */
SF_CHANNEL_MAP_AMBISONIC_B_W,
SF_CHANNEL_MAP_AMBISONIC_B_X,
SF_CHANNEL_MAP_AMBISONIC_B_Y,
SF_CHANNEL_MAP_AMBISONIC_B_Z,
SF_CHANNEL_MAP_MAX
} ;
/* A SNDFILE* pointer can be passed around much like stdio.h's FILE* pointer. */
typedef struct SNDFILE_tag SNDFILE ;
/* The following typedef is system specific and is defined when libsndfile is
** compiled. sf_count_t will be a 64 bit value when the underlying OS allows
** 64 bit file offsets.
** On windows, we need to allow the same header file to be compiler by both GCC
** and the Microsoft compiler.
*/
#if (defined (_MSCVER) || defined (_MSC_VER) && (_MSC_VER < 1310))
typedef __int64 sf_count_t ;
#define SF_COUNT_MAX 0x7fffffffffffffffi64
#else
typedef __int64 sf_count_t ;
#define SF_COUNT_MAX 0x7FFFFFFFFFFFFFFFLL
#endif
/* A pointer to a SF_INFO structure is passed to sf_open () and filled in.
** On write, the SF_INFO structure is filled in by the user and passed into
** sf_open ().
*/
struct SF_INFO
{ sf_count_t frames ; /* Used to be called samples. Changed to avoid confusion. */
int samplerate ;
int channels ;
int format ;
int sections ;
int seekable ;
} ;
typedef struct SF_INFO SF_INFO ;
/* The SF_FORMAT_INFO struct is used to retrieve information about the sound
** file formats libsndfile supports using the sf_command () interface.
**
** Using this interface will allow applications to support new file formats
** and encoding types when libsndfile is upgraded, without requiring
** re-compilation of the application.
**
** Please consult the libsndfile documentation (particularly the information
** on the sf_command () interface) for examples of its use.
*/
typedef struct
{ int format ;
const char *name ;
const char *extension ;
} SF_FORMAT_INFO ;
/*
** Enums and typedefs for adding dither on read and write.
** See the html documentation for sf_command(), SFC_SET_DITHER_ON_WRITE
** and SFC_SET_DITHER_ON_READ.
*/
enum
{ SFD_DEFAULT_LEVEL = 0,
SFD_CUSTOM_LEVEL = 0x40000000,
SFD_NO_DITHER = 500,
SFD_WHITE = 501,
SFD_TRIANGULAR_PDF = 502
} ;
typedef struct
{ int type ;
double level ;
const char *name ;
} SF_DITHER_INFO ;
/* Struct used to retrieve information about a file embedded within a
** larger file. See SFC_GET_EMBED_FILE_INFO.
*/
typedef struct
{ sf_count_t offset ;
sf_count_t length ;
} SF_EMBED_FILE_INFO ;
/*
** Struct used to retrieve cue marker information from a file
*/
typedef struct
{ int32_t indx ;
uint32_t position ;
int32_t fcc_chunk ;
int32_t chunk_start ;
int32_t block_start ;
uint32_t sample_offset ;
char name [256] ;
} SF_CUE_POINT ;
#define SF_CUES_VAR(count) \
struct \
{ uint32_t cue_count ; \
SF_CUE_POINT cue_points [count] ; \
}
typedef SF_CUES_VAR (100) SF_CUES ;
/*
** Structs used to retrieve music sample information from a file.
*/
enum
{ /*
** The loop mode field in SF_INSTRUMENT will be one of the following.
*/
SF_LOOP_NONE = 800,
SF_LOOP_FORWARD,
SF_LOOP_BACKWARD,
SF_LOOP_ALTERNATING
} ;
typedef struct
{ int gain ;
char basenote, detune ;
char velocity_lo, velocity_hi ;
char key_lo, key_hi ;
int loop_count ;
struct
{ int mode ;
uint32_t start ;
uint32_t end ;
uint32_t count ;
} loops [16] ; /* make variable in a sensible way */
} SF_INSTRUMENT ;
/* Struct used to retrieve loop information from a file.*/
typedef struct
{
short time_sig_num ; /* any positive integer > 0 */
short time_sig_den ; /* any positive power of 2 > 0 */
int loop_mode ; /* see SF_LOOP enum */
int num_beats ; /* this is NOT the amount of quarter notes !!!*/
/* a full bar of 4/4 is 4 beats */
/* a full bar of 7/8 is 7 beats */
float bpm ; /* suggestion, as it can be calculated using other fields:*/
/* file's length, file's sampleRate and our time_sig_den*/
/* -> bpms are always the amount of _quarter notes_ per minute */
int root_key ; /* MIDI note, or -1 for None */
int future [6] ;
} SF_LOOP_INFO ;
/* Struct used to retrieve broadcast (EBU) information from a file.
** Strongly (!) based on EBU "bext" chunk format used in Broadcast WAVE.
*/
#define SF_BROADCAST_INFO_VAR(coding_hist_size) \
struct \
{ char description [256] ; \
char originator [32] ; \
char originator_reference [32] ; \
char origination_date [10] ; \
char origination_time [8] ; \
uint32_t time_reference_low ; \
uint32_t time_reference_high ; \
short version ; \
char umid [64] ; \
char reserved [190] ; \
uint32_t coding_history_size ; \
char coding_history [coding_hist_size] ; \
}
/* SF_BROADCAST_INFO is the above struct with coding_history field of 256 bytes. */
typedef SF_BROADCAST_INFO_VAR (256) SF_BROADCAST_INFO ;
struct SF_CART_TIMER
{ char usage [4] ;
int32_t value ;
} ;
typedef struct SF_CART_TIMER SF_CART_TIMER ;
#define SF_CART_INFO_VAR(p_tag_text_size) \
struct \
{ char version [4] ; \
char title [64] ; \
char artist [64] ; \
char cut_id [64] ; \
char client_id [64] ; \
char category [64] ; \
char classification [64] ; \
char out_cue [64] ; \
char start_date [10] ; \
char start_time [8] ; \
char end_date [10] ; \
char end_time [8] ; \
char producer_app_id [64] ; \
char producer_app_version [64] ; \
char user_def [64] ; \
int32_t level_reference ; \
SF_CART_TIMER post_timers [8] ; \
char reserved [276] ; \
char url [1024] ; \
uint32_t tag_text_size ; \
char tag_text [p_tag_text_size] ; \
}
typedef SF_CART_INFO_VAR (256) SF_CART_INFO ;
/* Virtual I/O functionality. */
typedef sf_count_t (*sf_vio_get_filelen) (void *user_data) ;
typedef sf_count_t (*sf_vio_seek) (sf_count_t offset, int whence, void *user_data) ;
typedef sf_count_t (*sf_vio_read) (void *ptr, sf_count_t count, void *user_data) ;
typedef sf_count_t (*sf_vio_write) (const void *ptr, sf_count_t count, void *user_data) ;
typedef sf_count_t (*sf_vio_tell) (void *user_data) ;
struct SF_VIRTUAL_IO
{ sf_vio_get_filelen get_filelen ;
sf_vio_seek seek ;
sf_vio_read read ;
sf_vio_write write ;
sf_vio_tell tell ;
} ;
typedef struct SF_VIRTUAL_IO SF_VIRTUAL_IO ;
/* Open the specified file for read, write or both. On error, this will
** return a NULL pointer. To find the error number, pass a NULL SNDFILE
** to sf_strerror ().
** All calls to sf_open() should be matched with a call to sf_close().
*/
SNDFILE* sf_open (const char *path, int mode, SF_INFO *sfinfo) ;
/* Use the existing file descriptor to create a SNDFILE object. If close_desc
** is TRUE, the file descriptor will be closed when sf_close() is called. If
** it is FALSE, the descriptor will not be closed.
** When passed a descriptor like this, the library will assume that the start
** of file header is at the current file offset. This allows sound files within
** larger container files to be read and/or written.
** On error, this will return a NULL pointer. To find the error number, pass a
** NULL SNDFILE to sf_strerror ().
** All calls to sf_open_fd() should be matched with a call to sf_close().
*/
SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
SNDFILE* sf_open_virtual (SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data) ;
/* sf_error () returns a error number which can be translated to a text
** string using sf_error_number().
*/
int sf_error (SNDFILE *sndfile) ;
/* sf_strerror () returns to the caller a pointer to the current error message for
** the given SNDFILE.
*/
const char* sf_strerror (SNDFILE *sndfile) ;
/* sf_error_number () allows the retrieval of the error string for each internal
** error number.
**
*/
const char* sf_error_number (int errnum) ;
/* The following two error functions are deprecated but they will remain in the
** library for the foreseeable future. The function sf_strerror() should be used
** in their place.
*/
int sf_perror (SNDFILE *sndfile) ;
int sf_error_str (SNDFILE *sndfile, char* str, size_t len) ;
/* Return TRUE if fields of the SF_INFO struct are a valid combination of values. */
int sf_command (SNDFILE *sndfile, int command, void *data, int datasize) ;
/* Return TRUE if fields of the SF_INFO struct are a valid combination of values. */
int sf_format_check (const SF_INFO *info) ;
/* Seek within the waveform data chunk of the SNDFILE. sf_seek () uses
** the same values for whence (SEEK_SET, SEEK_CUR and SEEK_END) as
** stdio.h function fseek ().
** An offset of zero with whence set to SEEK_SET will position the
** read / write pointer to the first data sample.
** On success sf_seek returns the current position in (multi-channel)
** samples from the start of the file.
** Please see the libsndfile documentation for moving the read pointer
** separately from the write pointer on files open in mode SFM_RDWR.
** On error all of these functions return -1.
*/
enum
{ SF_SEEK_SET = SEEK_SET,
SF_SEEK_CUR = SEEK_CUR,
SF_SEEK_END = SEEK_END
} ;
sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence) ;
/* Functions for retrieving and setting string data within sound files.
** Not all file types support this features; AIFF and WAV do. For both
** functions, the str_type parameter must be one of the SF_STR_* values
** defined above.
** On error, sf_set_string() returns non-zero while sf_get_string()
** returns NULL.
*/
int sf_set_string (SNDFILE *sndfile, int str_type, const char* str) ;
const char* sf_get_string (SNDFILE *sndfile, int str_type) ;
/* Return the library version string. */
const char * sf_version_string (void) ;
/* Return the current byterate at this point in the file. The byte rate in this
** case is the number of bytes per second of audio data. For instance, for a
** stereo, 18 bit PCM encoded file with an 16kHz sample rate, the byte rate
** would be 2 (stereo) * 2 (two bytes per sample) * 16000 => 64000 bytes/sec.
** For some file formats the returned value will be accurate and exact, for some
** it will be a close approximation, for some it will be the average bitrate for
** the whole file and for some it will be a time varying value that was accurate
** when the file was most recently read or written.
** To get the bitrate, multiple this value by 8.
** Returns -1 for unknown.
*/
int sf_current_byterate (SNDFILE *sndfile) ;
/* Functions for reading/writing the waveform data of a sound file.
*/
sf_count_t sf_read_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes) ;
sf_count_t sf_write_raw (SNDFILE *sndfile, const void *ptr, sf_count_t bytes) ;
/* Functions for reading and writing the data chunk in terms of frames.
** The number of items actually read/written = frames * number of channels.
** sf_xxxx_raw read/writes the raw data bytes from/to the file
** sf_xxxx_short passes data in the native short format
** sf_xxxx_int passes data in the native int format
** sf_xxxx_float passes data in the native float format
** sf_xxxx_double passes data in the native double format
** All of these read/write function return number of frames read/written.
*/
sf_count_t sf_readf_short (SNDFILE *sndfile, short *ptr, sf_count_t frames) ;
sf_count_t sf_writef_short (SNDFILE *sndfile, const short *ptr, sf_count_t frames) ;
sf_count_t sf_readf_int (SNDFILE *sndfile, int *ptr, sf_count_t frames) ;
sf_count_t sf_writef_int (SNDFILE *sndfile, const int *ptr, sf_count_t frames) ;
sf_count_t sf_readf_float (SNDFILE *sndfile, float *ptr, sf_count_t frames) ;
sf_count_t sf_writef_float (SNDFILE *sndfile, const float *ptr, sf_count_t frames) ;
sf_count_t sf_readf_double (SNDFILE *sndfile, double *ptr, sf_count_t frames) ;
sf_count_t sf_writef_double (SNDFILE *sndfile, const double *ptr, sf_count_t frames) ;
/* Functions for reading and writing the data chunk in terms of items.
** Otherwise similar to above.
** All of these read/write function return number of items read/written.
*/
sf_count_t sf_read_short (SNDFILE *sndfile, short *ptr, sf_count_t items) ;
sf_count_t sf_write_short (SNDFILE *sndfile, const short *ptr, sf_count_t items) ;
sf_count_t sf_read_int (SNDFILE *sndfile, int *ptr, sf_count_t items) ;
sf_count_t sf_write_int (SNDFILE *sndfile, const int *ptr, sf_count_t items) ;
sf_count_t sf_read_float (SNDFILE *sndfile, float *ptr, sf_count_t items) ;
sf_count_t sf_write_float (SNDFILE *sndfile, const float *ptr, sf_count_t items) ;
sf_count_t sf_read_double (SNDFILE *sndfile, double *ptr, sf_count_t items) ;
sf_count_t sf_write_double (SNDFILE *sndfile, const double *ptr, sf_count_t items) ;
/* Close the SNDFILE and clean up all memory allocations associated with this
** file.
** Returns 0 on success, or an error number.
*/
int sf_close (SNDFILE *sndfile) ;
/* If the file is opened SFM_WRITE or SFM_RDWR, call fsync() on the file
** to force the writing of data to disk. If the file is opened SFM_READ
** no action is taken.
*/
void sf_write_sync (SNDFILE *sndfile) ;
/* The function sf_wchar_open() is Windows Only!
** Open a file passing in a Windows Unicode filename. Otherwise, this is
** the same as sf_open().
**
** In order for this to work, you need to do the following:
**
** #include <windows.h>
** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
** #including <sndfile.h>
*/
#if (defined (ENABLE_SNDFILE_WINDOWS_PROTOTYPES) && ENABLE_SNDFILE_WINDOWS_PROTOTYPES)
SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ;
#endif
/* Getting and setting of chunks from within a sound file.
**
** These functions allow the getting and setting of chunks within a sound file
** (for those formats which allow it).
**
** These functions fail safely. Specifically, they will not allow you to overwrite
** existing chunks or add extra versions of format specific reserved chunks but
** should allow you to retrieve any and all chunks (may not be implemented for
** all chunks or all file formats).
*/
struct SF_CHUNK_INFO
{ char id [64] ; /* The chunk identifier. */
unsigned id_size ; /* The size of the chunk identifier. */
unsigned datalen ; /* The size of that data. */
void *data ; /* Pointer to the data. */
} ;
typedef struct SF_CHUNK_INFO SF_CHUNK_INFO ;
/* Set the specified chunk info (must be done before any audio data is written
** to the file). This will fail for format specific reserved chunks.
** The chunk_info->data pointer must be valid until the file is closed.
** Returns SF_ERR_NO_ERROR on success or non-zero on failure.
*/
int sf_set_chunk (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ;
/*
** An opaque structure to an iterator over the all chunks of a given id
*/
typedef struct SF_CHUNK_ITERATOR SF_CHUNK_ITERATOR ;
/* Get an iterator for all chunks matching chunk_info.
** The iterator will point to the first chunk matching chunk_info.
** Chunks are matching, if (chunk_info->id) matches the first
** (chunk_info->id_size) bytes of a chunk found in the SNDFILE* handle.
** If chunk_info is NULL, an iterator to all chunks in the SNDFILE* handle
** is returned.
** The values of chunk_info->datalen and chunk_info->data are ignored.
** If no matching chunks are found in the sndfile, NULL is returned.
** The returned iterator will stay valid until one of the following occurs:
** a) The sndfile is closed.
** b) A new chunk is added using sf_set_chunk().
** c) Another chunk iterator function is called on the same SNDFILE* handle
** that causes the iterator to be modified.
** The memory for the iterator belongs to the SNDFILE* handle and is freed when
** sf_close() is called.
*/
SF_CHUNK_ITERATOR *
sf_get_chunk_iterator (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ;
/* Iterate through chunks by incrementing the iterator.
** Increments the iterator and returns a handle to the new one.
** After this call, iterator will no longer be valid, and you must use the
** newly returned handle from now on.
** The returned handle can be used to access the next chunk matching
** the criteria as defined in sf_get_chunk_iterator().
** If iterator points to the last chunk, this will free all resources
** associated with iterator and return NULL.
** The returned iterator will stay valid until sf_get_chunk_iterator_next
** is called again, the sndfile is closed or a new chunk us added.
*/
SF_CHUNK_ITERATOR *
sf_next_chunk_iterator (SF_CHUNK_ITERATOR * iterator) ;
/* Get the size of the specified chunk.
** If the specified chunk exists, the size will be returned in the
** datalen field of the SF_CHUNK_INFO struct.
** Additionally, the id of the chunk will be copied to the id
** field of the SF_CHUNK_INFO struct and it's id_size field will
** be updated accordingly.
** If the chunk doesn't exist chunk_info->datalen will be zero, and the
** id and id_size fields will be undefined.
** The function will return SF_ERR_NO_ERROR on success or non-zero on
** failure.
*/
int
sf_get_chunk_size (const SF_CHUNK_ITERATOR * it, SF_CHUNK_INFO * chunk_info) ;
/* Get the specified chunk data.
** If the specified chunk exists, up to chunk_info->datalen bytes of
** the chunk data will be copied into the chunk_info->data buffer
** (allocated by the caller) and the chunk_info->datalen field
** updated to reflect the size of the data. The id and id_size
** field will be updated according to the retrieved chunk
** If the chunk doesn't exist chunk_info->datalen will be zero, and the
** id and id_size fields will be undefined.
** The function will return SF_ERR_NO_ERROR on success or non-zero on
** failure.
*/
int
sf_get_chunk_data (const SF_CHUNK_ITERATOR * it, SF_CHUNK_INFO * chunk_info) ;
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif /* SNDFILE_H */