-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchart_Destructoid.py
More file actions
49 lines (40 loc) · 1.6 KB
/
chart_Destructoid.py
File metadata and controls
49 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'''
Specific chart generator for each songs
This is going to be removed when 'Game maker' is developed!
0. Copy the template (entire chart_H2O.py file) and rename filename & class name properly.
1. Add self.song_name. This should be same with the sound file name in /CC_music/ folder!
2. define build_chart function and add patterns as you want!
It must include: (every thing should be safely converted to integer)
- song length [milliseconds]
- song_bpm (calculate it from the online sites!)
- song_difficulty (as you wish ^^)
- total_points or # of nodes (as you wish ^^)
'''
from chart_patterns import *
class Chart_Destructoid():
def __init__(self):
self.song_name = 'Destructoid'
def build_chart(self,full_path):
##################################### fill in
song_length = 94900
song_bpm = 110*2
song_mpb = ((1000 * 60 / song_bpm))
song_difficulty = 0
number_of_nodes = 3
recommended_fps = 60
gap = 100
####################################
with open("%s" % full_path, "w") as f:
f.write('%d,%d,%d,%d,%d\n' % (song_length, song_bpm, song_difficulty, number_of_nodes,recommended_fps))
################################## fill in
beats = 0
pattern = basic_strike(beats, 1, 1)
beats += gap
f.write(pattern)
pattern = basic_strike(beats, 1, 1)
beats += gap
f.write(pattern)
pattern = basic_strike(beats, 1, 1)
beats += gap
f.write(pattern)
##################################