bitsydoge / c-ice

A simple C/SDL2 game engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICE : Indie "C" Engine

ICE Logo

A simple Game Engine with basic Camera, Entity, Texture, Audio, Map ...

Feature :

Supported Format :

  • Image : JPG, PNG, BMP ... ( And everything stb_image support )
  • Sound : OGG, WAV ... ( And everything SDL_mixer support )
  • Font : TTF ... ( And everything SDL_ttf support )
  • Archive : ZIP, 7Z ... ( And everything PhysFS support )

Tools :

  • bin2c : Convert file to static array in C to load them from the binary

Dependancy :

  • SDL2 ( Platform wrapper for Graphics, Window, Input ... )
  • SDL2_mixer ( Sound )
  • SDL2_ttf ( Text drawing )

Included :

TODO :

See the Trello

Hello World

#include <ICE.h>

#define ICE_CONFIG_TITLE "Hello World"

ICE_Game_Create()
{
	ICE_Font_Load("font.ttf");
	ICE_LabelID nbr = ICE_Label_Create(
		ICE_State_Current, 
		"Hello World",
		ICE_Vect_Zero,
		50, 
		ICE_LABELTYPE_WORLD
	);
}

ICE_Game_Update()
{
	if (ICE_Input_Pressed(ICE_KEY_ESCAPE)) 
		ICE_Input_Quit();
}

ICE_Game_Destroy() {}

About

A simple C/SDL2 game engine

License:Other


Languages

Language:C 98.0%Language:CMake 1.5%Language:PowerShell 0.4%Language:Shell 0.0%