“no” by Complifyy
https://openprocessing.org/sketch/1275652
License CreativeCommons Attribution NonCommercial ShareAlike
https://creativecommons.org/licenses/by-nc-sa/3.0
{{filePath}}
{{width}} x {{height}}
Report Sketch
Oh, that naughty sketch! Please let us know what the issue is below.
Apply Template
Applying this template will reset your sketch and remove all your changes. Are you sure you would like to continue?
Report Sketch
Report Comment
Please confirm that you would like to report the comment below.
We will review your submission and take any actions necessary per our Community Guidelines. In addition to reporting this comment, you can also block the user to prevent any future interactions.
Please report comments only when necessary. Unnecessary or abusive use of this tool may result in your own account being suspended.
Are you sure you want to delete your sketch?
Any files uploaded will be deleted as well.
Delete Comment?
This will also delete all the replies to this comment.
Delete this tab? Any code in it will be deleted as well.
Select a collection to submit your sketch
We Need Your Support
Since 2008, OpenProcessing has provided tools for creative coders to learn, create, and share over a million open source projects in a friendly environment.
Niche websites like ours need your continued support for future development and maintenance, while keeping it an ad-free platform that respects your data and privacy!
Please consider subscribing below to show your support with a "Plus" badge on your profile and get access to many other features!
A fork of Guitar Hero/Osu! mania infinite mode by Jeppe Brown Richardson
CC Attribution NonCommercial ShareAlike
no
xxxxxxxxxx
/**
Osu! Mania remade(4k infinite version) in under 100 lines of code
controls: d, f, j, k
the game doesn't work very well in here, it works way better if you copy the code into your IDE and run it from there
feel free to change or copy any of this code :)
**/
ArrayList tile = new ArrayList();
int score=0;
void setup() {
size(400, 600);
}
void draw() {
background(0);
tiles til = new tiles(int(random(0, 3.9)));
fill(#aa0000, 50);
rect(0, 450, 400, 150);
if (frameCount%10==0) { //amount of notes generates per second, frameCount%10=6 notes/second
tile.add(til);
}
fill(#aaaaaa);
rect(255, 0, 255, 0);
rect(255, 0, 255, 0);
rect(255, 0, 255, 0);
rect(255, 0, 255, 0);
for (int i=0; i<tile.size(); i++) {
tiles ta = (tiles) tile.get(i);
ta.run();
ta.display();
ta.move();
if (key=='z'&&ta.location.y>430&&ta.location.x==0.0&&keyPressed) { //z
ta.gone=true;
}
if (key=='x'&&ta.location.y>430&&ta.location.x==100.0&&keyPressed) {//x
ta.gone=true;
}
if (key==','&&ta.location.y>430&&ta.location.x==200.0&&keyPressed) {//,
ta.gone=true;
}
if (key=='.'&&ta.location.y>430&&ta.location.x==300.0&&keyPressed) {//.
ta.gone=true;
}
if (ta.location.y>600) {
tile.remove(i);
score=0;
}
if (ta.gone==true) {
score+=ta.location.y>530?30:ta.location.y>480?20:10; //scoring system(you get more points if you do better)
tile.remove(i);
}
}
fill(#0000aa);
textAlign(CENTER);
textSize(50);
text(score, 200, 530);
}
class tiles {
PVector location;
Boolean gone=false;
tiles(int i) {
location = new PVector(i*100, 0);
}
void run() {
display();
move();
}
void display() {
fill(location.x==0?#00aaaa:location.x==100?#00aa00:location.x==200?#aaaa00:#aa00aa);
rect(location.x, location.y, 100, 50, 40);
}
void move() {
location.y+=3; //note speed, changing this will up the difficulity, putting it too high will make
} //it literally impossible
}
See More Shortcuts
Please verify your email to comment
Verify Email