
#include "spec.h"

/*
I wanted to create a transistion,
I was also implementing a turtle drawer
so i did the one from onomatopeious game
because that game will perfectly fit this engine
and it is coded in c like c++ 
i can also implement tron, qix, tetris, maze
or a fractal l-system tree
*/
#define BITEW 60
#define BITEH 25
void Bite(char drow){
	char row = (drow % BITEH)/2;
	for(int col=0;col<BITEW;col+=10){
		Pth("@@T---------",col,row,White);
		Pth("T---------",col,BITEH-row,White);
		for (int rrow=row-1;rrow>=0;rrow--){
			Pth("|         |",col,rrow,White);
			Pth("|         |",col,BITEH-rrow,White);
		}			
		if(col>0&&row==BITEH/2)
		Pth("+",col,row,White);
	}
	Pth("L",0,row,White);
	Pth("@@@L",BITEW,row,White);
    	Pth("@L",0,BITEH-row,White);
	Pth("@@L",BITEW,BITEH-row,White);
	if(row == BITEH/2)
	{
		Pth("@@@T",0,row,White);
		Pth("T",BITEW,row,White);
	}
	for(int i=0;i<1;i++)
	Tck();
	Clr();
}
void Transition(Co c){
    for (int row=0;row<=25;row++)
    Bite(row);
    c->routine = 0;
}
