Code Monkey home page Code Monkey logo

1062_cpp_tetris's Introduction

[C++/OpenGL] Tetris

軟體功能

這一是款經典遊戲:俄羅斯方塊,原始使用Xcode + OpenGL開發。

版本紀錄

  • 第一版:不知道怎麼兜出來的程式碼、制式化的。
  • 第二版:整理過的程式碼、動態配置記憶體、讀檔、新增切換方塊功能。

操作說明

  1. 遊戲開啟後會先讓使用者輸入格子的大小
  2. 方向鍵:左、下、右 可移動方塊
  3. 方向鍵:上 可旋轉方塊
  4. 空白鍵:可讓方塊快速掉落到下方
  5. S:切換方塊
  6. R:重新開始
  7. E:結束遊戲

視窗分別有兩個,白色為遊戲主場,黑色可看到分數及等級。

遊戲過程中,方塊會隨著時間加快。隨分數不同,等級也有所不同。

1062_cpp_tetris's People

Contributors

claireliu14 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.