Added audio testing and a player

This commit is contained in:
2024-06-07 11:21:34 +02:00
parent 68295879ec
commit 1424452230
16 changed files with 370 additions and 244 deletions
+7 -26
View File
@@ -294,35 +294,16 @@ void Refresh_Area(Rectangle area){
SendPixel(color.Red,color.Green,color.Blue);
}
}
/*
Rectangle first_half = {{0,0},{0,0}};
Rectangle second_half = {{0,0},{0,0}};
Split_sprite(area,&first_half,&second_half);
Resize_Window(first_half);
}
void DrawPlayer(Rectangle area){
Resize_Window(area);
Write_Cmd(0x2C);
for(int y= 0; y < first_half.Size.Height;y++){
for(int x = 0; x < first_half.Size.Width+1;x++){
Color color;
Get_Color_From_Background((Point){x+first_half.Position.X,y+first_half.Position.Y},&color);
SendPixel(color.Red,color.Green,color.Blue);
for(int y = 0; y < area.Size.Height;y++){
auto_screen_roloff(area,(Point){0,y});
for(int x = 0; x < area.Size.Width+1;x++){
SendPixel(0x58,0x2A,0x72);
}
}
if(second_half.Size.Height != 0 && second_half.Size.Width != 0){
Resize_Window(second_half);
Write_Cmd(0x2C);
for(int y= 0; y < second_half.Size.Height;y++){
for(int x = 0; x < second_half.Size.Width+1;x++){
Color color;
Get_Color_From_Background((Point){x+second_half.Position.X,y+second_half.Position.Y},&color);
SendPixel(color.Red,color.Green,color.Blue);
}
}
}
Resize_Window(viewPort);
*/
}
void Draw_stars(){
Write_Cmd(0x2C);