
#include "spiel.hpp"





Cunt* MapRGB::Routine(Api* shit)
{
	shit->Lock();
	for (int i = 0; i < _SCRNW; i++)
	for (int j = 0; j < _SCRNH; j++)
	{
		int alpha = (i+j) % _SCRNW;
		Uint32 color = shit->Color(i, j, _SCRNW-i);
		shit->Plot(i,j,color);
	}

	shit->Unlock();
	return 0;
}

Cunt* DrawShit::Routine(Api* shit)
{
	shit->Lock();

	for (unsigned short x = 0; x < pumpkin_width; x++)
	for (unsigned short y = 0; y < pumpkin_height; y++)
	if (PUMPKIN(x,y)) shit->Plot(x,y,GrayLcdPixel);
	else shit->Plot(x,y,GrayLcdBG);

	shit->Unlock();
	return 0;
}

Cunt* EveryFrame::Routine(Api* shit)
{
	if (shit->Quit()) shit->Gtfo();
	shit->Refresh();

	shit->Delay(50);
	return 0;
	return this;
}


