#include <U8g2lib.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
int movey = 30;
int hx = 0;
bool le = 1;
void setup() {
u8g2.begin();
}
void loop() {
u8g2.firstPage();
do {
//u8g2.setFont(u8g2_font_ncenB14_tr);
u8g2.drawStr(0, 15, "Geometry Dash");
u8g2.drawDisc(20, movey, 10, U8G2_DRAW_ALL);
u8g2.drawBox(40, 54 - movey, 20, 20);
u8g2.drawTriangle(127 - hx, 62, 132 - hx, 52, 137 - hx, 62);
u8g2.drawHLine(0, 63, 127);
} while ( u8g2.nextPage() );
hx += 2;
if ( hx > 136 ) hx = 0;
if (le == 1) movey += 4;
if (movey > 53) {
le = 0;
}
if (le == 0) movey -= 2;
if (movey < 12) {
le = 1;
}
}