Skip to content

Commit

Permalink
Adds .is_animated() test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed May 22, 2022
1 parent b7a53ba commit c640561
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Scribble.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions objects/obj_test_is_animated/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
var _x = 10;
var _y = 10;

var _element = scribble("This is some static text that is not animated.", 0);
_element.draw(_x, _y);
draw_text(_x + _element.get_width() + 20, _y, ".is_animated() = " + string(_element.is_animated()));
_y += _element.get_height() + 10;

var _element = scribble("This is some text with an animated in-line sprite [spr_coin]", 0);
_element.draw(_x, _y);
draw_text(_x + _element.get_width() + 20, _y, ".is_animated() = " + string(_element.is_animated()));
_y += _element.get_height() + 10;

var _element = scribble("This is some text with two non-animated in-line sprite [spr_coin,0,0] [spr_static_coin]", 0);
_element.draw(_x, _y);
draw_text(_x + _element.get_width() + 20, _y, ".is_animated() = " + string(_element.is_animated()));
_y += _element.get_height() + 10;

var _element = scribble("[rainbow]This is some rainbow text (which is an animation)", 0);
_element.draw(_x, _y);
draw_text(_x + _element.get_width() + 20, _y, ".is_animated() = " + string(_element.is_animated()));
_y += _element.get_height() + 10;

var _element = scribble("[cycle, 200, 140, 190, 150]This is some colour-cycling text (which is an animation)", 0);
_element.draw(_x, _y);
draw_text(_x + _element.get_width() + 20, _y, ".is_animated() = " + string(_element.is_animated()));
_y += _element.get_height() + 10;

scribble_anim_reset();
33 changes: 33 additions & 0 deletions objects/obj_test_is_animated/obj_test_is_animated.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rooms/rm_test/rm_test.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sprites/spr_coin/spr_coin.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sprites/spr_large_coin/spr_large_coin.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions sprites/spr_static_coin/spr_static_coin.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c640561

Please sign in to comment.