Font nova per a la intro

This commit is contained in:
2025-01-26 21:05:43 +01:00
parent b9f194a2b1
commit 59b9f61d69
5 changed files with 200 additions and 3 deletions

BIN
data/font/04b_25_var01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

194
data/font/04b_25_var01.txt Normal file
View File

@@ -0,0 +1,194 @@
# box width
14
# box height
14
# 32 espacio ( )
8
# 33 !
5
# 34 "
8
# 35
10
# 36 $
10
# 37 %
9
# 38 &
11
# 39 '
5
# 40 (
7
# 41 )
7
# 42 *
7
# 43 +
9
# 44 ,
5
# 45 -
9
# 46 .
5
# 47 /
12
# 48 0
8
# 49 1
6
# 50 2
8
# 51 3
8
# 52 4
8
# 53 5
8
# 54 6
8
# 55 7
8
# 56 8
8
# 57 9
8
# 58 :
5
# 59 ;
5
# 60 <
8
# 61 =
8
# 62 >
8
# 63 ?
8
# 64 @
11
# 65 A
8
# 66 B
8
# 67 C
8
# 68 D
8
# 69 E
8
# 70 F
8
# 71 G
8
# 72 H
8
# 73 I
5
# 74 J
8
# 75 K
8
# 76 L
8
# 77 M
11
# 78 N
8
# 79 O
8
# 80 P
8
# 81 Q
8
# 82 R
8
# 83 S
8
# 84 T
9
# 85 U
8
# 86 V
8
# 87 W
11
# 88 X
8
# 89 Y
8
# 90 Z
8
# 91 [
7
# 92 \
11
# 93 ]
7
# 94 ^
6
# 95 _
7
# 96 `
6
# 97 a
8
# 98 b
8
# 99 c
8
# 100 d
8
# 101 e
8
# 102 f
8
# 103 g
8
# 104 h
8
# 105 i
5
# 106 j
8
# 107 k
8
# 108 l
8
# 109 m
11
# 110 n
8
# 111 o
8
# 112 p
8
# 113 q
8
# 114 r
8
# 115 s
8
# 116 t
9
# 117 u
8
# 118 v
8
# 119 w
11
# 120 x
8
# 121 y
8
# 122 z
8
# 123 {
1
# 124 |
1
# 125 }
1
# 126 ~
1

View File

@@ -52,7 +52,7 @@ Director::Director(int argc, const char *argv[])
section::name = section::Name::GAME;
section::options = section::Options::GAME_PLAY_1P;
#elif DEBUG
section::name = section::Name::INSTRUCTIONS;
section::name = section::Name::LOGO;
#else // NORMAL GAME
section::name = section::Name::LOGO;
section::attract_mode = section::AttractMode::TITLE_TO_DEMO;
@@ -545,6 +545,8 @@ void Director::setFileList()
Asset::get()->add(prefix + "/data/font/04b_25.txt", AssetType::FONT);
Asset::get()->add(prefix + "/data/font/04b_25_2x.png", AssetType::BITMAP);
Asset::get()->add(prefix + "/data/font/04b_25_2x.txt", AssetType::FONT);
Asset::get()->add(prefix + "/data/font/04b_25_var01.png", AssetType::BITMAP);
Asset::get()->add(prefix + "/data/font/04b_25_var01.txt", AssetType::FONT);
// Textos
Asset::get()->add(prefix + "/data/lang/es_ES.txt", AssetType::LANG);

View File

@@ -21,7 +21,7 @@
// Constructor
Intro::Intro()
: texture_(Resource::get()->getTexture("intro.png")),
text_(Resource::get()->getText("nokia"))
text_(Resource::get()->getText("04b_25_var01"))
{
// Inicializa variables
@@ -97,7 +97,7 @@ Intro::Intro()
auto w = std::make_unique<Writer>(text_);
w->setPosX(BLOCK * 0);
w->setPosY(param.game.height - (BLOCK * 6));
w->setKerning(-1);
w->setKerning(-2);
w->setEnabled(false);
w->setFinishedCounter(180);
texts_.push_back(std::move(w));

View File

@@ -323,6 +323,7 @@ void Resource::createText()
std::vector<std::pair<std::string, std::string>> resources = {
{"04b_25", "04b_25.png"},
{"04b_25_2x", "04b_25_2x.png"},
{"04b_25_var01", "04b_25_var01.png"},
{"8bithud", "8bithud.png"},
{"nokia", "nokia.png"},
{"smb2", "smb2.gif"}};