From f66219ddf6c42c07f0873e148295d426ed1471a1 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Fri, 21 May 2021 22:49:40 -0400 Subject: [PATCH 1/5] Added getRenderedNoteHit to the modchart docs This was undocumented and has been a huge help to me, so I thought I'd add it to the docs --- docs/modchart.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/modchart.md b/docs/modchart.md index 16dc90f..72bfe96 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -243,6 +243,12 @@ Returns the note data of an note (0-3, left, down, up, right) *Note: Rendered Notes id's are special in the way that they act. 0 = closest note to any receptor, last index = the farthest away from any receptor.* +##### getRenderedNoteHit(int id) + +Returns whether a rendered note must be hit by the player or not + +*Note: Rendered Notes id's are special in the way that they act. 0 = closest note to any receptor, last index = the farthest away from any receptor.* + ##### isSustain(int id) Returns whether a rendered note is a sustain note or not (if they appear as the trail) From a5d24d2196ff50232d11c35b399456e56608ed51 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Fri, 21 May 2021 22:53:36 -0400 Subject: [PATCH 2/5] Corrected the description of anyNotes anyNotes returns true if the amount of rendered notes != 0, it previously stated that it returned the number of rendered notes on the screen --- docs/modchart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modchart.md b/docs/modchart.md index 72bfe96..cc0316b 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -281,7 +281,7 @@ Returns what the game would normally put the specified rendered note x. ##### anyNotes() -Returns the number of rendered notes on the screen. +Returns true if there are rendered notes, and returns false if there are none ##### getRenderedNoteStrumtime(int id) From cc023d96d97f646bf699e4e8d61e8cfdeacba24e Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Sat, 22 May 2021 01:57:00 -0400 Subject: [PATCH 3/5] Changed getCamX/Y to getCameraX/Y There is no getCamX/Y, and causes the game to crash :p --- docs/modchart.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/modchart.md b/docs/modchart.md index cc0316b..40a6a92 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -191,11 +191,11 @@ Returns the hud's y position Set's the current camera's position in space -##### getCamX() +##### getCameraX() Returns the current camera's x position -##### getCamY() +##### getCameraY() Returns the current camera's y position @@ -424,3 +424,34 @@ Smoothly fade in to an alpha ##### tweenFadeOut(string/int id, float toAlpha, float time, string onComplete) Smoothly fade out to an alpha + + + + + + +### Window & Screen + +##### getWindowX() + +Returns the window's x position + +##### getWindowY() + +Returns the window's y position + +##### getScreenWidth() + +Returns the width of the screen + +##### getScreenHeight() + +Returns the height of the screen + +##### setWindowPos(int x, int y) + +Sets the window's position + +##### resizeWindow(int width, int height) + +Resizes the window From 300c9f8baa530f1763dc715d61e5b5700d0eba27 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Sat, 22 May 2021 21:37:47 -0400 Subject: [PATCH 4/5] Added setActorScaleXY, setActorFlipX and setActorFlipY Also removed the non-existent setActorScaleX and setActorScaleY --- docs/modchart.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/modchart.md b/docs/modchart.md index 40a6a92..6d872c5 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -381,13 +381,17 @@ Set's the angle for the sprite id Set's the scale for the sprite id -##### setActorScaleX(float x, string/int id) **Currently broken** +##### setActorScaleXY(float scaleX, float scaleY, string/int id) -Set's the scale x for the sprite id +Set's the x and y scale for the sprite id -##### setActorScaleY(float y, string/int id) **Currently broken** +##### setActorFlipX(bool flip, string/int id) -Set's the scale y for the sprite id +Set's the x flip for the sprite id + +##### setActorFlipY(bool flip, string/int id) + +Set's the y flip for the sprite id ##### getActorWidth(string/int id) From f20493cd84cbbca5c87e6621912085a130f89d50 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Sat, 22 May 2021 22:11:50 -0400 Subject: [PATCH 5/5] Added setStrumLineY From https://github.com/KadeDev/Kade-Engine/pull/551 --- docs/modchart.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/modchart.md b/docs/modchart.md index 6d872c5..5bf68a5 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -207,6 +207,12 @@ Set's the current camera's zoom Set's the hud's zoom +### Strumline + +##### setStrumlineY(float y) + +Set's the y position of the strumLine + ### Actors ##### getRenderedNotes()