Thiết kế game với GameMaker 8.0 - Tài liệu hướng dẫn của Mark Overmars

Người đăng

Ẩn danh
292
0
0

Phí lưu trữ

55 Point

Tóm tắt

I. Tổng quan về GameMaker Full Pro phiên bản sáng tạo

GameMaker Full Pro là phần mềm thiết kế game chuyên nghiệp do Mark Overmars phát triển. Phiên bản 8.0 đánh dấu bước tiến vượt bậc so với phiên bản 7 trước đó. Phần mềm này cung cấp đầy đủ công cụ để tạo ra các trò chơi điện tử chất lượng cao mà không cần kiến thức lập trình sâu. GameMaker Full Pro hỗ trợ đồ họa alpha-blended, cho phép sprite và background có kênh độ trong suốt. Điều này tạo ra hình ảnh sắc nét và chân thực hơn trong game. Phiên bản Pro còn bổ sung tính năng quản lý news tích hợp, giúp người dùng nắm bắt thông tin cập nhật về phần mềm. Hệ thống tutorial tích hợp sẵn hỗ trợ người mới bắt đầu tiếp cận nhanh chóng. Giao diện khởi động mặc định toàn màn hình giúp trải nghiệm làm việc tập trung hơn. Các sprite chất lượng cao được đóng gói sẵn cùng phần mềm, tiết kiệm thời gian thiết kế đồ họa. Công cụ chỉnh sửa sprite và ảnh được viết lại hoàn toàn với nhiều tùy chọn vẽ và hiệu ứng mới. GameMaker Full Pro phù hợp cho cả người mới lẫn nhà phát triển game chuyên nghiệp muốn sáng tạo sản phẩm chất lượng.

1.1. Lịch sử phát triển và các cải tiến cốt lõi

Game Maker ra đời nhằm đơn giản hóa quá trình phát triển game cho mọi đối tượng. Phiên bản 8.0 mang đến nhiều thay đổi căn bản về kiến trúc nội bộ. Cơ chế xử lý sprite và background được xây dựng lại hoàn toàn từ đầu. Lỗi nghiêm trọng liên quan đến sự kiện va chạm thực thi hai lần đã được khắc phục. Cơ chế timeline được cải tiến, tách biệt hành động gán và khởi động timeline. Sự thay đổi này mang lại khả năng kiểm soát luồng trò chơi tốt hơn. Splash screen web mới hỗ trợ hiển thị tài liệu HTML đầy đủ thay thế kiểu text cũ.

1.2. Đặc điểm nhận diện GameMaker Full Pro sáng tạo

Phiên bản Pro khác biệt rõ ràng so với bản thường ở nhiều tính năng quan trọng. Tùy chọn tắt trang News khi khởi động chỉ có trong Pro Edition. Khả năng tạo file thực thi độc lập giúp phân phối game dễ dàng hơn. Người dùng Pro có thể tùy chỉnh icon cho file game xuất ra. Toàn bộ công cụ chỉnh sửa ảnh và sprite nâng cao đều được mở khóa đầy đủ. Tính năng kiểm tra va chạm nâng cao với hình đĩa tròn và bounding box tùy chỉnh cũng thuộc phiên bản này.

II. Phân tích tính năng GameMaker Full Pro dành cho sáng tạo

GameMaker Full Pro cung cấp hệ thống sự kiện phong phú giúp tạo ra gameplay đa dạng. Sự kiện bàn phím cho phép phản hồi từng phím riêng lẻ hoặc nhóm phím kết hợp. Phím đặc biệt như No Key và Any Key mở rộng khả năng điều khiển linh hoạt. Sự kiện chuột được xử lý chi tiết với các loại click trái, phải, giữa. Sự kiện khi chuột vào hoặc rời khỏi vùng đối tượng tạo ra tương tác phong phú hơn. Hệ thống va chạm được cải tiến mạnh mẽ với nhiều tùy chọn kiểm tra khác nhau. Người dùng có thể chỉ định vùng va chạm là hình đĩa tròn thay vì hình chữ nhật mặc định. Bounding box có thể tùy chỉnh chính xác theo từng sprite. Mask tổng hợp cho sub-image sprite giúp tối ưu hiệu năng va chạm. Độ trong suốt alpha có thể ảnh hưởng trực tiếp đến vùng va chạm, tăng độ chính xác. Các tính năng này kết hợp với nhau tạo ra nền tảng vững chắc cho mọi thể loại game. Nhà phát triển game sáng tạo sẽ tìm thấy trong GameMaker Full Pro đủ công cụ để hiện thực hóa ý tưởng phức tạp.

