Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for 2024.2 (feb 2024) #102

Merged
merged 179 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
65cb5e2
[General]MAN-950: Debugger page needs to alert the user that there me…
YYBartT Dec 7, 2023
6b7d020
[General] Fixed tag for Declare Temporary Variable
gurpreetsinghmatharoo Dec 8, 2023
3595737
Merge branch 'develop' into develop.gurpreet
gurpreetsinghmatharoo Dec 8, 2023
25491b5
Add link to gm-manual tag page in readme
gurpreetsinghmatharoo Dec 8, 2023
bc8dba9
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2155
gurpreetsinghmatharoo Dec 8, 2023
406d6f5
[General]MAN-952: Add an explanation on the static struct page to exp…
YYBartT Dec 8, 2023
32a85b5
[General] Review PR #74
gurpreetsinghmatharoo Dec 11, 2023
873a64e
[Feature-room_get_info] Added xscale and yscale to instance information
gurpreetsinghmatharoo Dec 11, 2023
caacc07
[General] JSDoc: pass mulitple types into an argument definition
gurpreetsinghmatharoo Dec 11, 2023
04d09ec
Merge pull request #74 from YoYoGames/develop.bart
gurpreetsinghmatharoo Dec 12, 2023
9c500e7
Merge branch 'develop' into develop.gurpreet
gurpreetsinghmatharoo Dec 12, 2023
c1a0b4f
[General] fix for The_Game_Window typo
gurpreetsinghmatharoo Dec 12, 2023
0999ff7
Fixed local link to "C:/users/bart..."
YYBartT Dec 12, 2023
7721905
Merge remote-tracking branch 'origin/develop.bart' into develop.bart
YYBartT Dec 12, 2023
9f42774
Merge pull request #75 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Dec 13, 2023
e21695e
[General] JSDoc multiple arg types syntax fix
gurpreetsinghmatharoo Dec 13, 2023
0e14e6e
[Feature] Updates to how file system variables work
gurpreetsinghmatharoo Dec 13, 2023
bdb0caf
[Feature] Updates to file system; working_directory and program_direc…
gurpreetsinghmatharoo Dec 13, 2023
78ca8c5
Merge pull request #77 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Dec 13, 2023
dc5b38b
[General] remove defaults from room editor prefs
gurpreetsinghmatharoo Dec 13, 2023
4d83912
[general] fixed typos and replaced link
gurpreetsinghmatharoo Dec 18, 2023
efedd5d
[General] script_get_name works on functions and method vars
gurpreetsinghmatharoo Dec 18, 2023
d89f993
[feature] self/other/global are accepted in ref_create
gurpreetsinghmatharoo Dec 18, 2023
edae82b
Merge branch 'develop' into develop.gurpreet
gurpreetsinghmatharoo Dec 19, 2023
b1274a8
[General]Added that you can list multiple data types by separating wi…
YYBartT Dec 19, 2023
b1e230e
[Feature] Update note on font_enable_sdf to say you can still use SDF…
gurpreetsinghmatharoo Dec 21, 2023
22e29e3
[Feature] Mention on dbg_slider(+_int) that CTRL+click allows enterin…
gurpreetsinghmatharoo Dec 21, 2023
d12253f
[General]MAN-948: Depth page needs clarification that minimum and max…
YYBartT Dec 21, 2023
1c0abda
[General]Small changes to Instances page
YYBartT Dec 21, 2023
b4b7ffc
[General]The sample code for http_request is overly complex
YYBartT Jan 3, 2024
66db717
[General]Parent Texture Group does not affect children
YYBartT Jan 3, 2024
ea44d48
Parent Texture Group does not affect children
YYBartT Jan 4, 2024
519fb69
[General]draw_vertex_texture primitives have confusing UV behaviour c…
YYBartT Jan 9, 2024
31f3870
[General]draw_vertex_texture primitives have confusing UV behaviour c…
YYBartT Jan 9, 2024
8018e26
[General]Debugging page links to itself instead of Debugging Preferences
YYBartT Jan 9, 2024
9194590
[General]Standalone ternary operations don't work despite manual clai…
YYBartT Jan 9, 2024
45fc238
[General]
YYBartT Jan 9, 2024
9afc48b
[General]In-Game: mouse_clear() does not detect release state when cl…
YYBartT Jan 9, 2024
b4b505e
[General]Missing/blank section on Reference > Instance Variables page
YYBartT Jan 9, 2024
2fbde3c
[General]Manual Content: buffer_read() page does not explain the requ…
YYBartT Jan 9, 2024
4c54bf7
[Feature]buffer_sizeof can (sometimes) be a compile-time value
YYBartT Jan 10, 2024
b10670a
[General]dbg_button doesn't add a button when ref is a script asset o…
YYBartT Jan 10, 2024
fa98812
[Feature]dbg_section() should have parameter for controlling whether …
YYBartT Jan 10, 2024
fd2b5d4
[Feature]Importing a gif with a single frame uses the default "sprite…
YYBartT Jan 11, 2024
494a874
[Feature]dbg_sprite should have optional width and height parameter
YYBartT Jan 11, 2024
e188c75
[Feature]Add a dbg_real_input() function to be able to change reals
YYBartT Jan 11, 2024
d391ba3
[Feature]GM_is_sandboxed constant to detect whether the game is runni…
YYBartT Jan 11, 2024
dd909a0
[Feature]Function to convert string of a handle into a handle
YYBartT Jan 12, 2024
514fe8b
[Feature]Function to convert string of a handle into a handle
YYBartT Jan 12, 2024
305ed30
[Feature]Add support for enabling borderless fullscreen window mode o…
YYBartT Jan 12, 2024
e76bd4c
[Feature]Add support for enabling borderless fullscreen window mode o…
YYBartT Jan 12, 2024
9f32f04
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4318 and htt…
gurpreetsinghmatharoo Jan 15, 2024
c856d43
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2678
gurpreetsinghmatharoo Jan 15, 2024
b08e2b0
Added text for https://github.com/YoYoGames/GameMaker-Bugs/issues/2655
gurpreetsinghmatharoo Jan 15, 2024
bb89a7d
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2669
gurpreetsinghmatharoo Jan 15, 2024
d4bb32a
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2629
gurpreetsinghmatharoo Jan 15, 2024
85cf980
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2571
gurpreetsinghmatharoo Jan 15, 2024
1bf5e4e
Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2631
gurpreetsinghmatharoo Jan 15, 2024
15ab1ef
[General] Document that you can't create buffers larger than 2 Gibiby…
gurpreetsinghmatharoo Jan 15, 2024
33e0840
[Feature]SWF Precision (bug report)
YYBartT Jan 15, 2024
c14c422
[Feature]Need a way to prevent clicking through the new debug overlay.
YYBartT Jan 15, 2024
0cf4859
[General] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4340
gurpreetsinghmatharoo Jan 16, 2024
1d283d0
[General] Information on packet separation when using raw TCP networking
gurpreetsinghmatharoo Jan 16, 2024
67e1e43
Merge branch 'develop.gurpreet-GMB-2655' into develop.gurpreet
gurpreetsinghmatharoo Jan 16, 2024
85df0dc
[Feature]The function handle() returns an Asset according to Feather,…
YYBartT Jan 16, 2024
58da857
[General] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4364
gurpreetsinghmatharoo Jan 16, 2024
c6e11f7
[Feature] Documented the new Effect "Gaussian Blur"
gurpreetsinghmatharoo Jan 16, 2024
abf0422
[Feature] Updated typeof() - "ref"
gurpreetsinghmatharoo Jan 16, 2024
0c684b3
[Feature]Add gml_pragma( "optimise",...) to allow finer grain control…
YYBartT Jan 16, 2024
351dd43
[Feature]Instance "names" assigned in room editor are numbers, not in…
YYBartT Jan 16, 2024
e3a0012
[Feature] JSON updates
gurpreetsinghmatharoo Jan 17, 2024
aff023f
[Feature] Updated documentation for Gaussian Blur, adding details on …
gurpreetsinghmatharoo Jan 17, 2024
936d26d
[General] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4380
gurpreetsinghmatharoo Jan 17, 2024
4bd8f6c
[Feature] Configuration macros are now inherited
gurpreetsinghmatharoo Jan 17, 2024
7f5c7b3
[Feature] method_get_index() now returns a script function reference
gurpreetsinghmatharoo Jan 17, 2024
1366bb9
[Feature]Add the Garbage Collector stats to show_debug_overlay as an …
YYBartT Jan 17, 2024
4063eaf
[General] remove empty line from kb shorts page
gurpreetsinghmatharoo Jan 18, 2024
e7813b2
[General] Minor improvements to structs/constructors vs objects section
gurpreetsinghmatharoo Jan 18, 2024
88f3cd5
[General] Depth text fix
gurpreetsinghmatharoo Jan 18, 2024
48a1e57
[General] Improvements to the text on the Instances page
gurpreetsinghmatharoo Jan 18, 2024
ed756b9
[General] Improvements to text on Primitives page
gurpreetsinghmatharoo Jan 18, 2024
cb363ec
[General] Improvements on the If Else page
gurpreetsinghmatharoo Jan 18, 2024
3d3699d
[Feature] Improvement to arg descriptions on dbg_sprite
gurpreetsinghmatharoo Jan 18, 2024
a870f43
[Feature] Improvements to handle_parse page
gurpreetsinghmatharoo Jan 18, 2024
66b6a0a
[Feature] Improvements for window borderless fullscreen functions
gurpreetsinghmatharoo Jan 18, 2024
a0020b9
[Function] Small text fix on is_keyboard_used_debug_overlay
gurpreetsinghmatharoo Jan 18, 2024
f691a7a
[Feature] Changed return type of handle_parse to a new variable type …
gurpreetsinghmatharoo Jan 18, 2024
7613798
[Feature] Small improvements to gml_pragma optimise feature
gurpreetsinghmatharoo Jan 18, 2024
c79d84c
[Feature] Small fix to instance name = handle note
gurpreetsinghmatharoo Jan 18, 2024
c3721b4
[Feature] Improvements to The Debug Overlay page
gurpreetsinghmatharoo Jan 18, 2024
3205e95
[Feature]Add a new optional parameter to dbg_text_input() to be able …
YYBartT Jan 18, 2024
c6f725a
[Feature]Add gml_pragma( "optimise",...) to allow finer grain control…
YYBartT Jan 18, 2024
53ed90d
[General] camera_get_view_border_x and camera_get_view_border_y manua…
gurpreetsinghmatharoo Jan 18, 2024
3333caf
[General] Fixed bookmark shortcut on Mac
gurpreetsinghmatharoo Jan 18, 2024
ed22fd9
[General] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4404
gurpreetsinghmatharoo Jan 19, 2024
32823b5
Merge pull request #80 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Jan 19, 2024
0ff3238
[Feature]Building Projects: with() should allow targeting "global" , …
YYBartT Jan 19, 2024
06c2efe
Merge branch 'develop.bart' into develop.bart.own_changes_for_global
YYBartT Jan 19, 2024
2a61543
[Feature]Building Projects: with() should allow targeting "global" , …
YYBartT Jan 19, 2024
a5d50df
Merge branch 'develop' into develop.bart
gurpreetsinghmatharoo Jan 19, 2024
13218fe
Merge pull request #81 from YoYoGames/develop.bart
gurpreetsinghmatharoo Jan 19, 2024
4fa0ae8
[General]Manual+In-Game: Feather/Manual info for audio_destroy_stream…
YYBartT Jan 19, 2024
95f48b2
[Feature] Fixed new window function TOC entries
gurpreetsinghmatharoo Jan 22, 2024
0e027fa
Merge pull request #82 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Jan 22, 2024
e0fd765
Add instance_count to the KEYWORDS comment to keep consistent with ot…
christopherwk210 Jan 22, 2024
7e824a9
Added example to Feather section on Structs
christopherwk210 Jan 22, 2024
c5cde9c
[Feature]String Literal Hash Optimization
YYBartT Jan 23, 2024
f246400
[Feature]Textures that are resized to fit a texture page size end up …
YYBartT Jan 23, 2024
d901a32
[Feature]Included Files Refresh Button
YYBartT Jan 23, 2024
52a3c6e
[General]In-Game: get_string_async() causes games to come out of full…
YYBartT Jan 23, 2024
a0dad61
[Feature]Debugger: [Mac IDE] Unable to use F11 to 'Step into function…
YYBartT Jan 25, 2024
a22c657
[Feature]Vertex Buffer Update Functions
YYBartT Jan 26, 2024
8866d0b
[Feature]Add vertex_submit_ext which takes a known amount of Vertexes
YYBartT Jan 29, 2024
8880361
[General]Add note to for page that explains multiple variable assignm…
YYBartT Jan 29, 2024
dfe608f
[Feature]Audio FX Parameter Tracks
YYBartT Jan 31, 2024
af6920b
[General]variable_clone() doesn't copy script refs in arrays correctly
YYBartT Jan 31, 2024
7d1cc62
[General]Version Format - Expose ProjectTool to end users
YYBartT Feb 1, 2024
85ab51e
[Feature] Sequence Audio FX Parameters review
gurpreetsinghmatharoo Feb 1, 2024
74ca478
Merge pull request #83 from christopherwk210/develop
gurpreetsinghmatharoo Feb 1, 2024
a4b51c7
[General] Changed report button link from contact page to github
gurpreetsinghmatharoo Feb 1, 2024
f74f1d5
Merge branch 'develop' into develop.gurpreet
gurpreetsinghmatharoo Feb 1, 2024
aa527d2
[General] Fixed instance_count keywords and tags
gurpreetsinghmatharoo Feb 1, 2024
ebb4f4a
[General] Updated Feather data types page on Struct.ConstructorName s…
gurpreetsinghmatharoo Feb 1, 2024
2e5bb23
[General] added css appends for index and glossary colours
gurpreetsinghmatharoo Feb 1, 2024
acef45d
[General] Added file for ToC when-closed arrow
gurpreetsinghmatharoo Feb 1, 2024
a394702
[General] Fixed toc when-closed arrow icon, needed rotation
gurpreetsinghmatharoo Feb 1, 2024
c2951f4
Merge pull request #85 from YoYoGames/develop.gurpreet.cssmobilefixces
gurpreetsinghmatharoo Feb 1, 2024
e03705e
[General] Fixed tag for Declare Temp GML Visual action
gurpreetsinghmatharoo Feb 2, 2024
61e2ec9
Merge pull request #86 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 2, 2024
b02ca25
[General] Document that new paths are created closed, not open
gurpreetsinghmatharoo Feb 5, 2024
93e7ed5
[General] Change Declare Temp tag to action_temp_variable
gurpreetsinghmatharoo Feb 5, 2024
843a0ea
Merge pull request #87 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 5, 2024
0fc982b
[General] typo fix on Other Events https://github.com/YoYoGames/GameM…
gurpreetsinghmatharoo Feb 5, 2024
dd5eba9
[General] https://github.com/YoYoGames/GameMaker-Bugs/issues/4502
gurpreetsinghmatharoo Feb 5, 2024
c4f58c0
[General] fixed no-break space code https://github.com/YoYoGames/Game…
gurpreetsinghmatharoo Feb 5, 2024
aafcce7
[General] instance_id is not a real array
gurpreetsinghmatharoo Feb 5, 2024
4332892
[General] ds_grid_copy() applies source size to dest grid
gurpreetsinghmatharoo Feb 7, 2024
0b52e15
[Feature] Review for PR #88
gurpreetsinghmatharoo Feb 7, 2024
e0c8708
Merge pull request #88 from YoYoGames/develop.bart
gurpreetsinghmatharoo Feb 7, 2024
aacb541
Merge branch 'develop' into develop.gurpreet
gurpreetsinghmatharoo Feb 12, 2024
6bd2ca7
Fixed formatting on "Async Events - Steam" example
thennothinghappened Feb 13, 2024
1e28a75
Removed unneeded `if` in `audio_sound_gain` example
thennothinghappened Feb 13, 2024
f29af9c
Fixed `sprite_merge` example calling "`spr_add`
thennothinghappened Feb 13, 2024
f91a6ce
Consistent whitespace on `door_id` example for "**Bitwise Operators**"
thennothinghappened Feb 13, 2024
94bc0a1
Fixed checking instance exists for `point_distance_3d` example
thennothinghappened Feb 13, 2024
5e69c16
Remove unneeded `with` for `collision_rectangle` example
thennothinghappened Feb 13, 2024
bd6dc13
[General] Fixed description of buffer_poke, which was not wrong, but …
gurpreetsinghmatharoo Feb 13, 2024
479255d
Merge pull request #92 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 15, 2024
4539e3a
[General] fixed typo on gpu_set_blendmode_ext_sepalpha
gurpreetsinghmatharoo Feb 22, 2024
ba88e12
[Feature] Update json_parse and json_stringify for new argument (inhi…
gurpreetsinghmatharoo Feb 22, 2024
143c1ea
[General] Fixed argument name on collision_point
gurpreetsinghmatharoo Feb 22, 2024
f880a3c
[Feature] Updated array_concat,intersection,union argument table as p…
gurpreetsinghmatharoo Feb 22, 2024
e6e66a7
[Feature] Removed Warping from Font Editor -> Texture Controls -> Gly…
gurpreetsinghmatharoo Feb 23, 2024
94ea140
[General] Document that load_csv only loads strings; update the example
gurpreetsinghmatharoo Feb 23, 2024
06c32fa
Merge pull request #94 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 26, 2024
b72f598
[Feature]ProjectTool: Expose the tool to end users and document it, s…
YYBartT Feb 26, 2024
d5d1b6a
Merge branch 'develop.bart' into develop.bart_current
YYBartT Feb 26, 2024
110c2c2
Merge branch 'develop.bart.projecttool_wip' into develop.bart_current
YYBartT Feb 26, 2024
92b1ba2
[Feature]ProjectTool: Expose the tool to end users and document it, s…
YYBartT Feb 26, 2024
e2611fe
[General]Font Editor/Inspector: Enabling 'Warping' from the Glyph opt…
YYBartT Feb 26, 2024
3d53d0f
[General]Mac IDE: Suggest changing the keyboard shortcut for GameMake…
YYBartT Feb 26, 2024
76f5074
[Feature] Review for PR #95
gurpreetsinghmatharoo Feb 27, 2024
6c4d7c8
Merge branch 'develop' into develop.bart
gurpreetsinghmatharoo Feb 27, 2024
ba21441
Merge pull request #95 from YoYoGames/develop.bart
gurpreetsinghmatharoo Feb 27, 2024
c975565
[General] Fixed HTML bug on Error Reporting page
gurpreetsinghmatharoo Feb 27, 2024
85b678d
[General] Updated Release Notes page after the FR repo was moved to t…
gurpreetsinghmatharoo Feb 27, 2024
7abf5ce
Merge pull request #97 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 27, 2024
940a631
[General]Mac IDE: Shift-Option-ArrowKeys not behaving as expected dur…
YYBartT Feb 27, 2024
0013d14
Merge branch 'develop.bart_current' into develop.bart
YYBartT Feb 27, 2024
2126e66
[General] Mention that path position is updated post-Step
gurpreetsinghmatharoo Feb 28, 2024
dbe93f7
Merge pull request #100 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Feb 29, 2024
5ca13db
Merge pull request #101 from YoYoGames/develop.bart
gurpreetsinghmatharoo Feb 29, 2024
0b434e7
Merge branch 'various-example-changes' of github.com:thennothinghappe…
gurpreetsinghmatharoo Mar 1, 2024
860db6c
Merge pull request #90 from thennothinghappened/various-example-changes
gurpreetsinghmatharoo Mar 1, 2024
6ec0e6e
review pr #90
gurpreetsinghmatharoo Mar 1, 2024
c1aa07c
Merge branch 'develop' into thennothinghappened-various-example-changes
gurpreetsinghmatharoo Mar 1, 2024
e59f271
Merge pull request #103 from YoYoGames/thennothinghappened-various-ex…
gurpreetsinghmatharoo Mar 1, 2024
791767b
[Feature] Documented that some IDEs don't allow older runtimes to be …
gurpreetsinghmatharoo Mar 4, 2024
58b2c03
Merge pull request #104 from YoYoGames/develop.gurpreet
gurpreetsinghmatharoo Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions Manual/GenerateKeyboardShortcutTableFromJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@
### Provide the full directory path to the .json files as the command line argument.
### The output HTML file will also be placed there.
### For example: CMD > python GenerateKeyboardShortcutTableFromJson.py "C:/Users/Dev/Documents/Manual/" -name_as_desc
###
### You can provide an optional argument:
###
### -name_as_desc: Add this to write the hotkey's name as the description.
###
### Important: The JSON cannot contain trailing commas, this isn't supported
### using the built-in json module.
### Important: Technically, the JSON cannot contain trailing commas, this isn't supported
### using the built-in json module. Though it is supported through the yy_load function.
###

import sys
import json
import re
from collections import OrderedDict

def yy_load(file):
""" Load json from a file that possibly contains trailing commas """
# Do some tricky regex substitution
# so we can use the json module
data_string = ''.join(file.readlines())
data_string = re.sub("(,)(\s*[]}])","\g<2>", data_string)

# Now we can import using the json module
return json.loads(data_string)

# Utility functions
def get_combo_string(combo):
if not combo:
Expand Down Expand Up @@ -42,9 +57,10 @@ def get_combo_string(combo):
shortcuts_per_location = OrderedDict() # stores shortcuts under locations

# First read the Windows defaults file
with open(fdir + "/" + fname_win_hotkeys, 'r') as f:
with open(fdir + "/" + fname_win_hotkeys, 'r', encoding="utf-8") as f:
# Load all the data
input = json.load(f)
# input = json.load(f) # risk of errors if trailing commas are present
input = yy_load(f) # regex-replace variety that fixes things

# Add items under their respective locations (i.e. "group" per location)
for shortcut in input:
Expand Down Expand Up @@ -84,7 +100,7 @@ def get_combo_string(combo):
# Then add the combos in the macOS defaults file
with open(fdir + "/" + fname_mac_hotkeys, 'r') as f:
# Load all the data
input = json.load(f)
input = yy_load(f)

# Add items under their respective locations
for shortcut in input:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Additional Information</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../assets/css/default.css" type="text/css" />
<script src="../assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand All @@ -18,7 +18,6 @@ <h1><span data-field="title" data-format="default">Additional Information</span>
<p>This section of the manual contain a collection of miscellaneous articles related to programming and the way the GameMaker Language works. The following articles are designed as companion articles to further expand your understanding of how GameMaker works and how to get the most from the different language features available:</p>
<ul class="colour">
<li><a href="Best_Practices_When_Programming.htm">Best Practices When Programming</a></li>
<li><a href="The_File_System.htm">The File System</a></li>
<li><a href="Bitwise_Operators.htm">Bitwise Operators</a></li>
<li><a href="Type_Tables.htm">Type Tables</a></li>
<li><a data-xref="{title}" href="Whitespace_Characters.htm">White-space Characters</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h1>Best Practices When Programming</h1>
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="Additional_Information.htm">Additional Information</a></div>
<div style="float:right">Next: <a href="The_File_System.htm">The File System</a></div>
<div style="float:right">Next: <a href="Bitwise_Operators.htm">Bitwise Operators</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
Expand Down
10 changes: 6 additions & 4 deletions Manual/contents/Additional_Information/Bitwise_Operators.htm
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ <h1>Bitwise Operators And Binary</h1>
<p class="code">door_id = 1; // 0001</p>
<p class="dropspot">The others would be something like:<br />
 </p>
<p class="code">door_id=2; // 0010<br />
door_id=4; // 0100<br />
door_id=8; // 1000<br />
etc...</p>
<p class="code">
door_id = 2; // 0010 <br />
door_id = 4; // 0100 <br />
door_id = 8; // 1000 <br />
// etc...
</p>
<p class="dropspot">If we wanted the key to open door 1 and 3, then the key would have the MASK value of 5 (which is 101 in binary). If we perform an <span class="inline">AND</span> of this, and it comes out &quot;not zero&quot;, then we know that the key can open the door. You could also have keys that opened nothing by having a MASK of 0. See the code below for the actual check:</p>
<p class="code">if ((key_id &amp; door_id) ! = 0)<br />
{<br />
Expand Down
Loading
Loading