Added game files
This commit is contained in:
parent
704637d45e
commit
340b9b6900
31 changed files with 5427 additions and 0 deletions
54
source/Render.h
Normal file
54
source/Render.h
Normal file
|
@ -0,0 +1,54 @@
|
|||
#pragma once
|
||||
#include <3ds.h>
|
||||
#include <sf2d.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include "Globals.h"
|
||||
#include "MapGen.h"
|
||||
|
||||
sf2d_texture *icons;
|
||||
sf2d_texture *font;
|
||||
sf2d_texture *lightScreen;
|
||||
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 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 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 renderButtonIcon(u32 icon, int x, int y, float scale);
|
||||
|
||||
void renderLights();
|
||||
void renderLight(int x, int y, int r);
|
||||
void renderLightScreen();
|
||||
|
||||
void renderGui();
|
||||
void renderPlayer();
|
||||
|
||||
void drawText(char * msg, u32 x, u32 y);
|
||||
void drawSizedText(char * msg, u32 x, u32 y, float size);
|
||||
void drawTextColor(char * msg, u32 x, u32 y, u32 color);
|
||||
void drawTextColorSpecial(char * msg, u32 x, u32 y, u32 color, u32 color2);
|
||||
void drawSizedTextColor(char * msg, int x, int y, float size, u32 color);
|
||||
|
||||
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 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);
|
||||
|
||||
void defineTables();
|
Loading…
Add table
Add a link
Reference in a new issue