Added new font, spacing still sucks...
This commit is contained in:
parent
7c3617a518
commit
a23e283a36
BIN
font/pixel.ttf
Normal file
BIN
font/pixel.ttf
Normal file
Binary file not shown.
@ -86,7 +86,7 @@ package core is
|
||||
|
||||
text_box : volatile;
|
||||
|
||||
fonts : array (0 .. 3) of font;
|
||||
fonts : array (0 .. 4) of font;
|
||||
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -29,10 +29,11 @@ begin
|
||||
core.configure;
|
||||
ui.configure;
|
||||
|
||||
core.fonts (0) := core.load_font ("./font/tenderness.ttf", 22, 2);
|
||||
core.fonts (0) := core.load_font ("./font/pixel.ttf", 22, 2);
|
||||
core.fonts (1) := core.load_font ("./font/ferrum.ttf", 22, 2);
|
||||
core.fonts (2) := core.load_font ("./font/gothic.ttf", 22, 2);
|
||||
core.fonts (3) := core.load_font ("./font/unitblock.ttf", 22, 2);
|
||||
core.fonts (4) := core.load_font ("./font/tenderness.ttf", 22, 2);
|
||||
|
||||
core.play_sound (core.import_sound (core.c_string ("./song/main_menu.ogg")));
|
||||
|
||||
@ -115,11 +116,12 @@ begin
|
||||
--
|
||||
ui.draw_text_box (0, core.window_height - 32, core.window_width, 32);
|
||||
--
|
||||
core.write ("Heyo world!", 1600, 700 + 0, 16#CC9966#, core.fonts (0));
|
||||
core.write ("Nyaa world!", 1600, 700 + 32, 16#99CC66#, core.fonts (1));
|
||||
core.write ("Cyaa world!", 1600, 700 + 64, 16#6699CC#, core.fonts (2));
|
||||
core.write ("Neon world!", 1600, 700 + 96, 16#66CC99#, core.fonts (3));
|
||||
core.write ("Neon world!", 0, 0, 16#FFFFFF#, core.fonts (0));
|
||||
core.write ("Heyo world!", 1600, 700 + 0, 16#CCCCCC#, core.fonts (0));
|
||||
core.write ("Nyaa world!", 1600, 700 + 32, 16#CCCCCC#, core.fonts (1));
|
||||
core.write ("Cyaa world!", 1600, 700 + 64, 16#CCCCCC#, core.fonts (2));
|
||||
core.write ("Neon world!", 1600, 700 + 96, 16#CCCCCC#, core.fonts (3));
|
||||
core.write ("Neon world!", 1600, 700 + 128, 16#CCCCCC#, core.fonts (4));
|
||||
core.write ("Neon world!", 0, 0, 16#FFFFFF#, core.fonts (0));
|
||||
end loop gameplay;
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user