2.1. Hệ thống sự kiện bàn phím và chuột chuyên sâu

Sự kiện bàn phím trong GameMaker Full Pro hoạt động theo từng bước (step) của game. Khi giữ phím, sự kiện được kích hoạt liên tục trong mỗi frame. Phím NumLock phải được bật để các phím số bên phải hoạt động đúng. Sự kiện chuột chỉ xảy ra khi con trỏ nằm trong vùng sprite của đối tượng. Sự kiện nhấn chuột chỉ xảy ra một lần ngay khi nhấn, không lặp lại. Sự kiện thả chuột được kích hoạt duy nhất khi nhả phím chuột. Global mouse events cho phép phát hiện chuột ở bất kỳ vị trí nào trên màn hình.

2.2. Kiểm tra va chạm nâng cao và xử lý alpha

Hệ thống va chạm mới trong phiên bản 8.0 cung cấp độ chính xác vượt trội. Tùy chọn va chạm hình đĩa (enclosed disk) phù hợp với nhân vật tròn như bóng. Bounding box tùy chỉnh giúp điều chỉnh vùng va chạm độc lập với hình ảnh. Sub-image có thể dùng mask kết hợp để tối ưu hóa phát hiện va chạm. Kênh alpha trong sprite ảnh hưởng trực tiếp đến vùng va chạm khi được bật. Tính năng này đặc biệt hữu ích khi làm việc với sprite có viền trong suốt phức tạp.

III. Phương pháp tối ưu sử dụng GameMaker Full Pro sáng tạo

Quy trình làm việc hiệu quả với GameMaker Full Pro bắt đầu từ việc lên kế hoạch rõ ràng. Xác định thể loại game trước khi thiết kế sự kiện và đối tượng giúp tiết kiệm thời gian. Tận dụng bộ sprite chất lượng cao đi kèm phần mềm để nhanh chóng có prototype hoạt động. Splash screen web có thể dùng để hiển thị màn hình loading với HTML tùy chỉnh đẹp mắt. Tính năng timeline cần được hiểu đúng với cơ chế mới: gán timeline và khởi động là hai bước tách biệt. Hệ thống sự kiện nên được tổ chức gọn gàng, tránh đặt logic phức tạp trong các sự kiện cơ bản. Sử dụng global mouse events khi cần phát hiện click ngoài vùng sprite đối tượng. Tối ưu hóa kiểm tra va chạm bằng cách chọn đúng loại mask phù hợp với hình dạng đối tượng. Extension package cần cài đặt lại hoàn toàn khi nâng cấp từ phiên bản 7 lên 8. Lưu trữ project dưới dạng file nén kèm readme khi phân phối cho người khác. Upload game lên YoYo Games giúp tiếp cận cộng đồng người chơi rộng lớn. Tạo installer chuyên nghiệp thay vì chỉ chia sẻ file exe thô giúp trải nghiệm người dùng tốt hơn.

3.1. Quy trình xuất bản và phân phối game hoàn chỉnh

Tạo file thực thi độc lập trong GameMaker Full Pro chỉ cần vài bước đơn giản. Vào menu File, chọn Create Executable và đặt tên file theo ý muốn. Icon game có thể thay đổi trong phần Global Game Settings để tạo thương hiệu riêng. File exe tạo ra có thể phân phối tự do, kể cả bán thương mại. Tuy nhiên cần đảm bảo sprite và âm thanh sử dụng trong game có giấy phép phù hợp. Nén file cùng tài liệu hướng dẫn bằng ZIP trước khi chia sẻ là cách làm chuyên nghiệp.

3.2. Nâng cao trải nghiệm sáng tạo với tính năng Pro

