-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResources.cpp
More file actions
45 lines (39 loc) · 1.6 KB
/
Resources.cpp
File metadata and controls
45 lines (39 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <tuple>
#include "Resources.h"
#include "sdl_includes.h"
vector<Resources::FontInfo> Resources::fonts_ {
{ ARIAL16, "resources/fonts/ARIAL.ttf", 16 },
{ ARIAL24, "resources/fonts/ARIAL.ttf", 24 }
};
vector<Resources::ImageInfo> Resources::images_ {
{ Blank, "resources/images/blank.png" },
{ TennisBall, "resources/images/tennis_ball.png" },
{ KeyBoardIcon, "resources/images/keyboard.png" },
{ MouseIcon, "resources/images/mouse.png" },
{ AIIcon, "resources/images/ai.png" },
{ SpaceShips, "resources/images/spaceships.png" },
{ Airplanes, "resources/images/airplanes.png" },
{ Star,"resources/images/star.png" },
{ Asteroid,"resources/images/asteroid.png" },
{ Badges,"resources/images/badges.png" },
{ WhiteRect,"resources/images/whiterect.png" },
{ DarkHole, "resources/images/black-hole.png"}
};
vector<Resources::TextMsgInfo> Resources::messages_ {
{ HelloWorld, "Hello World", { COLOR(0xaaffffff) }, ARIAL16 },
{ PressAnyKey, "Press Any Key ...", {COLOR(0xaaffbbff) }, ARIAL24 },
{ PressEnterToContinue, "Press Enter to Continue", {COLOR(0xaaffbbff) }, ARIAL24 },
{ GameOver, "Game Over", { COLOR( 0xffffbbff) }, ARIAL24 }
};
vector<Resources::MusicInfo> Resources::musics_ {
{ Beat, "resources/sound/beat.wav" },
{ Cheer, "resources/sound/cheer.wav" },
{ Boooo, "resources/sound/boooo.wav" },
{ ImperialMarch, "resources/sound/imperial_march.wav" }
};
vector<Resources::SoundInfo> Resources::sounds_ {
{ Wall_Hit, "resources/sound/wall_hit.wav" },
{ Paddle_Hit, "resources/sound/paddle_hit.wav" },
{ GunShot, "resources/sound/GunShot.wav" },
{ Explosion, "resources/sound/explosion.wav" }
};