Skip to content

Commit 5027824

Browse files
committed
* Added support to load zipped DEPLS beatmap data
* Added SetPlaySpeed, SetNotesSpeed * Added storyboard callback system * Fixed typo when naming LoadDEPLS2Image storyboard function * Added love.graphics.newShader to storyboard * More detail in combo number
1 parent c873cfa commit 5027824

23 files changed

+522
-105
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Makefile
2+
jit/

conf.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
-- Love2d config function
22
function love.conf(t)
33
t.identity = "DEPLS" -- The name of the save directory (string)
4-
t.version = "0.10.0" -- The LÖVE version this game was made for (string)
4+
t.version = "0.10.1" -- The LÖVE version this game was made for (string)
55
t.console = false -- Attach a console (boolean, Windows only)
66
t.accelerometerjoystick = true -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
77
t.externalstorage = true -- True to save files (and read from the save directory) in external storage on Android (boolean)
88
t.gammacorrect = false -- Enable gamma-correct rendering, when supported by the system (boolean)
99

1010
t.window.title = "Assembler Output" -- The window title (string)
11-
t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
11+
t.window.icon = "image/icon.png" -- Filepath to an image to use as the window's icon (string)
1212
t.window.width = 960 -- The window width (number)
1313
t.window.height = 640 -- The window height (number)
1414
t.window.borderless = false -- Remove all border visuals from the window (boolean)
@@ -20,7 +20,7 @@ function love.conf(t)
2020
t.window.vsync = true -- Enable vertical sync (boolean)
2121
t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number)
2222
t.window.display = 1 -- Index of the monitor to show the window in (number)
23-
t.window.highdpi = true -- Enable high-dpi mode for the window on a Retina display (boolean)
23+
t.window.highdpi = true -- Enable high-dpi mode for the window on a Retina display (boolean)
2424
t.window.x = nil -- The x-coordinate of the window's position in the specified display (number)
2525
t.window.y = nil -- The y-coordinate of the window's position in the specified display (number)
2626

@@ -36,8 +36,8 @@ function love.conf(t)
3636
t.modules.sound = true -- Enable the sound module (boolean)
3737
t.modules.system = true -- Enable the system module (boolean)
3838
t.modules.timer = true -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
39-
t.modules.touch = true -- Enable the touch module (boolean)
39+
t.modules.touch = true -- Enable the touch module (boolean)
4040
t.modules.video = true -- Enable the video module (boolean)
4141
t.modules.window = true -- Enable the window module (boolean)
42-
t.modules.thread = false -- Enable the thread module (boolean)
43-
end
42+
t.modules.thread = false -- Enable the thread module (boolean)
43+
end

docs/Storyboard.md

+103-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Lua Storyboard
22
==============
33

4-
Lua storyboard is simply a Lua script which controls how objects shown behind the simulator.
5-
Please note that Lua script running as Lua storyboard is sandboxed, which means most of `love`
6-
functions doesn't exist in here or modified to prevent alteration of the rendering state, and
7-
to prevent malicious Lua storyboard script writing anywhere.
4+
Lua storyboard is simply a Lua script which controls how objects shown behind the simulator,
5+
hence it's named Lua storyboard. Please note that Lua script running as Lua storyboard is
6+
sandboxed, which means most of `love` functions doesn't exist in here or modified to prevent
7+
alteration of the rendering state, and to prevent malicious Lua storyboard from running.
88

99
Storyboard Entry Points
1010
=======================
@@ -33,7 +33,8 @@ Parameters:
3333
Storyboard Functions
3434
====================
3535

36-
This function only exist on storyboard lua script.
36+
This function is exported explicitly by DEPLS with `DEPLS.StoryboardFunctions`
37+
table, thus it only exist on storyboard lua script.
3738

3839
*************************************************
3940

@@ -172,3 +173,100 @@ Parameters:
172173
* `path` - The image path
173174

174175
Returns: Image handle or `nil` on failure
176+
177+
*************************************************
178+
179+
### `number SetNotesSpeed([number notes_speed])`
180+
181+
Get or set notes speed
182+
183+
Parameters:
184+
185+
* `notes_speed` - Note speed, in milliseconds. 0.8 notes speed in SIF is equal to 800 in here
186+
187+
Returns: Previous notes speed
188+
189+
> This function throws error if notes_speed is less than 400ms
190+
191+
*************************************************
192+
193+
### `number SetPlaySpeed([number speed_factor])`
194+
195+
Get or set play speed. This affects how fast the live simulator are
196+
197+
Parameters:
198+
199+
* `speed_factor` - The speed factor, in decimals. 1 means 100% speed (runs normally)
200+
201+
Returns: Previous play speed factor
202+
203+
> This function throws error if speed_factor is zero or less
204+
205+
Additional Storyboard Functions
206+
===============================
207+
208+
These functions were declared as global function in DEPLS, thus it also can be used in storyboards too
209+
210+
*************************************************
211+
212+
### `number,number,number HSL(number h, number s, number l)`
213+
214+
Parameters:
215+
216+
* `h`
217+
218+
* `s`
219+
220+
* `l`
221+
222+
Returns: R, G, and B color (3 values)
223+
224+
Storyboard Callback Functions
225+
=============================
226+
227+
The stoyboard also can accept callbacks for specific event. You have to
228+
declare the callback function as global in your storyboard.
229+
230+
Below is the list of storyboard callback functions:
231+
232+
*************************************************
233+
234+
### `void OnNoteTap(number pos, number accuracy, number distance, number attribute, boolean is_star, boolean is_simul, boolean is_token)`
235+
236+
Triggered everytime note is tapped on screen
237+
238+
Parameters:
239+
240+
* `pos` - Idol unit position. 9 is leftmost
241+
242+
* `accuracy` - The note tap accuracy. 1 for Perfect, 0.88 for Great, 0.8 for Good, 0.4 for Bad, and 0 for **Miss**
243+
244+
* `distance` - The note distance from the idol unit position, in pixels
245+
246+
* `attribute` - Note attribute. 1, 2, 3 are Smile, Pure, and Cool respectively. The others depends on beatmap type.
247+
248+
* `is_star` - Is the note is a star note (dangerous note)?
249+
250+
* `is_simul` - Is the note is a simultaneous note?
251+
252+
* `is_token` - Is the note is a token note?
253+
254+
*************************************************
255+
256+
### `void OnLongNoteTap(boolean release, number pos, number accuracy, number distance, number attribute, boolean is_simul)`
257+
258+
Triggered everytime long note is tapped (and currently holding) or released
259+
260+
Parameters:
261+
262+
* `release` - Is this a long note release callback?
263+
264+
* `pos` - Idol unit position. 9 is leftmost
265+
266+
* `accuracy` - The note tap accuracy. 1 for Perfect, 0.88 for Great, 0.8 for Good, 0.4 for Bad, and 0 for **Miss** (in this case, release will never be triggered)
267+
268+
* `distance` - The note distance from the idol unit position, in pixels
269+
270+
* `attribute` - Note attribute. 1, 2, 3 are Smile, Pure, and Cool respectively. The others depends on beatmap type.
271+
272+
* `is_simul` - Is the note is a simultaneous note? (start holding only)

image/com_button_01.png

1.51 KB
Loading

image/com_button_01se.png

1.4 KB
Loading

image/com_win_02.png

559 Bytes
Loading

image/com_win_42.png

3.43 KB
Loading

image/icon.png

21.1 KB
Loading

image/set_button_14.png

2.14 KB
Loading

image/set_button_14se.png

1.51 KB
Loading

image/set_button_15.png

2.15 KB
Loading

image/set_button_15se.png

1.54 KB
Loading

image/set_button_18.png

1.63 KB
Loading

image/set_button_18se.png

1.29 KB
Loading

image/set_button_19.png

1.53 KB
Loading

image/set_button_19se.png

1.22 KB
Loading

0 commit comments

Comments
 (0)