Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RhythmKata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
13정준영
RhythmKata
Commits
25d2d3e3
Commit
25d2d3e3
authored
Nov 03, 2019
by
natonato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge prep
parent
15faafd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
BMS.cs
RhythmKata/Assets/Scripts/Core/BMS.cs
+1
-1
Level.cs
RhythmKata/Assets/Scripts/Core/Level.cs
+13
-2
PlayEngine.cs
RhythmKata/Assets/Scripts/PlayEngine.cs
+2
-0
No files found.
RhythmKata/Assets/Scripts/Core/BMS.cs
View file @
25d2d3e3
...
...
@@ -39,7 +39,7 @@ namespace Core
// convert all bms note to level note
foreach
(
var
note
in
notes
)
{
var
levelNote
=
Note
.
Create
(
note
);
var
levelNote
=
Note
.
Create
(
note
,
bpm
);
if
(
levelNote
!=
null
)
level
.
AddNote
(
levelNote
);
...
...
RhythmKata/Assets/Scripts/Core/Level.cs
View file @
25d2d3e3
...
...
@@ -12,6 +12,16 @@ namespace Core
{
notes
.
Enqueue
(
note
);
}
void
HandleInput
()
{
}
void
UpdateNotes
()
{
}
}
abstract
class
Note
...
...
@@ -36,7 +46,7 @@ namespace Core
// factory method
// may return null if given note is not supported
public
static
Note
Create
(
BmsNote
bn
)
public
static
Note
Create
(
BmsNote
bn
,
double
bpm
)
{
Note
note
=
null
;
HandType
handType
=
HandType
.
None
;
...
...
@@ -78,6 +88,7 @@ namespace Core
note
.
FromBmsNum
(
bn
.
num
);
note
.
HandType
=
handType
;
note
.
Time
=
bn
.
barTime
*
(
60.0
/
bpm
*
4
);
return
note
;
}
...
...
@@ -89,7 +100,7 @@ namespace Core
protected
override
GameObject
CreateGameObjectImpl
()
{
throw
new
NotImplementedException
(
);
return
GameObject
.
CreatePrimitive
(
PrimitiveType
.
Cube
);
}
protected
override
void
FromBmsNum
(
string
num
)
...
...
RhythmKata/Assets/Scripts/PlayEngine.cs
View file @
25d2d3e3
...
...
@@ -18,6 +18,8 @@ public class PlayEngine : MonoBehaviour
var
level
=
bms
.
ToLevel
();
this
.
level
=
level
;
}
private
void
Update
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment