diff --git a/README.md b/README.md index 6aee76a..ec972d5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ====== [![Build Status](https://travis-ci.org/GRRLIB/GRRLIB.svg?branch=master)](https://travis-ci.org/GRRLIB/GRRLIB) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5b2983faefbf443eaa5705e7cc6e5f68)](https://www.codacy.com/app/Crayon2000/GRRLIB?utm_source=github.com&utm_medium=referral&utm_content=GRRLIB/GRRLIB&utm_campaign=Badge_Grade) [![Join the chat at https://gitter.im/GRRLIB/GRRLIB](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GRRLIB/GRRLIB?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Table of Contents diff --git a/examples/3D_CubedTileDemo/source/main.c b/examples/3D_CubedTileDemo/source/main.c index ac2fcb4..952aac5 100644 --- a/examples/3D_CubedTileDemo/source/main.c +++ b/examples/3D_CubedTileDemo/source/main.c @@ -137,7 +137,7 @@ int main() { int bgx=-32, bgy=-32; float idperso=0; int i=0; - float sinnonameno=0, oldsinnonameno=0; + float sinnonameno=0; float camZ=1400.0f; float a=0; @@ -266,7 +266,7 @@ int main() { } GRRLIB_DrawTile(TileMap1Width*9,TileMap1Height*6,tex_perso,0,1,1,0xFFFFFFFF,(int)idperso); - oldsinnonameno=sinnonameno; + const float oldsinnonameno=sinnonameno; for(i=0; i<8; i++) { GRRLIB_DrawTile(TileMap1Width*(6+i),(TileMap1Height*10)+sin(sinnonameno)*64,tex_nonameno,0,1,1,0xFFFFFFFF,i); sinnonameno+=0.4F; diff --git a/examples/3D_sample3/source/main.c b/examples/3D_sample3/source/main.c index 712c10b..f8aa057 100644 --- a/examples/3D_sample3/source/main.c +++ b/examples/3D_sample3/source/main.c @@ -20,7 +20,7 @@ int main() { float a=0; int cubeZ=5; int i=0; - float sinx=0, oldsinx=0; + float sinx=0; GRRLIB_Init(); WPAD_Init(); @@ -133,7 +133,7 @@ int main() { // Switch To 2D Mode to display text GRRLIB_2dMode(); - oldsinx=sinx; + const float oldsinx=sinx; for(i=0; iefbHeight; i++) { GRRLIB_DrawTile(0+sin(sinx)*60,i,tex_screen,0,1,1,0xFFFFFFFF,i); sinx+=0.02f; diff --git a/examples/TileDemo/source/main.c b/examples/TileDemo/source/main.c index 4030072..1adb5b9 100644 --- a/examples/TileDemo/source/main.c +++ b/examples/TileDemo/source/main.c @@ -135,7 +135,7 @@ int main() { int bgx=-32, bgy=-32; float idperso=0; int i=0; - float sinnonameno=0, oldsinnonameno=0; + float sinnonameno=0; GRRLIB_Init(); GRRLIB_Settings.antialias = false; @@ -253,7 +253,7 @@ int main() { } GRRLIB_DrawTile(TileMap1Width*9,TileMap1Height*6,tex_perso,0,1,1,0xFFFFFFFF,(int)idperso); - oldsinnonameno=sinnonameno; + const float oldsinnonameno=sinnonameno; for(i=0; i<8; i++) { GRRLIB_DrawTile(TileMap1Width*(6+i),(TileMap1Height*10)+sin(sinnonameno)*64,tex_nonameno,0,1,1,0xFFFFFFFF,i); sinnonameno+=0.4F;