Skip to content

paoloboschini/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

Tetris in Smalltalk.

alt tag alt tag

Installation

Go to http://www.pharo-project.org/home and download the Pharo 2.0 one-click distribution. Open it, click in the world and go to tools menu -> file browser. Locate the file Tetris.st you cloned from this repo, select it and choose Filein. Now the Tetris category is imported into your image.

Run

Click in the world, open a new Workspace, and type

TaskbarMorph showTaskbar: false.

TetrisGame start.

and Do It (cmd+d or from the menu)!

TODO

Refactor!

MISC

My favourite line, reflection! :)

createSprite
	^ (Sprite subclasses at: (Random new nextInt: Sprite subclasses size)) new position: self position + (150 @ -50)

About

Tetris in Smalltalk.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published