From 3bfce1e09882ca7212e49d33845a59ebb4ff6dec Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 5 Sep 2024 23:22:18 +0800 Subject: [PATCH] update --- src/c1/{circle.cpp => circlePoints.cpp} | 11 +++++++++-- xmake.lua | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) rename src/c1/{circle.cpp => circlePoints.cpp} (87%) diff --git a/src/c1/circle.cpp b/src/c1/circlePoints.cpp similarity index 87% rename from src/c1/circle.cpp rename to src/c1/circlePoints.cpp index 31fce86..780825f 100644 --- a/src/c1/circle.cpp +++ b/src/c1/circlePoints.cpp @@ -13,7 +13,7 @@ #include const float POINT_SIZE = 32.0f; -const unsigned int F_PER_SECOND = 120; +const unsigned int F_PER_SECOND = 144; const float PI = 3.141592653589793238462643383279502884L; typedef unsigned int u8; @@ -50,8 +50,15 @@ void render(){ static int state = -1; state=(state+1)%F_PER_SECOND; const float anglePerCircle = 10.0f; + static float circleSize = 0.0f; + if(state==0){ + circleSize+=0.1f; + } + if(circleSize>1.0f){ + circleSize=0.0f; + } for (u8 i=0;i