⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 game.c

📁 TETRIS GAME, AUTO-PLAYER AND ARTIFICIAL INTELLIGENCY By Bluteau Thomas
💻 C
字号:
/************************/
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -