sscharter 0.5.1 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/sscharter/version.rb +1 -1
- data/lib/sscharter.rb +15 -1
- data/tutorial/tutorial.md +38 -8
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10b5abf2310eeeec8d15d4e26b0bb052057af5a7ec1f8831775fce9c1c824a3e
|
4
|
+
data.tar.gz: edab85fb7449400947f30c182aa4c6be2ce1ba1e968a19a921fdabee4a406ba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31f6c6ff5a7fa1eb08af770131617d32dac68d639b63f0d5ac0f6795c0eeaed1b420d206b1c042d7f8e9975c0dc5911b88c595f668765b99e222d010ad4822da
|
7
|
+
data.tar.gz: 5da054dfbf70f06d23eb9b13cccd1efd454f455e9a1fc53c709f959c354acfb2f8ec38b5f6dab164a6cc42e4cfa37612d4836342ef3f9fc2e46e52f786ec2ca3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sscharter (0.5.
|
4
|
+
sscharter (0.5.4)
|
5
5
|
filewatcher (~> 2.0)
|
6
6
|
launchy (~> 2.5)
|
7
7
|
rubyzip (~> 2.3)
|
@@ -10,16 +10,16 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.8.
|
13
|
+
addressable (2.8.6)
|
14
14
|
public_suffix (>= 2.0.2, < 6.0)
|
15
15
|
filewatcher (2.1.0)
|
16
16
|
module_methods (~> 0.1.0)
|
17
17
|
launchy (2.5.2)
|
18
18
|
addressable (~> 2.8)
|
19
|
-
minitest (5.
|
19
|
+
minitest (5.22.3)
|
20
20
|
module_methods (0.1.0)
|
21
|
-
public_suffix (5.0.
|
22
|
-
rake (13.0
|
21
|
+
public_suffix (5.0.4)
|
22
|
+
rake (13.1.0)
|
23
23
|
rubyzip (2.3.2)
|
24
24
|
webrick (1.8.1)
|
25
25
|
|
@@ -36,4 +36,4 @@ DEPENDENCIES
|
|
36
36
|
webrick (~> 1.8)
|
37
37
|
|
38
38
|
BUNDLED WITH
|
39
|
-
2.4
|
39
|
+
2.5.4
|
data/lib/sscharter/version.rb
CHANGED
data/lib/sscharter.rb
CHANGED
@@ -275,7 +275,7 @@ class Sunniesnow::Charter
|
|
275
275
|
hard: '#e75e74',
|
276
276
|
master: '#8c68f3',
|
277
277
|
special: '#f156ee'
|
278
|
-
}
|
278
|
+
}.freeze
|
279
279
|
|
280
280
|
DIRECTIONS = {
|
281
281
|
right: 0.0,
|
@@ -287,6 +287,19 @@ class Sunniesnow::Charter
|
|
287
287
|
down: -Math::PI / 2,
|
288
288
|
down_right: -Math::PI / 4
|
289
289
|
}
|
290
|
+
{
|
291
|
+
right: %i[r],
|
292
|
+
up_right: %i[ur ru],
|
293
|
+
up: %i[u],
|
294
|
+
up_left: %i[ul lu],
|
295
|
+
left: %i[l],
|
296
|
+
down_left: %i[dl ld],
|
297
|
+
down: %i[d],
|
298
|
+
down_right: %i[dr rd]
|
299
|
+
}.each do |direction_name, aliases|
|
300
|
+
aliases.each { DIRECTIONS[_1] = DIRECTIONS[direction_name] }
|
301
|
+
end
|
302
|
+
DIRECTIONS.freeze
|
290
303
|
|
291
304
|
singleton_class.attr_reader :charts
|
292
305
|
@charts = {}
|
@@ -307,6 +320,7 @@ class Sunniesnow::Charter
|
|
307
320
|
@difficulty_name = ''
|
308
321
|
@difficulty_color = '#000000'
|
309
322
|
@difficulty = ''
|
323
|
+
@difficulty_sup = ''
|
310
324
|
@title = ''
|
311
325
|
@artist = ''
|
312
326
|
@charter = ''
|
data/tutorial/tutorial.md
CHANGED
@@ -163,6 +163,7 @@ charter 'Your name'
|
|
163
163
|
difficulty_name 'Master'
|
164
164
|
difficulty_color '#8c68f3'
|
165
165
|
difficulty '12'
|
166
|
+
difficulty_sup '+' # optional
|
166
167
|
|
167
168
|
offset 0
|
168
169
|
bpm 120
|
@@ -220,6 +221,24 @@ If you need to change the port to 1314 for example, you need to run
|
|
220
221
|
bundle exec sscharter serve 1314
|
221
222
|
```
|
222
223
|
|
224
|
+
> [!TIP]
|
225
|
+
> The default settings of Sunniesnow are tuned for gameplay instead of charting,
|
226
|
+
> so you may want to change some settings to help you write the chart.
|
227
|
+
> Here are some useful settings:
|
228
|
+
>
|
229
|
+
> - Enable [`autoplay`](https://sunniesnow.github.io/game/help.html#autoplay).
|
230
|
+
> - Disable [`fullscreen-on-start`](https://sunniesnow.github.io/game/help.html#fullscreen-on-start).
|
231
|
+
> Fullscreen is good for gamplay but is disturbing for charting.
|
232
|
+
> - Enable [`debug`](https://sunniesnow.github.io/game/help.html#debug),
|
233
|
+
> and you can see the current progress of the music, the judgement region of notes,
|
234
|
+
> the coordinates of where you click your mouse, etc.
|
235
|
+
> - Use the option [`start`](https://sunniesnow.github.io/game/help.html#start)
|
236
|
+
> to start the music at a certain time.
|
237
|
+
> You can use the progress you got from debug mode UI to set it.
|
238
|
+
> - Enable [`se-with-music`](https://sunniesnow.github.io/game/help.html#se-with-music)
|
239
|
+
> and set [`chart-offset`](https://sunniesnow.github.io/game/help.html#chart-offset) to zero.
|
240
|
+
> This will make sure the timing of sound effects is precise no matter how much latency your computer has.
|
241
|
+
|
223
242
|
## What does each line in `src/master.rb` mean?
|
224
243
|
|
225
244
|
Now, you are ready to write the chart!
|
@@ -248,6 +267,7 @@ charter 'Your name'
|
|
248
267
|
difficulty_name 'Master'
|
249
268
|
difficulty_color '#8c68f3'
|
250
269
|
difficulty '12'
|
270
|
+
difficulty_sup '+' # optional
|
251
271
|
```
|
252
272
|
|
253
273
|
These lines are the metadata of the chart.
|
@@ -503,13 +523,22 @@ Here is a list of all the note types you can use:
|
|
503
523
|
| flick | `flick x, y, direction, text=""` | `f` |
|
504
524
|
| background note | `bg_note x, y, duration_beats=0, text=""` | |
|
505
525
|
|
506
|
-
|
526
|
+
The duration of a background note can be zero, but that of a hold note cannot.
|
507
527
|
|
508
|
-
|
528
|
+
The direction of a flick note can be a number specifying the angle in **radians**
|
509
529
|
(zero is to the right, and increasing angle is counterclockwise),
|
510
|
-
or it can be one of the following
|
511
|
-
|
512
|
-
|
530
|
+
or it can be one of the following symbols:
|
531
|
+
|
532
|
+
| Symbol | Direction |
|
533
|
+
|-|-|
|
534
|
+
| `:right`, `:r` | $0$ |
|
535
|
+
| `:up_right`, `:ur`, `:ru` | $\pi/4$ |
|
536
|
+
| `:up`, `:u` | $\pi/2$ |
|
537
|
+
| `:up_left`, `:ul`, `:lu` | $3\pi/4$ |
|
538
|
+
| `:left`, `:l` | $\pi$ |
|
539
|
+
| `:down_left`, `:dl`, `:ld` | $-3\pi/4$ |
|
540
|
+
| `:down`, `:d` | $-\pi/2$ |
|
541
|
+
| `:down_right`, `:dr`, `:rd` | $-\pi/4$ |
|
513
542
|
|
514
543
|
> Here is another notice for those who are not familiar with Ruby.
|
515
544
|
> In Ruby, the parentheses around the arguments of a method call can be omitted.
|
@@ -552,7 +581,7 @@ If you see something similar, congratulations!
|
|
552
581
|
|
553
582
|
### Background patterns
|
554
583
|
|
555
|
-
There are totally
|
584
|
+
There are totally 8 different kinds of background patterns:
|
556
585
|
|
557
586
|
| Pattern | Syntax |
|
558
587
|
|-|-|
|
@@ -569,8 +598,9 @@ Most of them only has one optional argument, specifying the duration.
|
|
569
598
|
The big text is different in that it needs an additional required argument,
|
570
599
|
specifying the contents of the texts.
|
571
600
|
|
572
|
-
|
573
|
-
|
601
|
+
> [!NOTE]
|
602
|
+
> The mathematical details about the shapes of these patterns are
|
603
|
+
> specified in [the documentation](https://sunniesnow.github.io/doc/chart.html).
|
574
604
|
|
575
605
|
You may now try adding a grid pattern to the chart:
|
576
606
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sscharter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ulysses Zhan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '13.0'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email:
|
99
99
|
- ulysseszhan@gmail.com
|
100
100
|
executables:
|
@@ -120,7 +120,7 @@ licenses: []
|
|
120
120
|
metadata:
|
121
121
|
homepage_uri: https://github.com/sunniesnow/sscharter
|
122
122
|
source_code_uri: https://github.com/sunniesnow/sscharter
|
123
|
-
post_install_message:
|
123
|
+
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|
126
126
|
- lib
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubygems_version: 3.4.22
|
139
|
-
signing_key:
|
139
|
+
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: A Ruby DSL for writing Sunniesnow charts
|
142
142
|
test_files: []
|