game.c

来自「TETRIS GAME, AUTO-PLAYER AND ARTIFICIAL 」· C语言 代码 · 共 38 行

C
38
字号
/************************/
/* Game Project for ACP */
/************************/

/***********************/
/*       TETRIS        */
/*    Thomas Bluteau   */
/***********************/


/*********************************************
  GAME.C contains miscellanous functions for
  perform the game.
*********************************************/
#include "function.h"



/**********
Detect if it is necessary to increase speed, and perform it
**********/
/*
void upDate_Speed(t_infos *infos)
{	
This method has been removed from here cause it is
more simple to implement in the detectLine function.	
	
}
*/

/***********
Use to active endGame
***********/
void endGame(t_infos *infos,object_t object)
{
	if(object.position_Y == 0)					// If no one vertical deplacement, game over
			infos->endGame = 1;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?