Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
mstop4 committed May 2, 2021
1 parent b43408c commit 03bc576
Show file tree
Hide file tree
Showing 74 changed files with 230 additions and 209 deletions.
3 changes: 0 additions & 3 deletions 2.3/objects/obj_screen/Alarm_0.gml

This file was deleted.

20 changes: 0 additions & 20 deletions 2.3/objects/obj_screen/Create_0.gml

This file was deleted.

10 changes: 0 additions & 10 deletions 2.3/objects/obj_screen/Step_1.gml

This file was deleted.

48 changes: 0 additions & 48 deletions 2.3/options/ios/options_ios.yy

This file was deleted.

27 changes: 0 additions & 27 deletions 2.3/options/tvos/options_tvos.yy

This file was deleted.

26 changes: 0 additions & 26 deletions 2.3/scripts/auto_frame/auto_frame.gml

This file was deleted.

9 changes: 0 additions & 9 deletions 2.3/scripts/math_structs/math_structs.gml

This file was deleted.

File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed 2.3/auto-framer.yymps → GMS 2.3/auto-framer.yymps
Binary file not shown.
31 changes: 13 additions & 18 deletions 2.3/auto-framer.yyp → GMS 2.3/auto-framer.yyp

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

File renamed without changes

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

1 change: 1 addition & 0 deletions GMS 2.3/notes/info/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Version: 1.1
10 changes: 10 additions & 0 deletions GMS 2.3/notes/info/info.yy

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

3 changes: 3 additions & 0 deletions GMS 2.3/objects/obj_demo/Alarm_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var _d = new Vector2(window_get_width(), window_get_height());

auto_frame(_d);
20 changes: 20 additions & 0 deletions GMS 2.3/objects/obj_demo/Create_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if (track_window_resize) prev_win_size = new Vector2(window_get_width(), window_get_height());

fixed_display_size = !(os_type == os_ios || os_type == os_android);
var _d = new Vector2(0, 0);

if (fixed_display_size) {
_d.y = fixedDisplay_height;
_d.x = fixedDisplay_width;
window_set_rectangle(abs(display_get_width() - _d.x) / 2, abs(display_get_height() - _d.y) / 2, _d.x, _d.y);
}

else {
_d.y = display_get_height();
_d.x = display_get_width();
window_set_size(_d.x, _d.y);
}

auto_frame(_d);

window_size = new Vector2(_d.x, _d.y);
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (draw_stats) {
draw_set_halign(fa_left);

draw_text(0, 0, "Display: " + string(display_get_width()) + " x " + string(display_get_height()) + "\n" +
"Window: " + string(window_size.w) + " x " + string(window_size.h) + "\n" +
"Window: " + string(window_size.x) + " x " + string(window_size.y) + "\n" +
"Viewport: " + string(view_get_wport(0)) + " x " + string(view_get_hport(0)) + "\n" +
"Camera: " + string(camera_get_view_width(view_camera[0])) + " x " + string(camera_get_view_height(view_camera[0])) + " / " + string(camera_get_view_x(view_camera[0])) + ", " + string(camera_get_view_y(view_camera[0])) + "\n" +
"Application Surface: " + string(surface_get_width(application_surface)) + " x " + string(surface_get_height(application_surface)) + "\n" +
Expand Down
10 changes: 10 additions & 0 deletions GMS 2.3/objects/obj_demo/Step_1.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if (track_window_resize) {
var _cur_win_size = new Vector2(window_get_width(), window_get_height());

if (_cur_win_size.x != prev_win_size.x || _cur_win_size.y != prev_win_size.y) {
alarm[0] = 5;
}

prev_win_size.x = _cur_win_size.x;
prev_win_size.y = _cur_win_size.y;
}

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

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

Loading

0 comments on commit 03bc576

Please # to comment.