Giter Club home page Giter Club logo

pastet's Introduction

Pastet

Tetris game written in Pascal

Information

The software itself was written for a school project.

It was written sometime around mid 2017.

The software is not translated into English, it is only available in Serbian.

The software is built with Lazarus IDE, hence the Lazarus project files.

Features

  • Pause menu
  • Colourful board
  • Instant piece dropping
  • Faster piece dropping
  • Text rendering from an image
  • Tetromino "sack"

Text rendering

The text rendering subroutine TTauGameMain.Ren_Text is located in tau_game_main.pas.

The procedure for drawing text is simple:

  1. if the read character is '$', draw the special character according to the next character in the given string.
  2. else draw the read character.

The font image is stored in data/tex/char/0.png and it contains not only characters but also small images.

Tetromino "sack"

To mitigate the randomness of Tetris, we introduce tetromino sacks. A sack guarantees that the player will get all 7 different tetrominoes during 7 turns. This way the player will not feel cheated, since the player knows the I, straight tetromino, shape will come to him soon enough.

After all tetrominoes from sack are used, new tetrominoes are put into the sack.

Tetromino sack source is here

Controls

Pause/Break - Pause the game
F1          - Show/hide the info screen
Spacebar    - Instant piece dropc
Down arrow  - Drop the piece faster
Left arrow  - Move the piece left/move the pause menu selection
Right arrow - Move the piece right/move the pause menu selection
z           - Rotate the piece counter-clockwise
x           - Rotate the piece clockwise

Screenshots

image-ingame

image-ingame

image-ingame

pastet's People

Contributors

drage0 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.