Phiên bản Pro mở khóa toàn bộ trình chỉnh sửa sprite và ảnh với các hiệu ứng nâng cao. Bộ selector sprite mới hiển thị trực tiếp animation trong từng sprite khi chọn. Có thể tắt trang News khi khởi động để tập trung làm việc không bị gián đoạn. Chế độ toàn màn hình mặc định giúp tận dụng tối đa không gian làm việc. GameMaker nhớ thiết lập cửa sổ từ lần trước, không cần chỉnh lại mỗi lần mở. Tutorial tích hợp có thể tắt vĩnh viễn khi người dùng đã thành thạo phần mềm.

IV. Kết luận và ứng dụng GameMaker Full Pro trong sáng tạo

GameMaker Full Pro phiên bản 8.0 là công cụ sáng tạo game toàn diện dành cho mọi cấp độ người dùng. Những cải tiến về đồ họa alpha-blended tạo ra sự khác biệt rõ rệt về chất lượng hình ảnh. Hệ thống va chạm nâng cao giúp nhà phát triển xây dựng gameplay chính xác hơn. Cơ chế timeline được chuẩn hóa mang lại khả năng kiểm soát chuỗi sự kiện phức tạp. Phần mềm phù hợp rộng rãi với nhiều thể loại game khác nhau từ đơn giản đến phức tạp. Bộ sprite miễn phí đi kèm giúp người mới bắt đầu có ngay tài nguyên để thực hành. Khả năng xuất file exe độc lập và phân phối tự do là lợi thế thương mại lớn. Cộng đồng YoYo Games cung cấp nền tảng chia sẻ và nhận phản hồi từ người chơi thực. Extension package mở rộng chức năng phần mềm vượt ra ngoài giới hạn mặc định. GameMaker Full Pro thể hiện triết lý thiết kế: sức mạnh chuyên nghiệp trong gói công cụ thân thiện. Đây là nền tảng lý tưởng để biến ý tưởng sáng tạo thành sản phẩm game hoàn chỉnh. Với đầy đủ tính năng và tài liệu hỗ trợ, GameMaker Full Pro xứng đáng là lựa chọn hàng đầu cho nhà phát triển game độc lập.

4.1. Đánh giá tổng thể hiệu quả sáng tạo với GameMaker

GameMaker Full Pro rút ngắn đáng kể thời gian từ ý tưởng đến sản phẩm hoàn chỉnh. Tính năng trực quan giúp người không chuyên lập trình vẫn tạo được game chất lượng. Công cụ vẫn đủ mạnh để đáp ứng yêu cầu của nhà phát triển game có kinh nghiệm. Sự kết hợp giữa giao diện kéo-thả và khả năng lập trình script tạo ra sự linh hoạt cao. Hệ sinh thái tài nguyên phong phú từ cộng đồng người dùng toàn cầu là tài sản quý giá. GameMaker Full Pro tiếp tục là lựa chọn đáng tin cậy trong lĩnh vực phát triển game indie.

4.2. Định hướng phát triển dự án game sáng tạo lâu dài

Dự án game sáng tạo cần kế hoạch dài hạn về nội dung, đồ họa và cơ chế gameplay. GameMaker Full Pro cung cấp nền tảng ổn định để mở rộng dự án theo thời gian. Việc sử dụng extension package giúp tích hợp các chức năng đặc thù chưa có sẵn. Lưu trữ phiên bản cũ song song với phiên bản mới tránh mất code khi nâng cấp. Phân phối qua nhiều kênh như website, YoYo Games và cửa hàng ứng dụng tối đa hóa tiếp cận. Xây dựng cộng đồng người chơi ngay từ đầu giúp dự án phát triển bền vững và có định hướng rõ ràng.

21/04/2026

Trích đoạn nội dung tài liệu

