From 7814b9cf66a0508620c29e73564cedd412017138 Mon Sep 17 00:00:00 2001 From: Entarno54 Date: Thu, 29 May 2025 19:42:06 +0700 Subject: [PATCH] Added game icon and changed README.md --- README.md | 10 +++++++++- conf.lua | 1 + main.lua | 19 +------------------ 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5d99062..7e6821a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # FNFLove -FNF written in Lua : Love2d \ No newline at end of file +FNF written in Lua : Love2d + +# HOW TO USE + +Download LOVE for your device: https://love2d.org/ + +Download, unarchive and run with your device executable: + - windows.bat (Windows) + - linux.sh (linux) \ No newline at end of file diff --git a/conf.lua b/conf.lua index e7b3dbe..843e8f1 100644 --- a/conf.lua +++ b/conf.lua @@ -1,3 +1,4 @@ function love.conf(t) t.window.title = "FNFLove2D" + t.window.icon = "icon.png" end \ No newline at end of file diff --git a/main.lua b/main.lua index c1a7942..ea3f436 100644 --- a/main.lua +++ b/main.lua @@ -34,21 +34,6 @@ conductor:mapBpmChanges(chart) local step = 0 local beat = 0 -local graphics = { -} - -function loadGraphic(graphic) - if graphic.graphics == love.graphics.newImage then - graphic.loaded = love.graphics.newImage(graphic.path) - end - - if graphic.children then - for index, graphicChild in next, graphic.children do - loadGraphic(graphicChild) - end - end - end - local playing = false local characters = {} @@ -77,7 +62,6 @@ local holded = { } local receptors = { - } function love.load() @@ -94,11 +78,10 @@ function love.load() table.insert(unspawnedNotes, newNote) end end - for i = 0, 3 do local receptor = myTypes.Sprite("sprites/NOTE_assets.png", "sprites/NOTE_assets.json", false) receptor:PlayAnimation("arrow"..directions[i+1], 25, false) - + receptor.position = myTypes.Vector2(100 + (65 * i), 0) receptor.ui = true -- So it doesnt move with the camera.