-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
901 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var _demo_string = "[rainbow][pulse]abcdef[] ABCDEF##"; | ||
_demo_string += "[wave][c_orange]0123456789[] .,<>\"'&[c_white][spr_coin,0][spr_coin,1][spr_coin,2][spr_coin,3][shake][rainbow]!?[]\n"; | ||
_demo_string += "[fa_centre][spr_coin][spr_coin][spr_coin][spr_coin]\n"; | ||
_demo_string += "[spr_sprite_font]the quick brown fox [wave]jumps[/wave] over the lazy dog"; | ||
_demo_string += "[fa_centre][spr_coin][spr_coin][spr_coin][spr_large_coin][fa_left]\n"; | ||
_demo_string += "[fa_left][spr_sprite_font]the quick brown fox [wave]jumps[/wave] over the lazy dog"; | ||
_demo_string += "[fnt_test_0][fa_right]THE [fnt_test_1][#ff4499][shake]QUICK[fnt_test_0] [$D2691E]BROWN [$FF4499]FOX [fa_left]JUMPS OVER[$FFFF00] THE [/shake]LAZY [fnt_test_1][wobble]DOG[/wobble]."; | ||
|
||
scribble_draw(x - 150, y - 80, _demo_string); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
//Setup | ||
scribble_init("Fonts", "fnt_test_0", true); | ||
|
||
var _mapstring = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,.-;:_+-*/\\'\"!?~^°<>|(){[]}%&=#@$ÄÖÜäöüß"; | ||
scribble_add_spritefont("spr_sprite_font", _mapstring, 0, 3); | ||
|
||
scribble_add_colour("c_coquelicot", $ff3800); | ||
scribble_add_colour("c_smaragdine", $50c875); | ||
scribble_add_colour("c_xanadu" , $738678); | ||
scribble_add_colour("c_amaranth" , $e52b50); | ||
scribble_add_color("c_coquelicot", $ff3800); | ||
scribble_add_color("c_smaragdine", $50c875); | ||
scribble_add_color("c_xanadu" , $738678); | ||
scribble_add_color("c_amaranth" , $e52b50); | ||
|
||
scribble_set_glyph_property("spr_sprite_font", "f", SCRIBBLE_GLYPH.SEPARATION, -1, true); | ||
scribble_set_glyph_property("spr_sprite_font", "q", SCRIBBLE_GLYPH.SEPARATION, -1, true); | ||
|
||
scribble_autotype_add_event("sound", example_event_sound); | ||
|
||
|
||
//Create the text element | ||
var _demo_string = "[rainbow][pulse]abcdef[] ABCDEF##"; | ||
_demo_string += "[wave][c_orange]0123456789[] .,<>\"'&[c_white][spr_coin,0][spr_coin,1][spr_coin,2][spr_coin,3][][shake][rainbow]!?[]\n"; | ||
_demo_string += "[spr_coin][spr_coin,1,0.1][spr_coin,2,0.1][spr_large_coin,3,0.1]\n"; | ||
_demo_string += "[spr_sprite_font]the quick brown fox [wave]jumps[/wave] over the lazy dog"; | ||
|
||
var _demo_string = "[sound,snd_crank][rainbow][pulse]abcdef[] ABCDEF##"; | ||
_demo_string += "[wave][c_orange]0123456789[] .,<>\"'&[c_white][spr_coin,0][sound,snd_switch][spr_coin,1][sound,snd_switch][spr_coin,2][sound,snd_switch][spr_coin,3][sound,snd_switch][][shake][rainbow]!?[]\n"; | ||
_demo_string += "[fa_center][spr_coin][spr_coin,1,0.1][spr_coin,2,0.1][spr_large_coin,3,0.1][]\n"; | ||
_demo_string += "[fa_left][spr_sprite_font]the quick brown fox [wave]jumps[/wave] over the lazy dog"; | ||
_demo_string += "[fnt_test_0][fa_right]THE [fnt_test_1][#ff4499][shake]QUICK[fnt_test_0] [$D2691E]BROWN [$FF4499]FOX [fa_left]JUMPS OVER[$FFFF00] THE [/shake]LAZY [fnt_test_1][wobble]DOG[/wobble]."; | ||
|
||
scribble_draw_set_cache_group("example cache group", false, false); | ||
scribble = scribble_draw(0, 0, _demo_string); | ||
element = scribble_draw(0, 0, _demo_string); | ||
|
||
scribble_draw_reset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
scribble_draw_set_box_align(fa_center, fa_middle); | ||
scribble_draw(x, y, scribble); | ||
var _bbox = scribble_get_bbox(scribble, x, y, 5, 5, 5, 5); | ||
scribble_draw_reset(); | ||
scribble_draw(x, y, element); | ||
|
||
var _bbox = scribble_get_bbox(element, x, y, 5, 5, 5, 5); | ||
draw_rectangle(_bbox[SCRIBBLE_BBOX.L], _bbox[SCRIBBLE_BBOX.T], | ||
_bbox[SCRIBBLE_BBOX.R], _bbox[SCRIBBLE_BBOX.B], true); | ||
_bbox[SCRIBBLE_BBOX.R], _bbox[SCRIBBLE_BBOX.B], true); | ||
|
||
scribble_draw_reset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.