Designing Games with Game Maker Version 8.0 Written by Mark Overmars What is New Version 8.0 of Game Maker has a large number of improvements over version 7. Below the most important changes are described. Incompatibilities Text splash screens can no longer show images. However, web splash screens have been added that can show full html documents with images, etc. A number of changes have been made to the functions related to sprite and background resources. This is due to the fact that Game Maker uses a completely new mechanism for these resources. If your game uses a lot of calls to functions that load or save image resources on the fly you are strongly recommended to keep using the old version 7.0 for that game. If you use extension packages you will have to reinstall them. Some changes have been made to the timeline mechanism that can lead to incompatibilities. In particular, assigning a timeline and starting it are now two separate things. An important bug has been solved in which collision events where executed twice if two objects have collision events with each other. Some games however might have relied on this bug and, hence, might no longer function correctly. News Game Maker now default shows a News page when it is started. Here new versions will be announced, new resources will be indicated, there is information about competition, and game design tips and tricks. News is shown only once a day. In the Pro Edition this can be switched off. You can always access the news through the Help menu and you are encouraged to regularly check the news for important information about Game Maker. Tutorial Game Maker now has a standard built-in tutorial for beginners. It is shown in a panel at the right of the screen. Experienced users can indicate that they do not want to see the tutorial anymore. To accommodate for the tutorial panel, Game Maker is now default started in full screen mode. It does however remember its settings so changing it once to windowed mode will from that moment on start it in that mode. Alpha-blended backgrounds and sprites The new version Game Maker uses backgrounds and sprites with alpha (transparency) channels. This makes it possible to create and use much nicer sprites. PNG files with such information are now correctly loaded. The sprite and image editor have been completely rewritten, including many new drawing options and effects. A new sprite file selector was added that shows the animations in the sprites. Also we bundle a large number of high-quality sprites with Game Maker that you can use for free in your games. Enhanced collision checking You now have more collision checking options. For example, you can indicate that collisions should be with an enclosed disk and you have better control over the bounding box. The sub-image of the sprite can have a combined mask and you can set the dependence on the alpha transparency value. Splash screens A new function splash_show_web(url,delay) has been added that can be used to show web pages as splash screens. You can also use local html pages for this. This allows for a powerful mechanism to e. create help pages. A close button is added to the splash screens. Also a number of new actions have been added to show the different types of splash pages and to change splash settings. (The old Show Video and Webpage actions have been removes as the new actions include them. They will though still work in old games.) Trigger events A new type of event has been introduced: Trigger events. Trigger events you can specify yourself. You give them a name and a condition, written in GML. After this they can be used in all objects, just like other events. With this you can easily extend the functionality of Game Maker. Time lines The timelines have been extended. The property form has additional buttons to e. spread out the moments and to delete or duplicate ranges of moments. Timelines can now be paused and restarted and they can even be played backwards. Also they can now loop automatically. Importing and exporting resources The possibility to merge games has been replaced by a much more extensive system to import and export resources. The user can indicate which resources to export to a file (. Next they can be imported in a different game. In principle only one resource can exist for each name. When there is a name conflict when importing the use can specify to keep the original, replace anyway, take the one that is most recently changed, or keep both (not recommended). To be able to do the third option, all resources now keep track of when they were last changed. Rewritten script and code editor The built-in script/code editor has been completely rewritten, making it a lot easier to write code. For example there is pop-up function name completion, argument help, matching brackets, improved color coding, line numbers, on-the-fly error checking, code snippets, and a sophisticated find and replace functionality. Speed improvements The speed of games that use code has been considerably improved. A speed-up of up to 100% is sometimes possible. Also the loading time for games is often considerably improved. Also when running a stand-alone game. Other changes There are a number of other changes and additions. Here are some of the important ones.  You can now use high quality icons for your games.  Constants can now be defined in their own form (rather than through the Global Game Settings). As a result they can remain visible while you are e. You can also load and save the constants to text files.  Also included files are no longer shown in the Global Game Settings but in their own form.  Many small visual improvements  Added function random_range(x1,x2), irandom(x), and irandom_range(x1,x2). The latter do give integer results and can include x or x2.  Added functions mouse_wheel_up and mouse_wheel_down.  Added a function set_application_title(title) to set the title of the application (which is shown in the taskbar).  Added function file_text_eoln().  Added read-only variabe debug_mode.  There is now a game setting to disallow screensavers or powersaving options (sleep, hybernate) while the game is running (default disallowed).  Added functions disk_size(drive) and disk_free(drive) and a variable gamemaker_version.  Runtime error messages better indicate the position of the error  You can now change to location of the temporary files, see the page on Preferences. Corrected bugs The following bugs were corrected. A number of other smaller bugs were corrected as well.  An error message when starting the Maker on Vista with Active User Control is now removed.  Corrected a bug that when using Alt many fields in forms became invisible under Vista.  Corrected a bug with action hints not showing in the object and time line forms.  When opening a game or starting a new one, no longer for all open changed resource windows a separate save confirmation question is asked.  Corrected a (sort of) error with the precision of comparison operators in code.  Solved bug with a bad background for the Applies To field in code editor.  Creating a standalone now correctly checks whether there are any rooms.  Replaced all Ctrl+Alt combinatations by Shift+Ctrl because some of combinations are important for German keyboards. Also corrected the shortcut for creating sprites.  In simple modes, short-cuts for hidden resources and menu items now are disabled as well. Also the Scripts menu is hidden.  Corrected a bug in the function window_get_color().  Increased the limit on the number of vertices in drawing 3D primitives for models from 1000 to 32000.  Corrected a bug in ignoring z-value for model vertices.  Corrected the Outside View and Boundary View events.  Game will now run (with warning) when there is no enabled sound card.  When the game window looses focus, io events like key presses are now cleared.  Corrected and improved error reporting for the creation code of rooms and instances in rooms.  room_tile_add and room_tile_add_ext now correctly set the blending color to white and return the correct tile index.  Now correctly setting the application title to the file name.  Corrected a bug in draw_line_width_color when the length is 0.  Tiles with negative scale factors are now correctly drawn.  Changed the reading and writing of reals in text files. As decimal separator now always a dot is used. However, when reading, both a dot or comma are accepted.  A group of resources that is empty will now have the correct closed folder icon.  Solved the problem with the flashing of the resource tree.  Functions string and string_format no longer crash when the number is too large and they will return the string ERROR.  Long paths are now correctly drawn with draw_path.  Collapsing the resource tree now works correctly.  In an if condition, a value of 0.5 is now treated as true.  Solved a bug that sometimes occured when pressing the ~ key.  sign() function now correctly returns 0 when the argument is 0.  In the path editor, when choosing a room, clicking outside the menu no longer clears the room.  Slightly enlarged the debug form to show all toolbar icons. Also made the watch grid columns scale when the form resizes.  Corrected a bug that can cause a crash when resizing the game window to 0 height.  Solved a bug in ds_grid_add/multiply/set_grid_region.  Calls to scripts and extension functions now return a value of 0 when they do not assign a return value themselves.  Solved a serious bug in which collision events where executed twice if two objects have collision events with each other.  Solved a bug in draw_text_ext with empty lines (multiple #) and a problem with drawing strings that contains CR-LF pairs (when using multiline strings in code).  Read-only files can now be used as included files without errors. Using Game Maker Game Maker is an easy to use program for creating your own computer games. This section of the help file gives you all the information you need for creating your first games. Later sections will discuss more advanced topics, how to polish and distribute your game, and the built-in programming language GML that considerably extends the possibilities. So you want to create your own computer games Playing computer games is fun. But it is actually more fun to design your own computer games and let other people play them. In the past, creating computer games was not easy. Commercial computer games you buy nowadays typically take one or two years of development with teams of anywhere between 10 and 50 people. Budgets easily reach millions of dollars. And all these people are highly experienced: programmers, art designers, sound technicians, etc. But Game Maker has changed this. With Game Maker you can create your own computer games quickly without the need to learn a programming language. Of course you should not expect to create your own Halo 4 or Virtua Tennis within a few weeks. But that is also not necessary. The joy of playing a game is not related to its complexity. Simpler games, like Tetris, Bejeweled, Space Invaders, etc. are a lot of fun to play and a lot easier to create. Game Maker offers an intuitive and easy to use drag-and-drop interface that allows you to create your own games very quickly. You can import and create images, sprites (animated images) and sounds and use them. Game Maker is bundled with a considerable collection of such resources to get you started. You can easily define the objects in your game and indicate their behavior, and you can define appealing rooms (levels) in which the game takes place.

Nội dung được bảo vệ bản quyền — Tải xuống đầy đủ