# LifeGame **Repository Path**: sulliy/LifeGame ## Basic Information - **Project Name**: LifeGame - **Description**: No description available - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-09-20 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #LifeGame LifeGame(生命演化)是一个基于Cocos2D的小游戏。在一个10x10的矩阵内,你可以点击设置一个初始状态。然后程序自动根据如下规则进行演化: - 格子为黑色代表有生命,格子会灰色代表死亡 - 对于每一格,如果相邻8个方向有生命的格子少于2个,则该格子死亡 - 对于每一格,如果相邻8个方向有生命的格子等于2个,则该格子维持状态不变 - 对于每一格,如果相邻8个方向有生命的格子多余3个,则该格子复活 - 如果全部死亡,或者达成一种稳定状态,游戏结束 测试环境: Ready for GLSL Ready for OpenGL 2.0 { gl.version: 3.2.0 gl.supports_NPOT: true cocos2d.x.version: cocos2d-x-3.13.1 cocos2d.x.compiled_with_profiler: false cocos2d.x.build_type: DEBUG cocos2d.x.compiled_with_gl_state_cache: true gl.max_texture_size: 8192 gl.supports_OES_packed_depth_stencil: false gl.vendor: NVIDIA Corporation gl.renderer: Quadro FX 580/PCI/SSE2 gl.max_texture_units: 32 gl.supports_ETC1: false gl.supports_S3TC: true gl.supports_ATITC: false gl.supports_PVRTC: false gl.supports_BGRA8888: false gl.supports_discard_framebuffer: false gl.supports_vertex_array_object: true gl.supports_OES_map_buffer: false gl.supports_OES_depth24: false } ![输入图片说明](./screenshot.png "在这里输入图片标题")