Darkness!

Added darkness for deeper levels, at the moment only tested with Citra
This commit is contained in:
RSDuck 2015-10-22 01:52:17 +02:00
parent db69f1de1d
commit 68ceaf60d4
8 changed files with 2577 additions and 916 deletions

View file

@ -9,28 +9,36 @@
sf2d_texture *icons;
sf2d_texture *font;
sf2d_texture *lightScreen;
sf2d_texture *playerLightBake;
sf2d_texture *lanternLightBake;
int offsetX, offsetY;
void render(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits);
void renderb(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits, u32 color);
void renderr(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits,float rotate);
void renderc(s32 xp, s32 yp, u32 xTile, u32 yTile,int sizeX, int sizeY, u8 bits);
void renderbc(s32 xp, s32 yp, u32 xTile, u32 yTile,int sizeX, int sizeY, u8 bits, u32 color);
void renderr(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits, float rotate);
void renderc(s32 xp, s32 yp, u32 xTile, u32 yTile, int sizeX, int sizeY,
u8 bits);
void renderbc(s32 xp, s32 yp, u32 xTile, u32 yTile, int sizeX, int sizeY,
u8 bits, u32 color);
void render16(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits);
void render16c(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits,float scaleX,float scaleY);
void render16b(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits,u32 color);
void render16s(s32 xp, s32 yp, u32 tile, u8 bits,u32 color);
void render16c(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits, float scaleX,
float scaleY);
void render16b(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits, u32 color);
void render16s(s32 xp, s32 yp, u32 tile, u8 bits, u32 color);
void renderTitle(int x, int y);
void renderFrame(int x1, int y1, int x2, int y2, u32 bgColor);
void renderTile(int i, int x, int y);
void renderBackground(int xScroll, int yScroll);
void renderMenuBackground(int xScroll, int yScroll); //Renders the darkness
void renderButtonIcon(u32 icon, int x, int y, float scale);
void renderLights();
void renderLight(int x, int y, int r);
void renderLightScreen();
void bakeLights();
void freeLightBakes();
void renderLightsToStencil();
void resetStencilStuff();
void bakeLight(sf2d_texture* texture, int x, int y, int r);
void renderLight(int x, int y, sf2d_texture* texture);
void renderGui();
void renderPlayer();
@ -45,8 +53,10 @@ void renderFurniture(int itemID, int x, int y);
void renderEntity(Entity* e, int x, int y);
void renderEntities(int x, int y, EntityManager* em);
void renderRecipes(RecipeManager * r,int xo, int yo, int x1, int y1, int selected);
void renderItemList(Inventory * inv,int xo, int yo, int x1, int y1, int selected);
void renderRecipes(RecipeManager * r, int xo, int yo, int x1, int y1,
int selected);
void renderItemList(Inventory * inv, int xo, int yo, int x1, int y1,
int selected);
void renderItemWithText(Item* item, int x, int y);
void renderItemIcon(int itemID, int countLevel, int x, int y);
void renderItemIcon2(int itemID, int countLevel, int x, int y, int z);