ahoj vsem, jsem zacatecnik v delphi a potreboval bych tetris s postupem. nebo poradit jak na to... dekuji vsem
Fórum › Delphi
Tetris

no tak mejdřív musíš zajistit grafické vykreslení, možností máš několik :
softwarové vykreslení přes api funkce
sice nepotřebuješ žádné další knihovny ani componenty ale je to děsně pomalé a i docela složité na realizaci. Uděláš jsi 2buffry (asi Canvas v delphi) a jeden zobrazujes a do dalsiho zapisujes s tím že je prohazuješ. Dela se to abys zabranil problikavani.
knihovna DelphiX
DelphiX je vlastne nadstavba DirectX 7. Pracuje to taky softwarove a funguje to jako klasická komponenta. Takze jenom nainstalujes, vlozis komponentu a muzes s tim uz pracovat. Vsechno je 2D, obsahuje i 3D funkce ale ty jsou nepouzitelne. Pro zacatecnika je to asi nejlepsi volba. Jinak dneska uz skoro vubec nepouziva, nahradila ji knihovna Asphyre(rychlejsi)...vice se dozvis na www.builder.cz kde jsou i dobre tutorialy od upira a je tam taky forum s pro DelphiX.
openGL
Asi nejlepsi volba, moznost 2D i 3D, velka rychlost. vice na http://nehe.ceskehry.cz/.
A tech moznosti na vykreslovani je jeste vic, treba nove DirectX, PowerDraw, ...
doprucoval bych to zacit s DelphiX nebo jemu podobne, pokud jsi myslis ze uz jses trosku skusenejsi programator tak se vrhni hnedka na OpenGL nebo DirectX. No a vlastni programovani tetrisu jako hry je uz dalsi kapitola .).

Přidej příspěvek
Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku
×Vložení zdrojáku
×Vložení obrázku
×Vložení videa
































Uživatelé prohlížející si toto vlákno
Podobná vlákna
Tetris C++ v Qt Creatoru — založil ANett55
Tetris - kolize — založil Geralt
OpenGL tetris — založil Tom9k
Tetris - kritika — založil Matěj Andrle