Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed4a0178da |
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
precision mediump float;
|
||||||
|
|
||||||
|
uniform sampler2D Texture;
|
||||||
|
uniform vec2 samplesOffset[4];
|
||||||
|
|
||||||
|
varying vec2 texCoord;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
vec3 color = vec3(0, 0, 0);
|
||||||
|
for (int i = 0; i < 4; ++i)
|
||||||
|
{
|
||||||
|
color += texture2D(Texture, texCoord + samplesOffset[i]).rgb;
|
||||||
|
}
|
||||||
|
color /= 4;
|
||||||
|
|
||||||
|
gl_FragColor = vec4(texture2D(Texture, texCoord ), 1.0);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
attribute vec3 vPosition;
|
||||||
|
attribute vec2 vTexCoord;
|
||||||
|
varying vec2 texCoord;
|
||||||
|
|
||||||
|
uniform mat4 ProjectionMatrix;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||||
|
texCoord = vTexCoord;
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 962 B |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 759 B |
|
After Width: | Height: | Size: 1022 B |
|
After Width: | Height: | Size: 564 B |
@@ -0,0 +1,15 @@
|
|||||||
|
precision mediump float;
|
||||||
|
uniform sampler2D Texture;
|
||||||
|
uniform float Transparency;
|
||||||
|
uniform vec4 BrickColor;
|
||||||
|
varying vec2 texCoord;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
vec4 color = BrickColor * texture2D(Texture,texCoord).rgba;
|
||||||
|
|
||||||
|
gl_FragColor = vec4(color.rgb, color.a * Transparency);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
attribute vec3 vPosition;
|
||||||
|
attribute vec2 vTexCoord;
|
||||||
|
varying vec2 texCoord;
|
||||||
|
|
||||||
|
uniform mat4 ProjectionMatrix;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
//480x320
|
||||||
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||||
|
texCoord = vTexCoord;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
precision mediump float;
|
||||||
|
varying vec4 color;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_FragColor = color;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
attribute vec3 vPosition;
|
||||||
|
attribute vec4 vColor;
|
||||||
|
varying vec4 color;
|
||||||
|
|
||||||
|
uniform mat4 ProjectionMatrix;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||||
|
color = vColor;
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 102 B |
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 167 KiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 175 KiB |
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 197 KiB |
@@ -1,249 +0,0 @@
|
|||||||
{
|
|
||||||
"transform version": "V1",
|
|
||||||
|
|
||||||
"models": [
|
|
||||||
{
|
|
||||||
"type": "EmojiModel",
|
|
||||||
"name": "Smile"
|
|
||||||
}],
|
|
||||||
|
|
||||||
"renderParams": [
|
|
||||||
{
|
|
||||||
"vertexShader": "./assets/shaders/vertex/orthoVertexShader.txt",
|
|
||||||
"fragmentShader": "./assets/shaders/fragment/orthoFragmentShader.txt",
|
|
||||||
"alphaTest": "true",
|
|
||||||
"blend": "true",
|
|
||||||
"TAG": "smile & tongue 0"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
"initialModules": [0, 1, 2, 3, 4],
|
|
||||||
|
|
||||||
"modules": [
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 3@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 3@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 24@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 24@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 13@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 13@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 23@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 23@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 19@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 19@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 20@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 20@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 17@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 17@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 18@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 18@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 15@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 15@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 16@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 16@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 21@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 21@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 4@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 4@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 22@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 22@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 14@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 14@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 11@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 11@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 25@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 25@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 26@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 26@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 27@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 27@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 28@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 28@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 5@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 5@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 6@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 6@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 7@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 7@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 8@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 8@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 9@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 9@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iconPath": "./assets/fx/emoji/Asset 10@20x.png",
|
|
||||||
"suits": [
|
|
||||||
{
|
|
||||||
"renderParamsID": 0,
|
|
||||||
"emojiTexture": "./assets/fx/emoji/Asset 10@20x.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1,33 @@
|
|||||||
|
0, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
255, 0, 0, 255
|
||||||
|
255, 40, 40, 255
|
||||||
|
255, 128, 128, 255
|
||||||
|
Colormap
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
222222222222
|
||||||
|
222222222222
|
||||||
|
222222222222
|
||||||
|
333333333333
|
||||||
|
333333333333
|
||||||
|
333333333333
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
0, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
255, 0, 190, 255
|
||||||
|
255, 0, 255, 255
|
||||||
|
Colormap
|
||||||
|
002222222200
|
||||||
|
002222222200
|
||||||
|
000222222000
|
||||||
|
000022220000
|
||||||
|
111002200111
|
||||||
|
111100001111
|
||||||
|
011110011110
|
||||||
|
001111111100
|
||||||
|
000111111000
|
||||||
|
000011110000
|
||||||
|
000001100000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
002111111200
|
||||||
|
002211112200
|
||||||
|
000221122000
|
||||||
|
000022220000
|
||||||
|
111002200111
|
||||||
|
221100001122
|
||||||
|
022110011220
|
||||||
|
002211112200
|
||||||
|
000221122000
|
||||||
|
000022220000
|
||||||
|
000002200000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
255, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
0, 237, 255, 255
|
||||||
|
0, 144, 255, 255
|
||||||
|
0, 59, 255, 255
|
||||||
|
Colormap
|
||||||
|
333333333333
|
||||||
|
333333333333
|
||||||
|
333333333333
|
||||||
|
000000000000
|
||||||
|
222220022222
|
||||||
|
222220022222
|
||||||
|
222220022222
|
||||||
|
000000000000
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
000000000000
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
222220022222
|
||||||
|
000000000000
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
333330033333
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
255, 128, 128, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
159, 240, 255, 255
|
||||||
|
0, 148, 255, 255
|
||||||
|
Colormap
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
Brickmap
|
||||||
|
000311113000
|
||||||
|
000311113000
|
||||||
|
333311113333
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222221122222
|
||||||
|
333321123333
|
||||||
|
000321123000
|
||||||
|
000321123000
|
||||||
|
000322223000
|
||||||
|
000333333000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
255, 0, 0, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
0, 255, 255, 255
|
||||||
|
7, 255, 189, 255
|
||||||
|
Colormap
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111011110111
|
||||||
|
111011110111
|
||||||
|
222022220222
|
||||||
|
000000000000
|
||||||
|
111011110111
|
||||||
|
222022220222
|
||||||
|
000000000000
|
||||||
|
111000000111
|
||||||
|
222000000222
|
||||||
|
000000000000
|
||||||
|
222222222222
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
0, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
0, 151, 113, 255
|
||||||
|
7, 255, 189, 255
|
||||||
|
128, 143, 128, 255
|
||||||
|
Colormap
|
||||||
|
000000000000
|
||||||
|
033333333330
|
||||||
|
031111111130
|
||||||
|
031111111130
|
||||||
|
033333333330
|
||||||
|
000000000000
|
||||||
|
033330033330
|
||||||
|
032230032230
|
||||||
|
032230032230
|
||||||
|
033330033330
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
000000000000
|
||||||
|
022222222220
|
||||||
|
021111111120
|
||||||
|
021111111120
|
||||||
|
022222222220
|
||||||
|
000000000000
|
||||||
|
022220022220
|
||||||
|
021120021120
|
||||||
|
021120021120
|
||||||
|
022220022220
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
255, 0, 0, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
101, 97, 255, 255
|
||||||
|
5, 186, 255, 255
|
||||||
|
105, 201, 255, 255
|
||||||
|
Colormap
|
||||||
|
000000333333
|
||||||
|
000003333333
|
||||||
|
000033311111
|
||||||
|
333333133333
|
||||||
|
333331333333
|
||||||
|
333313333333
|
||||||
|
111133311111
|
||||||
|
333333100000
|
||||||
|
333331000000
|
||||||
|
333310000000
|
||||||
|
111100000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
000000111111
|
||||||
|
000001111111
|
||||||
|
000011133333
|
||||||
|
111111311111
|
||||||
|
111113111111
|
||||||
|
111131111111
|
||||||
|
333311133333
|
||||||
|
111111300000
|
||||||
|
111113000000
|
||||||
|
111130000000
|
||||||
|
333300000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
255, 0, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
163, 255, 198, 255
|
||||||
|
0, 255, 182, 255
|
||||||
|
Colormap
|
||||||
|
000022220000
|
||||||
|
000222222000
|
||||||
|
000022220000
|
||||||
|
111000000111
|
||||||
|
111100001111
|
||||||
|
111110011111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
000033330000
|
||||||
|
000311113000
|
||||||
|
000033330000
|
||||||
|
111000000111
|
||||||
|
111100001111
|
||||||
|
111110011111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
255, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
255, 200, 5, 255
|
||||||
|
255, 153, 0, 255
|
||||||
|
255, 97, 0, 255
|
||||||
|
Colormap
|
||||||
|
000000000000
|
||||||
|
000333000333
|
||||||
|
000333000333
|
||||||
|
000333000333
|
||||||
|
222000222000
|
||||||
|
222000222000
|
||||||
|
222000222000
|
||||||
|
000111000111
|
||||||
|
000111000111
|
||||||
|
000111000111
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
000000000000
|
||||||
|
000222000222
|
||||||
|
000212000212
|
||||||
|
000222000222
|
||||||
|
222000222000
|
||||||
|
212000212000
|
||||||
|
222000222000
|
||||||
|
000222000222
|
||||||
|
000212000212
|
||||||
|
000222000222
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
255, 255, 0, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
230, 230, 230, 255
|
||||||
|
195, 195, 195, 255
|
||||||
|
150, 150, 150, 255
|
||||||
|
Colormap
|
||||||
|
333333333333
|
||||||
|
030030030030
|
||||||
|
030030030030
|
||||||
|
030030030030
|
||||||
|
222222222222
|
||||||
|
020020020020
|
||||||
|
020020020020
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
020020020020
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111111111111
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
222222222222
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
010010010010
|
||||||
|
020020020020
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
0, 255, 255, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
217, 56, 62, 255
|
||||||
|
132, 56, 62, 255
|
||||||
|
Colormap
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222211112222
|
||||||
|
000211112000
|
||||||
|
000211112000
|
||||||
|
022211112220
|
||||||
|
021111111120
|
||||||
|
021111111120
|
||||||
|
021111111120
|
||||||
|
022222222220
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
222211112222
|
||||||
|
000211112000
|
||||||
|
000211112000
|
||||||
|
022211112220
|
||||||
|
021111111120
|
||||||
|
021111111120
|
||||||
|
021111111120
|
||||||
|
033333333330
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
0, 255, 0, 255
|
||||||
|
0, 0, 0, 255
|
||||||
|
255, 221, 0, 255
|
||||||
|
255, 0, 0, 255
|
||||||
|
Colormap
|
||||||
|
222220022222
|
||||||
|
222220022222
|
||||||
|
222220022222
|
||||||
|
222220022222
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
111111111111
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
Brickmap
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
111110011111
|
||||||
|
222220022222
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
333333333333
|
||||||
|
000000000000
|
||||||
|
111111111111
|
||||||
|
222222222222
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
000000000000
|
||||||
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 137 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 148 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 480 KiB |
|
After Width: | Height: | Size: 362 KiB |
|
After Width: | Height: | Size: 433 KiB |
|
After Width: | Height: | Size: 370 KiB |
|
After Width: | Height: | Size: 464 KiB |
|
After Width: | Height: | Size: 532 KiB |
|
After Width: | Height: | Size: 611 KiB |
|
After Width: | Height: | Size: 509 KiB |
|
After Width: | Height: | Size: 503 KiB |
|
After Width: | Height: | Size: 553 KiB |
|
After Width: | Height: | Size: 597 KiB |
|
After Width: | Height: | Size: 474 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1,83 @@
|
|||||||
|
#include "creditscode.h"
|
||||||
|
#include "include/Engine.h"
|
||||||
|
|
||||||
|
#include "main_code.h"
|
||||||
|
|
||||||
|
const int TGameCredits::CONST_STATE_APPEARING = 0;
|
||||||
|
const int TGameCredits::CONST_STATE_APPEARED = 1;
|
||||||
|
const int TGameCredits::CONST_STATE_DISAPPEARING = 2;
|
||||||
|
const int TGameCredits::CONST_STATE_DISAPPEARED = 3;
|
||||||
|
|
||||||
|
const float TGameCredits::CONST_APPEAR_TIME = 150.f;
|
||||||
|
|
||||||
|
TGameCredits::TGameCredits()
|
||||||
|
: TGameAreaAncestor()
|
||||||
|
, StateTimer(0)
|
||||||
|
, State(CONST_STATE_DISAPPEARED)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void TGameCredits::Draw()
|
||||||
|
{
|
||||||
|
//*SE::Console << "TGameCredits::Draw";
|
||||||
|
float transparency = StateTimer/CONST_APPEAR_TIME;
|
||||||
|
|
||||||
|
|
||||||
|
RenderUniform1f("Transparency", transparency);
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D,ResourceManager->TexList["main_menu_bkg_left"]);
|
||||||
|
Renderer->DrawRect(Vector2f(0, 0.f), Vector2f(480.f, 320.f));
|
||||||
|
|
||||||
|
const Vector2f creditsPos(140.f, 130.f);
|
||||||
|
|
||||||
|
const Vector2f creditsHalfSize(128.f, 128.f);
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D,ResourceManager->TexList[CONST_CREDITS_TEXTURE]);
|
||||||
|
Renderer->DrawRect(creditsPos-creditsHalfSize, creditsPos+creditsHalfSize);
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D,ResourceManager->TexList[CONST_LOGO_SMALL_TEXTURE]);
|
||||||
|
Renderer->DrawRect(Vector2f(240.f-128.f+15.f, 320.f-64.f), Vector2f(240.f+128.f+15.f, 320.f));
|
||||||
|
|
||||||
|
CheckGlError("Draw TGameCredits");
|
||||||
|
}
|
||||||
|
|
||||||
|
void TGameCredits::Update(size_t dt)
|
||||||
|
{
|
||||||
|
if (State == CONST_STATE_APPEARING)
|
||||||
|
{
|
||||||
|
*SE::Console << "TGameCredits::Update - CONST_STATE_APPEARING";
|
||||||
|
StateTimer += dt;
|
||||||
|
if (StateTimer >= CONST_APPEAR_TIME)
|
||||||
|
{
|
||||||
|
StateTimer = CONST_APPEAR_TIME;
|
||||||
|
State = CONST_STATE_APPEARED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (State == CONST_STATE_DISAPPEARING)
|
||||||
|
{
|
||||||
|
StateTimer -= dt;
|
||||||
|
if (StateTimer <= 0.f)
|
||||||
|
{
|
||||||
|
StateTimer = 0.f;
|
||||||
|
State = CONST_STATE_DISAPPEARED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void TGameCredits::OnTapDown(Vector2f p)
|
||||||
|
{
|
||||||
|
*SE::Console << "TGameCredits::OnTapDown";
|
||||||
|
Application->GoFromCreditsToMenu();
|
||||||
|
}
|
||||||
|
|
||||||
|
void TGameCredits::StartAppear()
|
||||||
|
{
|
||||||
|
*SE::Console << "TGameCredits::StartAppear";
|
||||||
|
State = CONST_STATE_APPEARING;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TGameCredits::StartDisappear()
|
||||||
|
{
|
||||||
|
*SE::Console << "TGameCredits::StartDisappear";
|
||||||
|
State = CONST_STATE_DISAPPEARING;
|
||||||
|
}
|
||||||