Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

bitsycore/c-ice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages