Skip to content

Commit

Permalink
Remove MIDIJS since it had crypto miner
Browse files Browse the repository at this point in the history
  • Loading branch information
robertkleffner committed Dec 6, 2022
1 parent bf8e599 commit 1dcf623
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions code/midi.js

This file was deleted.

6 changes: 3 additions & 3 deletions code/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Mario.PlayMusic = function(name) {
{
// Currently we stop all playing tracks when playing a new one
// MIDIjs can't play multiple at one time
MIDIjs.stop();;
MIDIjs.play(midifiles[name]);
//MIDIjs.stop();;
//MIDIjs.play(midifiles[name]);
}else{
console.error("Cannot play music track " + name + " as i have no data for it.");
}
Expand All @@ -44,5 +44,5 @@ Mario.PlayCastleMusic = function() {
};

Mario.StopMusic = function() {
MIDIjs.stop();
//MIDIjs.stop();
};
1 change: 0 additions & 1 deletion main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<title>Infinite Mario - JavaScript</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type='text/javascript' src='code/midi.js'></script>
</head>
<body>
<canvas id="canvas" width="640" height="480">
Expand Down

0 comments on commit 1dcf623

Please sign in to comment.