Thursday, December 24, 2009

MLlib 1.2

by minishlink

The MLlib (or Minishlink's Library) is a simple library to develop on Nintendo Wii. Technically, it's a wrapper of libogc and others librairies. Coding with this lib on Wii is way easier and faster now ! :-) The author created this because he needed a library with he could code with easy functions. It uses GX for drawing, libpng for handling PNG, and libs of libogc...

-Proper code so that it's nice to see;
-Easy for all;
-Friendly functions;
-Handles drawing;
-Sprite system;
-Handles PNG images;
-Special effects;
-Write graphically text;
-MP3 system;
-MOD system;
-Input (Wiimote, Nunchuk, and extensions...) system;
-And much more...

Compatible with DevkitPPC r19 and libogc 1.8.1. Go update them ! :) TTF Font support, at last ! :) Collisions detection functions ! :)
-added: float ML_Distance(x1, y1, x2, y2)
-added: float ML_TrueDistance(x1, y1, x2, y2)
-added: bool ML_IsCollisionSpriteRect(sprite, x, y, width, height)
-added: bool ML_IsCollisionSpriteCircle(sprite, centerX, centerY, radius)
-added: bool ML_IsCollisionRectRect(x1, y1, width1, height1, x2, y2, width2, height2)
-added: bool ML_IsCollisionCircleCircle(centerX1, centerY1, radius1, centerX2, centerY2, radius2)
-added: bool ML_IsCollisionRectCircle(x, y, width, height, centerX, centerY, radius)
-added: ML_Font structure
-added: ML_InitFont()
-added: ML_QuitFont()
-added: ML_DeleteFont(ML_Font *font)
-added: ML_LoadFontFromBuffer(ML_Font *font, const uint8_t *filename, FT_Long bufferSize, FT_UInt pointSize)
-added: ML_LoadFontFromFile(ML_Font *font, const char *filename, FT_UInt pointSize)
-added: ML_DrawText(ML_Font *font, int x, int y, char *text, ...) (arguments are not currently working though)
-fixed: relative paths now working
-fixed: ML_ShutdownWii() now freeing like ML_Exit()
-fixed: ML_ReturnToWii() now freeing like ML_Exit()

News Source (1)