Skip to content

Commit

Permalink
New easy difficulty (v1c)
Browse files Browse the repository at this point in the history
suca
  • Loading branch information
NexIsDumb committed Apr 18, 2023
1 parent 53f2c2c commit ffb1f77
Show file tree
Hide file tree
Showing 6 changed files with 5,995 additions and 12 deletions.
13 changes: 11 additions & 2 deletions sarukyModLol/custom_notetypes/Sike Note.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
-- Script entirely made by Nex_isDumb
local angles = {90, 180, 0, -90}
local angAdder = {-90, 180, 0, 90}
local distance
function onCreatePost()
for i = 0, getProperty('unspawnNotes.length') - 1 do
if not getPropertyFromGroup('unspawnNotes', i, 'isSustainNote') and getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Sike Note' then
if string.lower(difficultyName) == 'easiest' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'ui/suca')
end

local id = math.random(0, 3)
while true do
if id == getPropertyFromGroup('unspawnNotes', i, 'noteData') then
Expand All @@ -18,12 +23,16 @@ function onCreatePost()
setPropertyFromGroup('unspawnNotes', i, 'offsetAngle', getPropertyFromGroup('unspawnNotes', i, 'offsetAngle') + angDir)
end
end

if string.lower(difficultyName) == 'easiest' then
distance = 500
end
end

function onUpdate(elapsed)
local lVal = math.max(0, math.min(1, elapsed * playbackRate * 27))
local lVal = math.max(0, math.min(1, elapsed * playbackRate * (string.lower(difficultyName) == 'easiest' and 14 or 27)))
for i = 0, getProperty('notes.length') - 1 do
if not getPropertyFromGroup('notes', i, 'isSustainNote') and getPropertyFromGroup('notes', i, 'noteType') == 'Sike Note' and math.abs(getPropertyFromGroup('notes', i, 'distance')) < 400 then
if not getPropertyFromGroup('notes', i, 'isSustainNote') and getPropertyFromGroup('notes', i, 'noteType') == 'Sike Note' and math.abs(getPropertyFromGroup('notes', i, 'distance')) < distance then
setPropertyFromGroup('notes', i, 'offsetX', getPropertyFromGroup('notes', i, 'offsetX') + (0 - getPropertyFromGroup('notes', i, 'offsetX')) * lVal)
setPropertyFromGroup('notes', i, 'offsetAngle', getPropertyFromGroup('notes', i, 'offsetAngle') + (0 - getPropertyFromGroup('notes', i, 'offsetAngle')) * lVal)
end
Expand Down
Loading

0 comments on commit ffb1f77

Please sign in to comment.