From 54527f637e18a00c040bab2c13dbf34959b836b6 Mon Sep 17 00:00:00 2001 From: Luna <865514198@qq.com> Date: Sun, 4 Aug 2024 11:19:16 +0800 Subject: [PATCH] feat: GameMaker demo --- GameMaker/GameMakerDemo/GameMakerDemo.yyp | 9 +- .../objects/CloseMenuDialogButton/Draw_0.gml | 23 +++-- .../objects/DatabaseButton/Create_0.gml | 3 + .../objects/DatabaseButton/DatabaseButton.yy | 40 ++++++++ .../objects/DatabaseButton/Draw_0.gml | 6 ++ .../objects/DatabaseButton/Mouse_4.gml | 2 + .../objects/DialogBox/DialogBox.yy | 4 +- .../MainRoomInitializeObject/Create_0.gml | 20 ++++ .../MainRoomInitializeObject.yy | 35 +++++++ .../objects/ProcessBar/Draw_0.gml | 12 +++ .../objects/ProcessBar/ProcessBar.yy | 42 ++++++++ .../objects/ProcessBar/Step_0.gml | 14 +++ .../objects/SetWindowSizeButton/Create_0.gml | 3 + .../objects/SetWindowSizeButton/Draw_0.gml | 6 ++ .../objects/SetWindowSizeButton/Mouse_4.gml | 3 + .../SetWindowSizeButton.yy | 40 ++++++++ .../GameMakerDemo/objects/Text/Draw_0.gml | 6 ++ GameMaker/GameMakerDemo/objects/Text/Text.yy | 38 ++++++++ .../options/android/options_android.yy | 81 ++++++++++++++++ .../options/html5/options_html5.yy | 35 +++++++ .../GameMakerDemo/options/ios/options_ios.yy | 49 ++++++++++ .../options/linux/options_linux.yy | 26 +++++ .../GameMakerDemo/options/mac/options_mac.yy | 38 ++++++++ .../options/tvos/options_tvos.yy | 31 ++++++ .../rooms/DialogRoom/DialogRoom.yy | 2 +- .../GameMakerDemo/rooms/MainRoom/MainRoom.yy | 8 ++ .../TranslationScript/TranslationScript.gml | 6 +- .../ActiveButtonSprite/ActiveButtonSprite.yy | 4 +- .../3d8af2fa-d23b-4b43-97b8-530b8df2cfff.png | Bin 0 -> 660 bytes .../BlueProcessBarSprite.yy | 90 ++++++++++++++++++ .../ffc26aae-22d1-4c32-9485-bdda2ed49f54.png | Bin 0 -> 660 bytes .../EmptyProcessBarSprite.yy | 90 ++++++++++++++++++ .../b76c2fae-604b-4e60-a143-ad7fec0a80a4.png | Bin 0 -> 588 bytes .../35b39b80-616b-4064-a056-eb5c6fe7d631.png | Bin 0 -> 588 bytes .../WhiteSprite.yy} | 10 +- .../c38fc266-8c85-401d-834e-ef6cc8eb32a4.png | Bin .../f209a174-7531-4ae9-aa39-b52c6696a1a6.png | Bin 37 files changed, 754 insertions(+), 22 deletions(-) create mode 100644 GameMaker/GameMakerDemo/objects/DatabaseButton/Create_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/DatabaseButton/DatabaseButton.yy create mode 100644 GameMaker/GameMakerDemo/objects/DatabaseButton/Draw_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/DatabaseButton/Mouse_4.gml create mode 100644 GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/Create_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/MainRoomInitializeObject.yy create mode 100644 GameMaker/GameMakerDemo/objects/ProcessBar/Draw_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/ProcessBar/ProcessBar.yy create mode 100644 GameMaker/GameMakerDemo/objects/ProcessBar/Step_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Create_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Draw_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Mouse_4.gml create mode 100644 GameMaker/GameMakerDemo/objects/SetWindowSizeButton/SetWindowSizeButton.yy create mode 100644 GameMaker/GameMakerDemo/objects/Text/Draw_0.gml create mode 100644 GameMaker/GameMakerDemo/objects/Text/Text.yy create mode 100644 GameMaker/GameMakerDemo/options/android/options_android.yy create mode 100644 GameMaker/GameMakerDemo/options/html5/options_html5.yy create mode 100644 GameMaker/GameMakerDemo/options/ios/options_ios.yy create mode 100644 GameMaker/GameMakerDemo/options/linux/options_linux.yy create mode 100644 GameMaker/GameMakerDemo/options/mac/options_mac.yy create mode 100644 GameMaker/GameMakerDemo/options/tvos/options_tvos.yy create mode 100644 GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/3d8af2fa-d23b-4b43-97b8-530b8df2cfff.png create mode 100644 GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy create mode 100644 GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/layers/3d8af2fa-d23b-4b43-97b8-530b8df2cfff/ffc26aae-22d1-4c32-9485-bdda2ed49f54.png create mode 100644 GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy create mode 100644 GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/b76c2fae-604b-4e60-a143-ad7fec0a80a4.png create mode 100644 GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/layers/b76c2fae-604b-4e60-a143-ad7fec0a80a4/35b39b80-616b-4064-a056-eb5c6fe7d631.png rename GameMaker/GameMakerDemo/sprites/{DialogBoxSprite/DialogBoxSprite.yy => WhiteSprite/WhiteSprite.yy} (91%) rename GameMaker/GameMakerDemo/sprites/{DialogBoxSprite => WhiteSprite}/c38fc266-8c85-401d-834e-ef6cc8eb32a4.png (100%) rename GameMaker/GameMakerDemo/sprites/{DialogBoxSprite => WhiteSprite}/layers/c38fc266-8c85-401d-834e-ef6cc8eb32a4/f209a174-7531-4ae9-aa39-b52c6696a1a6.png (100%) diff --git a/GameMaker/GameMakerDemo/GameMakerDemo.yyp b/GameMaker/GameMakerDemo/GameMakerDemo.yyp index bc6fb85f..eb62ef9b 100644 --- a/GameMaker/GameMakerDemo/GameMakerDemo.yyp +++ b/GameMaker/GameMakerDemo/GameMakerDemo.yyp @@ -39,10 +39,15 @@ {"id":{"name":"DefaultFont","path":"fonts/DefaultFont/DefaultFont.yy",},}, {"id":{"name":"Button","path":"objects/Button/Button.yy",},}, {"id":{"name":"CloseMenuDialogButton","path":"objects/CloseMenuDialogButton/CloseMenuDialogButton.yy",},}, + {"id":{"name":"DatabaseButton","path":"objects/DatabaseButton/DatabaseButton.yy",},}, {"id":{"name":"DialogBox","path":"objects/DialogBox/DialogBox.yy",},}, {"id":{"name":"GoToRoomButton","path":"objects/GoToRoomButton/GoToRoomButton.yy",},}, + {"id":{"name":"MainRoomInitializeObject","path":"objects/MainRoomInitializeObject/MainRoomInitializeObject.yy",},}, {"id":{"name":"MenuDialog","path":"objects/MenuDialog/MenuDialog.yy",},}, + {"id":{"name":"ProcessBar","path":"objects/ProcessBar/ProcessBar.yy",},}, + {"id":{"name":"SetWindowSizeButton","path":"objects/SetWindowSizeButton/SetWindowSizeButton.yy",},}, {"id":{"name":"ShowMenuDialogButton","path":"objects/ShowMenuDialogButton/ShowMenuDialogButton.yy",},}, + {"id":{"name":"Text","path":"objects/Text/Text.yy",},}, {"id":{"name":"Textbox","path":"objects/Textbox/Textbox.yy",},}, {"id":{"name":"DialogRoom","path":"rooms/DialogRoom/DialogRoom.yy",},}, {"id":{"name":"MainRoom","path":"rooms/MainRoom/MainRoom.yy",},}, @@ -50,10 +55,12 @@ {"id":{"name":"TranslationScript","path":"scripts/TranslationScript/TranslationScript.yy",},}, {"id":{"name":"DefaultShader","path":"shaders/DefaultShader/DefaultShader.yy",},}, {"id":{"name":"ActiveButtonSprite","path":"sprites/ActiveButtonSprite/ActiveButtonSprite.yy",},}, - {"id":{"name":"DialogBoxSprite","path":"sprites/DialogBoxSprite/DialogBoxSprite.yy",},}, + {"id":{"name":"BlueProcessBarSprite","path":"sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy",},}, + {"id":{"name":"EmptyProcessBarSprite","path":"sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy",},}, {"id":{"name":"InactiveButtonSprite","path":"sprites/InactiveButtonSprite/InactiveButtonSprite.yy",},}, {"id":{"name":"MenuDialogSprite","path":"sprites/MenuDialogSprite/MenuDialogSprite.yy",},}, {"id":{"name":"TextboxSprite","path":"sprites/TextboxSprite/TextboxSprite.yy",},}, + {"id":{"name":"WhiteSprite","path":"sprites/WhiteSprite/WhiteSprite.yy",},}, ], "resourceType":"GMProject", "resourceVersion":"2.0", diff --git a/GameMaker/GameMakerDemo/objects/CloseMenuDialogButton/Draw_0.gml b/GameMaker/GameMakerDemo/objects/CloseMenuDialogButton/Draw_0.gml index e3cf6e9f..bb052086 100644 --- a/GameMaker/GameMakerDemo/objects/CloseMenuDialogButton/Draw_0.gml +++ b/GameMaker/GameMakerDemo/objects/CloseMenuDialogButton/Draw_0.gml @@ -4,25 +4,28 @@ draw_self() draw_set_font(DefaultFont) draw_set_color(DefaultShader) -//var font = DefaultFont.text_width; // 或者使用你自己的字体 +//Sprite set as left-top +//var font = DefaultFont.text_width; var font_size=font_get_size(DefaultFont) -// 计算文字宽度 +// get font width var text_width_pixels = string_width(text); var text_width=text_width_pixels/font_size; var screen_width = sprite_width*image_xscale; -var text_x = (screen_width / 2) - (text_width / 2); -var text_y = sprite_height*image_yscale / 2; +//var screen_width = 794*image_xscale; +var text_x = x+ (screen_width - text_width); +var text_y = y+sprite_height*image_yscale; +//var text_y = 268*image_yscale / 2; show_debug_message(text_x); show_debug_message(text_y); draw_text(text_x,text_y,text) -//Room居中 -//// 计算文字宽度 +//Center in Room +//// get font width //var text_width = string_width(text); -//// 获取屏幕宽度(或你想让文字居中的区域宽度) -//var screen_width = room_width; // 如果你想让文字在整个房间宽度内居中 -//// 计算文字的X坐标,使其水平居中 +//// get screen width +//var screen_width = room_width; +//// horizontal centering //var text_x = (screen_width / 2) - (text_width / 2); -//// 设置文字的Y坐标,这里我们简单地设置它为屏幕高度的一半 +//// vehicle centering //var text_y = room_height / 2; \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/DatabaseButton/Create_0.gml b/GameMaker/GameMakerDemo/objects/DatabaseButton/Create_0.gml new file mode 100644 index 00000000..5f38b777 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/DatabaseButton/Create_0.gml @@ -0,0 +1,3 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +text=Translation("DatabaseButtonKey") \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/DatabaseButton/DatabaseButton.yy b/GameMaker/GameMakerDemo/objects/DatabaseButton/DatabaseButton.yy new file mode 100644 index 00000000..5fb90e7b --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/DatabaseButton/DatabaseButton.yy @@ -0,0 +1,40 @@ +{ + "$GMObject":"", + "%Name":"DatabaseButton", + "eventList":[ + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":4,"eventType":6,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + ], + "managed":true, + "name":"DatabaseButton", + "overriddenProperties":[], + "parent":{ + "name":"物体", + "path":"folders/物体.yy", + }, + "parentObjectId":null, + "persistent":false, + "physicsAngularDamping":0.1, + "physicsDensity":0.5, + "physicsFriction":0.2, + "physicsGroup":1, + "physicsKinematic":false, + "physicsLinearDamping":0.1, + "physicsObject":false, + "physicsRestitution":0.1, + "physicsSensor":false, + "physicsShape":1, + "physicsShapePoints":[], + "physicsStartAwake":true, + "properties":[], + "resourceType":"GMObject", + "resourceVersion":"2.0", + "solid":false, + "spriteId":{ + "name":"InactiveButtonSprite", + "path":"sprites/InactiveButtonSprite/InactiveButtonSprite.yy", + }, + "spriteMaskId":null, + "visible":true, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/DatabaseButton/Draw_0.gml b/GameMaker/GameMakerDemo/objects/DatabaseButton/Draw_0.gml new file mode 100644 index 00000000..d90b7353 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/DatabaseButton/Draw_0.gml @@ -0,0 +1,6 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +draw_self() +draw_set_font(DefaultFont) +draw_set_color(DefaultShader) +draw_text(x,y,text) \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/DatabaseButton/Mouse_4.gml b/GameMaker/GameMakerDemo/objects/DatabaseButton/Mouse_4.gml new file mode 100644 index 00000000..061a72aa --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/DatabaseButton/Mouse_4.gml @@ -0,0 +1,2 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 diff --git a/GameMaker/GameMakerDemo/objects/DialogBox/DialogBox.yy b/GameMaker/GameMakerDemo/objects/DialogBox/DialogBox.yy index ff79234f..27273f68 100644 --- a/GameMaker/GameMakerDemo/objects/DialogBox/DialogBox.yy +++ b/GameMaker/GameMakerDemo/objects/DialogBox/DialogBox.yy @@ -35,8 +35,8 @@ "resourceVersion":"2.0", "solid":false, "spriteId":{ - "name":"DialogBoxSprite", - "path":"sprites/DialogBoxSprite/DialogBoxSprite.yy", + "name":"WhiteSprite", + "path":"sprites/WhiteSprite/WhiteSprite.yy", }, "spriteMaskId":null, "visible":true, diff --git a/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/Create_0.gml b/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/Create_0.gml new file mode 100644 index 00000000..89c59ee9 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/Create_0.gml @@ -0,0 +1,20 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +// 获取屏幕中心位置 +var center_x = room_width / 2; +var center_y = room_height / 2; + +// 创建文本显示实例 +var inst = instance_create_layer(center_x, center_y,"Instances", Text, +{ + //可以在这里直接给Object的text及其其他属性赋值 + //可以在Draw事件中赋值 + //可以给inst的属性赋值 + text:"Hello world" +}); + +// 设置实例的参数 +//inst.text = "Hello, World!"; +//inst.font = font_SpecialFont; // 假设你已经创建了一个名为 font_SpecialFont 的字体 +//inst.color = c_red; +//inst.scale = 2.0; \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/MainRoomInitializeObject.yy b/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/MainRoomInitializeObject.yy new file mode 100644 index 00000000..ff15cb53 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/MainRoomInitializeObject/MainRoomInitializeObject.yy @@ -0,0 +1,35 @@ +{ + "$GMObject":"", + "%Name":"MainRoomInitializeObject", + "eventList":[ + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + ], + "managed":true, + "name":"MainRoomInitializeObject", + "overriddenProperties":[], + "parent":{ + "name":"物体", + "path":"folders/物体.yy", + }, + "parentObjectId":null, + "persistent":false, + "physicsAngularDamping":0.1, + "physicsDensity":0.5, + "physicsFriction":0.2, + "physicsGroup":1, + "physicsKinematic":false, + "physicsLinearDamping":0.1, + "physicsObject":false, + "physicsRestitution":0.1, + "physicsSensor":false, + "physicsShape":1, + "physicsShapePoints":[], + "physicsStartAwake":true, + "properties":[], + "resourceType":"GMObject", + "resourceVersion":"2.0", + "solid":false, + "spriteId":null, + "spriteMaskId":null, + "visible":true, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/ProcessBar/Draw_0.gml b/GameMaker/GameMakerDemo/objects/ProcessBar/Draw_0.gml new file mode 100644 index 00000000..bfaef9c5 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/ProcessBar/Draw_0.gml @@ -0,0 +1,12 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +// Draw event +// 绘制背景 +//draw_sprite_ext(spr_Progress_Bar_Background, 0, x, y, 1, 1, 0, c_white, 1); + +// 计算填充宽度 +var full_width= sprite_width*image_xscale; +var fill_width = (current_progress / max_progress) *full_width; + +// 绘制填充部分 +draw_sprite_ext(BlueProcessBarSprite, 0, x, y, fill_width / full_width, 1, 0, c_white, 1); \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/ProcessBar/ProcessBar.yy b/GameMaker/GameMakerDemo/objects/ProcessBar/ProcessBar.yy new file mode 100644 index 00000000..98b2a1b8 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/ProcessBar/ProcessBar.yy @@ -0,0 +1,42 @@ +{ + "$GMObject":"", + "%Name":"ProcessBar", + "eventList":[ + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + ], + "managed":true, + "name":"ProcessBar", + "overriddenProperties":[], + "parent":{ + "name":"物体", + "path":"folders/物体.yy", + }, + "parentObjectId":null, + "persistent":false, + "physicsAngularDamping":0.1, + "physicsDensity":0.5, + "physicsFriction":0.2, + "physicsGroup":1, + "physicsKinematic":false, + "physicsLinearDamping":0.1, + "physicsObject":false, + "physicsRestitution":0.1, + "physicsSensor":false, + "physicsShape":1, + "physicsShapePoints":[], + "physicsStartAwake":true, + "properties":[ + {"$GMObjectProperty":"v1","%Name":"max_progress","filters":[],"listItems":[],"multiselect":false,"name":"max_progress","rangeEnabled":false,"rangeMax":10.0,"rangeMin":0.0,"resourceType":"GMObjectProperty","resourceVersion":"2.0","value":"100","varType":1,}, + {"$GMObjectProperty":"v1","%Name":"current_progress","filters":[],"listItems":[],"multiselect":false,"name":"current_progress","rangeEnabled":false,"rangeMax":10.0,"rangeMin":0.0,"resourceType":"GMObjectProperty","resourceVersion":"2.0","value":"0","varType":1,}, + ], + "resourceType":"GMObject", + "resourceVersion":"2.0", + "solid":false, + "spriteId":{ + "name":"EmptyProcessBarSprite", + "path":"sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy", + }, + "spriteMaskId":null, + "visible":true, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/ProcessBar/Step_0.gml b/GameMaker/GameMakerDemo/objects/ProcessBar/Step_0.gml new file mode 100644 index 00000000..9e6d7234 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/ProcessBar/Step_0.gml @@ -0,0 +1,14 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +// Step event +//if (keyboard_check(vk_space)) { // 按下空格键时增加进度 + current_progress += 1; + if (current_progress > max_progress) { + current_progress = max_progress; + } +//} + +// 重置进度 +if (keyboard_check(vk_enter)) { // 按下 R 键时重置进度 + current_progress = 0; +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Create_0.gml b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Create_0.gml new file mode 100644 index 00000000..9e6d9eb8 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Create_0.gml @@ -0,0 +1,3 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +text="Set Window Size" \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Draw_0.gml b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Draw_0.gml new file mode 100644 index 00000000..d90b7353 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Draw_0.gml @@ -0,0 +1,6 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +draw_self() +draw_set_font(DefaultFont) +draw_set_color(DefaultShader) +draw_text(x,y,text) \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Mouse_4.gml b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Mouse_4.gml new file mode 100644 index 00000000..7936aff7 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/Mouse_4.gml @@ -0,0 +1,3 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +window_set_size(1000,1000) \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/SetWindowSizeButton.yy b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/SetWindowSizeButton.yy new file mode 100644 index 00000000..9a66ff99 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/SetWindowSizeButton/SetWindowSizeButton.yy @@ -0,0 +1,40 @@ +{ + "$GMObject":"", + "%Name":"SetWindowSizeButton", + "eventList":[ + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":4,"eventType":6,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + ], + "managed":true, + "name":"SetWindowSizeButton", + "overriddenProperties":[], + "parent":{ + "name":"物体", + "path":"folders/物体.yy", + }, + "parentObjectId":null, + "persistent":false, + "physicsAngularDamping":0.1, + "physicsDensity":0.5, + "physicsFriction":0.2, + "physicsGroup":1, + "physicsKinematic":false, + "physicsLinearDamping":0.1, + "physicsObject":false, + "physicsRestitution":0.1, + "physicsSensor":false, + "physicsShape":1, + "physicsShapePoints":[], + "physicsStartAwake":true, + "properties":[], + "resourceType":"GMObject", + "resourceVersion":"2.0", + "solid":false, + "spriteId":{ + "name":"InactiveButtonSprite", + "path":"sprites/InactiveButtonSprite/InactiveButtonSprite.yy", + }, + "spriteMaskId":null, + "visible":true, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/Text/Draw_0.gml b/GameMaker/GameMakerDemo/objects/Text/Draw_0.gml new file mode 100644 index 00000000..d90b7353 --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/Text/Draw_0.gml @@ -0,0 +1,6 @@ +/// @description 在此处插入描述 +// 你可以在此编辑器中写入代码 +draw_self() +draw_set_font(DefaultFont) +draw_set_color(DefaultShader) +draw_text(x,y,text) \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/objects/Text/Text.yy b/GameMaker/GameMakerDemo/objects/Text/Text.yy new file mode 100644 index 00000000..f52cd8aa --- /dev/null +++ b/GameMaker/GameMakerDemo/objects/Text/Text.yy @@ -0,0 +1,38 @@ +{ + "$GMObject":"", + "%Name":"Text", + "eventList":[ + {"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",}, + ], + "managed":true, + "name":"Text", + "overriddenProperties":[], + "parent":{ + "name":"物体", + "path":"folders/物体.yy", + }, + "parentObjectId":null, + "persistent":false, + "physicsAngularDamping":0.1, + "physicsDensity":0.5, + "physicsFriction":0.2, + "physicsGroup":1, + "physicsKinematic":false, + "physicsLinearDamping":0.1, + "physicsObject":false, + "physicsRestitution":0.1, + "physicsSensor":false, + "physicsShape":1, + "physicsShapePoints":[], + "physicsStartAwake":true, + "properties":[], + "resourceType":"GMObject", + "resourceVersion":"2.0", + "solid":false, + "spriteId":{ + "name":"WhiteSprite", + "path":"sprites/WhiteSprite/WhiteSprite.yy", + }, + "spriteMaskId":null, + "visible":true, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/android/options_android.yy b/GameMaker/GameMakerDemo/options/android/options_android.yy new file mode 100644 index 00000000..71091201 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/android/options_android.yy @@ -0,0 +1,81 @@ +{ + "$GMAndroidOptions":"", + "%Name":"Android", + "name":"Android", + "option_android_application_tag_inject":"", + "option_android_arch_arm64":true, + "option_android_arch_armv7":false, + "option_android_arch_x86_64":false, + "option_android_attribute_allow_backup":false, + "option_android_build_tools":"", + "option_android_compile_sdk":"", + "option_android_device_support":0, + "option_android_display_name":"Created with GameMaker", + "option_android_facebook_app_display_name":"", + "option_android_facebook_id":"", + "option_android_gamepad_support":true, + "option_android_google_apk_expansion":false, + "option_android_google_cloud_saving":false, + "option_android_google_dynamic_asset_delivery":false, + "option_android_google_licensing_public_key":"", + "option_android_google_services_app_id":"", + "option_android_icon_adaptivebg_hdpi":"${base_options_dir}/android/icons_adaptivebg/hdpi.png", + "option_android_icon_adaptivebg_ldpi":"${base_options_dir}/android/icons_adaptivebg/ldpi.png", + "option_android_icon_adaptivebg_mdpi":"${base_options_dir}/android/icons_adaptivebg/mdpi.png", + "option_android_icon_adaptivebg_xhdpi":"${base_options_dir}/android/icons_adaptivebg/xhdpi.png", + "option_android_icon_adaptivebg_xxhdpi":"${base_options_dir}/android/icons_adaptivebg/xxhdpi.png", + "option_android_icon_adaptivebg_xxxhdpi":"${base_options_dir}/android/icons_adaptivebg/xxxhdpi.png", + "option_android_icon_adaptive_generate":false, + "option_android_icon_adaptive_hdpi":"${base_options_dir}/android/icons_adaptive/hdpi.png", + "option_android_icon_adaptive_ldpi":"${base_options_dir}/android/icons_adaptive/ldpi.png", + "option_android_icon_adaptive_mdpi":"${base_options_dir}/android/icons_adaptive/mdpi.png", + "option_android_icon_adaptive_xhdpi":"${base_options_dir}/android/icons_adaptive/xhdpi.png", + "option_android_icon_adaptive_xxhdpi":"${base_options_dir}/android/icons_adaptive/xxhdpi.png", + "option_android_icon_adaptive_xxxhdpi":"${base_options_dir}/android/icons_adaptive/xxxhdpi.png", + "option_android_icon_hdpi":"${base_options_dir}/android/icons/hdpi.png", + "option_android_icon_ldpi":"${base_options_dir}/android/icons/ldpi.png", + "option_android_icon_mdpi":"${base_options_dir}/android/icons/mdpi.png", + "option_android_icon_xhdpi":"${base_options_dir}/android/icons/xhdpi.png", + "option_android_icon_xxhdpi":"${base_options_dir}/android/icons/xxhdpi.png", + "option_android_icon_xxxhdpi":"${base_options_dir}/android/icons/xxxhdpi.png", + "option_android_install_location":0, + "option_android_interpolate_pixels":false, + "option_android_launchscreen_fill":0, + "option_android_lint":false, + "option_android_logcat":"yoyo:V DEBUG:V AndroidRuntime:V", + "option_android_minimum_sdk":"", + "option_android_orient_landscape":true, + "option_android_orient_landscape_flipped":true, + "option_android_orient_portrait":true, + "option_android_orient_portrait_flipped":true, + "option_android_package_company":"company", + "option_android_package_domain":"com", + "option_android_package_product":"game", + "option_android_permission_bluetooth":true, + "option_android_permission_internet":true, + "option_android_permission_network_state":false, + "option_android_permission_read_phone_state":false, + "option_android_permission_record_audio":false, + "option_android_permission_write_external_storage":false, + "option_android_proguard_minifying":false, + "option_android_proguard_shrinking":false, + "option_android_scale":0, + "option_android_screen_depth":0, + "option_android_sleep_margin":4, + "option_android_splashscreen_background_colour":255, + "option_android_splash_screens_landscape":"${base_options_dir}/android/splash/landscape.png", + "option_android_splash_screens_portrait":"${base_options_dir}/android/splash/portrait.png", + "option_android_splash_time":0, + "option_android_support_lib":"", + "option_android_sync_amazon":false, + "option_android_target_sdk":"", + "option_android_texture_page":"2048x2048", + "option_android_tools_from_version":false, + "option_android_tv_banner":"${base_options_dir}/android/tv_banner.png", + "option_android_tv_isgame":true, + "option_android_tv_supports_leanback":true, + "option_android_use_facebook":false, + "option_android_version":"1.0.0.0", + "resourceType":"GMAndroidOptions", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/html5/options_html5.yy b/GameMaker/GameMakerDemo/options/html5/options_html5.yy new file mode 100644 index 00000000..513ff1d3 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/html5/options_html5.yy @@ -0,0 +1,35 @@ +{ + "$GMHtml5Options":"", + "%Name":"HTML5", + "name":"HTML5", + "option_html5_allow_fullscreen":true, + "option_html5_browser_title":"Created with GameMaker", + "option_html5_centregame":false, + "option_html5_display_cursor":true, + "option_html5_facebook_app_display_name":"", + "option_html5_facebook_id":"", + "option_html5_flurry_enable":false, + "option_html5_flurry_id":"", + "option_html5_foldername":"html5game", + "option_html5_google_analytics_enable":false, + "option_html5_google_tracking_id":"", + "option_html5_icon":"${base_options_dir}/html5/fav.ico", + "option_html5_index":"", + "option_html5_interpolate_pixels":true, + "option_html5_jsprepend":"", + "option_html5_loadingbar":"", + "option_html5_localrunalert":true, + "option_html5_outputdebugtoconsole":true, + "option_html5_outputname":"index.html", + "option_html5_scale":0, + "option_html5_splash_png":"${base_options_dir}/html5/splash.png", + "option_html5_texture_page":"2048x2048", + "option_html5_usebuiltinfont":true, + "option_html5_usebuiltinparticles":true, + "option_html5_usesplash":false, + "option_html5_use_facebook":false, + "option_html5_version":"1.0.0.0", + "option_html5_webgl":2, + "resourceType":"GMHtml5Options", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/ios/options_ios.yy b/GameMaker/GameMakerDemo/options/ios/options_ios.yy new file mode 100644 index 00000000..b4859541 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/ios/options_ios.yy @@ -0,0 +1,49 @@ +{ + "$GMiOSOptions":"v1", + "%Name":"iOS", + "name":"iOS", + "option_ios_build_number":0, + "option_ios_bundle_name":"com.company.game", + "option_ios_defer_home_indicator":false, + "option_ios_devices":2, + "option_ios_display_name":"Created with GameMaker", + "option_ios_enable_broadcast":false, + "option_ios_half_ipad1_textures":false, + "option_ios_icon_ipad_app_152":"${base_options_dir}/ios/icons/app/ipad_152.png", + "option_ios_icon_ipad_app_76":"${base_options_dir}/ios/icons/app/ipad_76.png", + "option_ios_icon_ipad_notification_20":"${base_options_dir}/ios/icons/notification/ipad_20.png", + "option_ios_icon_ipad_notification_40":"${base_options_dir}/ios/icons/notification/ipad_40.png", + "option_ios_icon_ipad_pro_app_167":"${base_options_dir}/ios/icons/app/ipad_pro_167.png", + "option_ios_icon_ipad_settings_29":"${base_options_dir}/ios/icons/settings/ipad_29.png", + "option_ios_icon_ipad_settings_58":"${base_options_dir}/ios/icons/settings/ipad_58.png", + "option_ios_icon_ipad_spotlight_40":"${base_options_dir}/ios/icons/spotlight/ipad_40.png", + "option_ios_icon_ipad_spotlight_80":"${base_options_dir}/ios/icons/spotlight/ipad_80.png", + "option_ios_icon_iphone_app_120":"${base_options_dir}/ios/icons/app/iphone_120.png", + "option_ios_icon_iphone_app_180":"${base_options_dir}/ios/icons/app/iphone_180.png", + "option_ios_icon_iphone_notification_40":"${base_options_dir}/ios/icons/notification/iphone_40.png", + "option_ios_icon_iphone_notification_60":"${base_options_dir}/ios/icons/notification/iphone_60.png", + "option_ios_icon_iphone_settings_58":"${base_options_dir}/ios/icons/settings/iphone_58.png", + "option_ios_icon_iphone_settings_87":"${base_options_dir}/ios/icons/settings/iphone_87.png", + "option_ios_icon_iphone_spotlight_120":"${base_options_dir}/ios/icons/spotlight/iphone_120.png", + "option_ios_icon_iphone_spotlight_80":"${base_options_dir}/ios/icons/spotlight/iphone_80.png", + "option_ios_icon_itunes_artwork_1024":"${base_options_dir}/ios/icons/itunes/itunes_1024.png", + "option_ios_interpolate_pixels":false, + "option_ios_launchscreen_fill":0, + "option_ios_launchscreen_image":"${base_options_dir}/ios/splash/launchscreen.png", + "option_ios_launchscreen_image_landscape":"${base_options_dir}/ios/splash/launchscreen-landscape.png", + "option_ios_min_version":"10.0", + "option_ios_orientation_landscape":true, + "option_ios_orientation_landscape_flipped":true, + "option_ios_orientation_portrait":true, + "option_ios_orientation_portrait_flipped":true, + "option_ios_output_dir":"~/gamemakerstudio2", + "option_ios_podfile_lock_path":"${options_dir}/ios/Podfile.lock", + "option_ios_podfile_path":"${options_dir}/ios/Podfile", + "option_ios_scale":0, + "option_ios_splashscreen_background_colour":255, + "option_ios_team_id":"", + "option_ios_texture_page":"2048x2048", + "option_ios_version":"1.0.0.0", + "resourceType":"GMiOSOptions", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/linux/options_linux.yy b/GameMaker/GameMakerDemo/options/linux/options_linux.yy new file mode 100644 index 00000000..94218d35 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/linux/options_linux.yy @@ -0,0 +1,26 @@ +{ + "$GMLinuxOptions":"", + "%Name":"Linux", + "name":"Linux", + "option_linux_allow_fullscreen":false, + "option_linux_disable_sandbox":false, + "option_linux_display_cursor":true, + "option_linux_display_name":"Created with GameMaker", + "option_linux_display_splash":false, + "option_linux_enable_steam":false, + "option_linux_homepage":"http://www.yoyogames.com", + "option_linux_icon":"${base_options_dir}/linux/icons/64.png", + "option_linux_interpolate_pixels":true, + "option_linux_long_desc":"", + "option_linux_maintainer_email":"", + "option_linux_resize_window":false, + "option_linux_scale":0, + "option_linux_short_desc":"", + "option_linux_splash_screen":"${base_options_dir}/linux/splash/splash.png", + "option_linux_start_fullscreen":false, + "option_linux_sync":false, + "option_linux_texture_page":"2048x2048", + "option_linux_version":"1.0.0.0", + "resourceType":"GMLinuxOptions", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/mac/options_mac.yy b/GameMaker/GameMakerDemo/options/mac/options_mac.yy new file mode 100644 index 00000000..8f66f681 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/mac/options_mac.yy @@ -0,0 +1,38 @@ +{ + "$GMMacOptions":"", + "%Name":"macOS", + "name":"macOS", + "option_mac_allow_fullscreen":false, + "option_mac_allow_incoming_network":false, + "option_mac_allow_outgoing_network":false, + "option_mac_apple_sign_in":false, + "option_mac_app_category":"Games", + "option_mac_app_id":"com.company.game", + "option_mac_arm64":true, + "option_mac_build_app_store":false, + "option_mac_build_number":0, + "option_mac_copyright":"", + "option_mac_disable_sandbox":false, + "option_mac_display_cursor":true, + "option_mac_display_name":"Created with GameMaker", + "option_mac_enable_retina":false, + "option_mac_enable_steam":false, + "option_mac_icon_png":"${base_options_dir}/mac/icons/1024.png", + "option_mac_installer_background_png":"${base_options_dir}/mac/splash/installer_background.png", + "option_mac_interpolate_pixels":true, + "option_mac_menu_dock":false, + "option_mac_min_version":"10.10", + "option_mac_output_dir":"~/gamemakerstudio2", + "option_mac_resize_window":false, + "option_mac_scale":0, + "option_mac_signing_identity":"Developer ID Application:", + "option_mac_splash_png":"${base_options_dir}/mac/splash/splash.png", + "option_mac_start_fullscreen":false, + "option_mac_team_id":"", + "option_mac_texture_page":"2048x2048", + "option_mac_version":"1.0.0.0", + "option_mac_vsync":false, + "option_mac_x86_64":true, + "resourceType":"GMMacOptions", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/options/tvos/options_tvos.yy b/GameMaker/GameMakerDemo/options/tvos/options_tvos.yy new file mode 100644 index 00000000..1b7fc167 --- /dev/null +++ b/GameMaker/GameMakerDemo/options/tvos/options_tvos.yy @@ -0,0 +1,31 @@ +{ + "$GMtvOSOptions":"v1", + "%Name":"tvOS", + "name":"tvOS", + "option_tvos_build_number":0, + "option_tvos_bundle_name":"com.company.game", + "option_tvos_display_cursor":false, + "option_tvos_display_name":"Made in GameMaker", + "option_tvos_enable_broadcast":false, + "option_tvos_icon_1280":"${base_options_dir}/tvos/icons/1280.png", + "option_tvos_icon_400":"${base_options_dir}/tvos/icons/400.png", + "option_tvos_icon_400_2x":"${base_options_dir}/tvos/icons/400_2x.png", + "option_tvos_interpolate_pixels":true, + "option_tvos_min_version":"10.0", + "option_tvos_output_dir":"~/GameMakerStudio2/tvOS", + "option_tvos_podfile_lock_path":"${options_dir}\\tvos\\Podfile.lock", + "option_tvos_podfile_path":"${options_dir}\\tvos\\Podfile", + "option_tvos_scale":0, + "option_tvos_splashscreen":"${base_options_dir}/tvos/splash/splash.png", + "option_tvos_splashscreen_2x":"${base_options_dir}/tvos/splash/splash_2x.png", + "option_tvos_splash_time":0, + "option_tvos_team_id":"", + "option_tvos_texture_page":"2048x2048", + "option_tvos_topshelf":"${base_options_dir}/tvos/topshelf/topshelf.png", + "option_tvos_topshelf_2x":"${base_options_dir}/tvos/topshelf/topshelf_2x.png", + "option_tvos_topshelf_wide":"${base_options_dir}/tvos/topshelf/topshelf_wide.png", + "option_tvos_topshelf_wide_2x":"${base_options_dir}/tvos/topshelf/topshelf_wide_2x.png", + "option_tvos_version":"1.0.0.0", + "resourceType":"GMtvOSOptions", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/rooms/DialogRoom/DialogRoom.yy b/GameMaker/GameMakerDemo/rooms/DialogRoom/DialogRoom.yy index e0462105..f3338fb8 100644 --- a/GameMaker/GameMakerDemo/rooms/DialogRoom/DialogRoom.yy +++ b/GameMaker/GameMakerDemo/rooms/DialogRoom/DialogRoom.yy @@ -21,7 +21,7 @@ {"$GMRInstanceLayer":"","%Name":"Instances","depth":100,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"instances":[ {"$GMRInstance":"v1","%Name":"inst_7BEA43B2","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_7BEA43B2","objectId":{"name":"ShowMenuDialogButton","path":"objects/ShowMenuDialogButton/ShowMenuDialogButton.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.22532588,"scaleY":0.22891566,"x":1120.0,"y":32.0,}, ],"layers":[],"name":"Instances","properties":[],"resourceType":"GMRInstanceLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,}, - {"$GMRBackgroundLayer":"","%Name":"Background","animationFPS":15.0,"animationSpeedType":0,"colour":4278190080,"depth":200,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Background","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,}, + {"$GMRBackgroundLayer":"","%Name":"Background","animationFPS":30.0,"animationSpeedType":0,"colour":4294967295,"depth":200,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":true,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Background","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":{"name":"WhiteSprite","path":"sprites/WhiteSprite/WhiteSprite.yy",},"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":true,"x":0,"y":0,}, ], "name":"DialogRoom", "parent":{ diff --git a/GameMaker/GameMakerDemo/rooms/MainRoom/MainRoom.yy b/GameMaker/GameMakerDemo/rooms/MainRoom/MainRoom.yy index c025114e..4dac8d47 100644 --- a/GameMaker/GameMakerDemo/rooms/MainRoom/MainRoom.yy +++ b/GameMaker/GameMakerDemo/rooms/MainRoom/MainRoom.yy @@ -10,6 +10,10 @@ {"name":"inst_6422C178","path":"rooms/MainRoom/MainRoom.yy",}, {"name":"inst_42BFFD00","path":"rooms/MainRoom/MainRoom.yy",}, {"name":"inst_5B0B8F21","path":"rooms/MainRoom/MainRoom.yy",}, + {"name":"inst_DB44CB5","path":"rooms/MainRoom/MainRoom.yy",}, + {"name":"inst_4BA31E90","path":"rooms/MainRoom/MainRoom.yy",}, + {"name":"inst_7D261864","path":"rooms/MainRoom/MainRoom.yy",}, + {"name":"inst_78C15D","path":"rooms/MainRoom/MainRoom.yy",}, ], "isDnd":false, "layers":[ @@ -18,6 +22,10 @@ {"$GMRInstance":"v1","%Name":"inst_6422C178","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_6422C178","objectId":{"name":"DialogBox","path":"objects/DialogBox/DialogBox.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.55643564,"scaleY":0.62352943,"x":0.0,"y":0.0,}, {"$GMRInstance":"v1","%Name":"inst_42BFFD00","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_42BFFD00","objectId":{"name":"Button","path":"objects/Button/Button.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.25512105,"scaleY":0.22891566,"x":0.0,"y":320.0,}, {"$GMRInstance":"v1","%Name":"inst_5B0B8F21","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_5B0B8F21","objectId":{"name":"GoToRoomButton","path":"objects/GoToRoomButton/GoToRoomButton.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.22532588,"scaleY":0.22891566,"x":0.0,"y":416.0,}, + {"$GMRInstance":"v1","%Name":"inst_DB44CB5","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_DB44CB5","objectId":{"name":"DatabaseButton","path":"objects/DatabaseButton/DatabaseButton.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.19553073,"scaleY":0.22891566,"x":0.0,"y":512.0,}, + {"$GMRInstance":"v1","%Name":"inst_4BA31E90","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_4BA31E90","objectId":{"name":"ProcessBar","path":"objects/ProcessBar/ProcessBar.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"x":0.0,"y":576.0,}, + {"$GMRInstance":"v1","%Name":"inst_7D261864","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_7D261864","objectId":{"name":"MainRoomInitializeObject","path":"objects/MainRoomInitializeObject/MainRoomInitializeObject.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"x":320.0,"y":0.0,}, + {"$GMRInstance":"v1","%Name":"inst_78C15D","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_78C15D","objectId":{"name":"SetWindowSizeButton","path":"objects/SetWindowSizeButton/SetWindowSizeButton.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":0.25512105,"scaleY":0.22891566,"x":320.0,"y":64.0,}, ],"layers":[],"name":"Instances","properties":[],"resourceType":"GMRInstanceLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,}, {"$GMRBackgroundLayer":"","%Name":"Background","animationFPS":15.0,"animationSpeedType":0,"colour":4278190080,"depth":100,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Background","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,}, ], diff --git a/GameMaker/GameMakerDemo/scripts/TranslationScript/TranslationScript.gml b/GameMaker/GameMakerDemo/scripts/TranslationScript/TranslationScript.gml index 6d767345..e49bac46 100644 --- a/GameMaker/GameMakerDemo/scripts/TranslationScript/TranslationScript.gml +++ b/GameMaker/GameMakerDemo/scripts/TranslationScript/TranslationScript.gml @@ -20,5 +20,9 @@ function Translation(key){ { return "Close Menu"; } - return "get key from Translation method."; + if(key=="DatabaseButtonKey") + { + return "Database Test Button"; + } + return "Can not get value from Translation method."; } \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/sprites/ActiveButtonSprite/ActiveButtonSprite.yy b/GameMaker/GameMakerDemo/sprites/ActiveButtonSprite/ActiveButtonSprite.yy index 84875e6a..04ff7275 100644 --- a/GameMaker/GameMakerDemo/sprites/ActiveButtonSprite/ActiveButtonSprite.yy +++ b/GameMaker/GameMakerDemo/sprites/ActiveButtonSprite/ActiveButtonSprite.yy @@ -42,7 +42,7 @@ ], "top":0, }, - "origin":3, + "origin":0, "parent":{ "name":"Basic", "path":"folders/精灵/Basic.yy", @@ -95,7 +95,7 @@ "visibleRange":null, "volume":1.0, "xorigin":0, - "yorigin":132, + "yorigin":0, }, "swatchColours":null, "swfPrecision":0.5, diff --git a/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/3d8af2fa-d23b-4b43-97b8-530b8df2cfff.png b/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/3d8af2fa-d23b-4b43-97b8-530b8df2cfff.png new file mode 100644 index 0000000000000000000000000000000000000000..c22c67c270a2e174252c6d35a2628571da8e2c83 GIT binary patch literal 660 zcmeAS@N?(olHy`uVBq!ia0y~yV9ExveL2{Ga@a2CEqi4B`cIb_Lo1CD@X@-CY>|gW!U_%O^81Ft&TTIEGZ*dV9@~ z@qhxufenWL*(S8H`WUe8emPO&#ZANOcKi$sp6}lRHUFDw%Ftl2nTqun91nRZCnWN>UO_QmvAUQh^kM zk%5tku7QQFfk}vgk(IH9m64IQfq|8Q!KOMzDHIL4`6-!cmAEw=R-U;Gs6hj6LrG?C cYH>+oZUJsRQ_OZ$0`)L>y85}Sb4q9e0C2dr9RL6T literal 0 HcmV?d00001 diff --git a/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy b/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy new file mode 100644 index 00000000..f2c811f7 --- /dev/null +++ b/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy @@ -0,0 +1,90 @@ +{ + "$GMSprite":"", + "%Name":"BlueProcessBarSprite", + "bboxMode":0, + "bbox_bottom":76, + "bbox_left":0, + "bbox_right":618, + "bbox_top":0, + "collisionKind":1, + "collisionTolerance":0, + "DynamicTexturePage":false, + "edgeFiltering":false, + "For3D":false, + "frames":[ + {"$GMSpriteFrame":"","%Name":"3d8af2fa-d23b-4b43-97b8-530b8df2cfff","name":"3d8af2fa-d23b-4b43-97b8-530b8df2cfff","resourceType":"GMSpriteFrame","resourceVersion":"2.0",}, + ], + "gridX":0, + "gridY":0, + "height":77, + "HTile":false, + "layers":[ + {"$GMImageLayer":"","%Name":"ffc26aae-22d1-4c32-9485-bdda2ed49f54","blendMode":0,"displayName":"default","isLocked":false,"name":"ffc26aae-22d1-4c32-9485-bdda2ed49f54","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,}, + ], + "name":"BlueProcessBarSprite", + "nineSlice":null, + "origin":0, + "parent":{ + "name":"Basic", + "path":"folders/精灵/Basic.yy", + }, + "preMultiplyAlpha":false, + "resourceType":"GMSprite", + "resourceVersion":"2.0", + "sequence":{ + "$GMSequence":"", + "%Name":"BlueProcessBarSprite", + "autoRecord":true, + "backdropHeight":768, + "backdropImageOpacity":0.5, + "backdropImagePath":"", + "backdropWidth":1366, + "backdropXOffset":0.0, + "backdropYOffset":0.0, + "events":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "eventStubScript":null, + "eventToFunction":{}, + "length":1.0, + "lockOrigin":false, + "moments":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "name":"BlueProcessBarSprite", + "playback":1, + "playbackSpeed":30.0, + "playbackSpeedType":0, + "resourceType":"GMSequence", + "resourceVersion":"2.0", + "showBackdrop":true, + "showBackdropImage":false, + "timeUnits":1, + "tracks":[ + {"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore":"","Keyframes":[ + {"$Keyframe":"","Channels":{ + "0":{"$SpriteFrameKeyframe":"","Id":{"name":"3d8af2fa-d23b-4b43-97b8-530b8df2cfff","path":"sprites/BlueProcessBarSprite/BlueProcessBarSprite.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",}, + },"Disabled":false,"id":"7c98be46-86ce-4130-81df-a40a57c18a28","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe","resourceVersion":"2.0","Stretch":false,}, + ],"resourceType":"KeyframeStore","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,}, + ], + "visibleRange":null, + "volume":1.0, + "xorigin":0, + "yorigin":0, + }, + "swatchColours":null, + "swfPrecision":0.5, + "textureGroupId":{ + "name":"Default", + "path":"texturegroups/Default", + }, + "type":0, + "VTile":false, + "width":619, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/layers/3d8af2fa-d23b-4b43-97b8-530b8df2cfff/ffc26aae-22d1-4c32-9485-bdda2ed49f54.png b/GameMaker/GameMakerDemo/sprites/BlueProcessBarSprite/layers/3d8af2fa-d23b-4b43-97b8-530b8df2cfff/ffc26aae-22d1-4c32-9485-bdda2ed49f54.png new file mode 100644 index 0000000000000000000000000000000000000000..c22c67c270a2e174252c6d35a2628571da8e2c83 GIT binary patch literal 660 zcmeAS@N?(olHy`uVBq!ia0y~yV9ExveL2{Ga@a2CEqi4B`cIb_Lo1CD@X@-CY>|gW!U_%O^81Ft&TTIEGZ*dV9@~ z@qhxufenWL*(S8H`WUe8emPO&#ZANOcKi$sp6}lRHUFDw%Ftl2nTqun91nRZCnWN>UO_QmvAUQh^kM zk%5tku7QQFfk}vgk(IH9m64IQfq|8Q!KOMzDHIL4`6-!cmAEw=R-U;Gs6hj6LrG?C cYH>+oZUJsRQ_OZ$0`)L>y85}Sb4q9e0C2dr9RL6T literal 0 HcmV?d00001 diff --git a/GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy b/GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy new file mode 100644 index 00000000..187dccea --- /dev/null +++ b/GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy @@ -0,0 +1,90 @@ +{ + "$GMSprite":"", + "%Name":"EmptyProcessBarSprite", + "bboxMode":0, + "bbox_bottom":59, + "bbox_left":0, + "bbox_right":608, + "bbox_top":0, + "collisionKind":1, + "collisionTolerance":0, + "DynamicTexturePage":false, + "edgeFiltering":false, + "For3D":false, + "frames":[ + {"$GMSpriteFrame":"","%Name":"b76c2fae-604b-4e60-a143-ad7fec0a80a4","name":"b76c2fae-604b-4e60-a143-ad7fec0a80a4","resourceType":"GMSpriteFrame","resourceVersion":"2.0",}, + ], + "gridX":0, + "gridY":0, + "height":60, + "HTile":false, + "layers":[ + {"$GMImageLayer":"","%Name":"35b39b80-616b-4064-a056-eb5c6fe7d631","blendMode":0,"displayName":"default","isLocked":false,"name":"35b39b80-616b-4064-a056-eb5c6fe7d631","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,}, + ], + "name":"EmptyProcessBarSprite", + "nineSlice":null, + "origin":0, + "parent":{ + "name":"Basic", + "path":"folders/精灵/Basic.yy", + }, + "preMultiplyAlpha":false, + "resourceType":"GMSprite", + "resourceVersion":"2.0", + "sequence":{ + "$GMSequence":"", + "%Name":"EmptyProcessBarSprite", + "autoRecord":true, + "backdropHeight":768, + "backdropImageOpacity":0.5, + "backdropImagePath":"", + "backdropWidth":1366, + "backdropXOffset":0.0, + "backdropYOffset":0.0, + "events":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "eventStubScript":null, + "eventToFunction":{}, + "length":1.0, + "lockOrigin":false, + "moments":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "name":"EmptyProcessBarSprite", + "playback":1, + "playbackSpeed":30.0, + "playbackSpeedType":0, + "resourceType":"GMSequence", + "resourceVersion":"2.0", + "showBackdrop":true, + "showBackdropImage":false, + "timeUnits":1, + "tracks":[ + {"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore":"","Keyframes":[ + {"$Keyframe":"","Channels":{ + "0":{"$SpriteFrameKeyframe":"","Id":{"name":"b76c2fae-604b-4e60-a143-ad7fec0a80a4","path":"sprites/EmptyProcessBarSprite/EmptyProcessBarSprite.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",}, + },"Disabled":false,"id":"2bc3c718-74df-4272-828a-80093aeaac41","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe","resourceVersion":"2.0","Stretch":false,}, + ],"resourceType":"KeyframeStore","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,}, + ], + "visibleRange":null, + "volume":1.0, + "xorigin":0, + "yorigin":0, + }, + "swatchColours":null, + "swfPrecision":0.5, + "textureGroupId":{ + "name":"Default", + "path":"texturegroups/Default", + }, + "type":0, + "VTile":false, + "width":609, +} \ No newline at end of file diff --git a/GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/b76c2fae-604b-4e60-a143-ad7fec0a80a4.png b/GameMaker/GameMakerDemo/sprites/EmptyProcessBarSprite/b76c2fae-604b-4e60-a143-ad7fec0a80a4.png new file mode 100644 index 0000000000000000000000000000000000000000..dd28c23a5d04d245627a40942309ae04d8950431 GIT binary patch literal 588 zcmeAS@N?(olHy`uVBq!ia0y~yU`hnCZ8+F~q+V67H;__D_6YK2V5m}KU}$JzVE6?T zYIwoGP-?)y@G60U!D44J>pGOhOEdtPISpj7_x-46F>44J>pGOhOEdtPISpj7_x-46F>", "resourceVersion":"2.0", }, - "name":"DialogBoxSprite", + "name":"WhiteSprite", "playback":1, "playbackSpeed":30.0, "playbackSpeedType":0, @@ -69,7 +69,7 @@ "tracks":[ {"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore":"","Keyframes":[ {"$Keyframe":"","Channels":{ - "0":{"$SpriteFrameKeyframe":"","Id":{"name":"c38fc266-8c85-401d-834e-ef6cc8eb32a4","path":"sprites/DialogBoxSprite/DialogBoxSprite.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",}, + "0":{"$SpriteFrameKeyframe":"","Id":{"name":"c38fc266-8c85-401d-834e-ef6cc8eb32a4","path":"sprites/WhiteSprite/WhiteSprite.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",}, },"Disabled":false,"id":"8370d6f6-ab47-46c6-bbfa-ac208f0906b9","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe","resourceVersion":"2.0","Stretch":false,}, ],"resourceType":"KeyframeStore","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,}, ], diff --git a/GameMaker/GameMakerDemo/sprites/DialogBoxSprite/c38fc266-8c85-401d-834e-ef6cc8eb32a4.png b/GameMaker/GameMakerDemo/sprites/WhiteSprite/c38fc266-8c85-401d-834e-ef6cc8eb32a4.png similarity index 100% rename from GameMaker/GameMakerDemo/sprites/DialogBoxSprite/c38fc266-8c85-401d-834e-ef6cc8eb32a4.png rename to GameMaker/GameMakerDemo/sprites/WhiteSprite/c38fc266-8c85-401d-834e-ef6cc8eb32a4.png diff --git a/GameMaker/GameMakerDemo/sprites/DialogBoxSprite/layers/c38fc266-8c85-401d-834e-ef6cc8eb32a4/f209a174-7531-4ae9-aa39-b52c6696a1a6.png b/GameMaker/GameMakerDemo/sprites/WhiteSprite/layers/c38fc266-8c85-401d-834e-ef6cc8eb32a4/f209a174-7531-4ae9-aa39-b52c6696a1a6.png similarity index 100% rename from GameMaker/GameMakerDemo/sprites/DialogBoxSprite/layers/c38fc266-8c85-401d-834e-ef6cc8eb32a4/f209a174-7531-4ae9-aa39-b52c6696a1a6.png rename to GameMaker/GameMakerDemo/sprites/WhiteSprite/layers/c38fc266-8c85-401d-834e-ef6cc8eb32a4/f209a174-7531-4ae9-aa39-b52c6696a1a6.png