Skip to content

Commit

Permalink
Updated incorrect markdown syntax, and removed some documentations th…
Browse files Browse the repository at this point in the history
…at are not in the engine anymore
  • Loading branch information
harrymkt committed Aug 14, 2024
1 parent 11e175e commit c573636
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 43 deletions.
19 changes: 0 additions & 19 deletions docs/functions/user_interaction/focus_window.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/functions/user_interaction/get_focused_window.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/functions/user_interaction/get_input.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ alert("Waiting", "You have eight seconds to type some text.");
show_game_window("Typing test");
while(true)
{
delay(5);
update_game_window();
wait(5);
if(wait_time.elapsed_millis>= 8000)
{
wait_time.pause();
Expand Down
11 changes: 11 additions & 0 deletions docs/functions/user_interaction/get_window_handle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# functions

get_window_handle

this function returns the ID of the focused window called handle

# uint get_window_handle()

## Return value

The handle to the current window
2 changes: 1 addition & 1 deletion docs/functions/user_interaction/key_down.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main()
show_game_window("Test Game");
while(true)
{
update_game_window();
wait(5);
if(key_down(SDLK_LALT) && key_pressed(SDLK_F4))
{
exit();
Expand Down
4 changes: 2 additions & 2 deletions docs/functions/user_interaction/key_pressed.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ void main()
show_game_window("Test Game");
while(true)
{
update_game_window();
wait(5);
if(key_down(SDLK_LALT) && key_pressed(SDLK_F4))
{
quit();
exit();
}
// Other code goes here.
}
Expand Down
4 changes: 2 additions & 2 deletions docs/functions/user_interaction/key_released.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void main()
show_game_window("Test Game");
while(true)
{
update_game_window();
wait(5);
if(key_pressed(SDLK_SPACE))
{
speak("Space bar pressed.");
Expand All @@ -40,7 +40,7 @@ speak("Space bar released.");
}
if(key_pressed(SDLK_ESCAPE))
{
quit();
exit();
}
// Other code goes here.
}
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/user_interaction/reset_all_forced_keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ding.load("c:/windows/media/ding.wav");
show_window("Ding Test");
while(true)
{
update_window();
wait(5);
if((time.elapsed_millis<1000)||(!key_down(SDLK_SPACE)))
{
if(key_pressed(SDLK_ESCAPE))
Expand Down
3 changes: 1 addition & 2 deletions docs/functions/user_interaction/show_window.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ void main()
show_window("ngt test window",400,600);
while(true)
{
delay(5);
update_game_window();
wait(5);
}
}
```
1 change: 1 addition & 0 deletions docs/general/global_constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ These are properties that can be used globally, meaning from anywhere.
| window_title | Sets the title of the current window. | string |
| window_closeable | Sets whether the window can be closed using the companation of ALT+F4. | bool |
| window_fullscreen | Sets whether the window should be in full screen. | bool |

## General properties

| Property | Description | Type |
Expand Down

0 comments on commit c573636

Please sign in to comment.