-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTetris_20161215_002737.BAS.bak
51 lines (34 loc) · 1.49 KB
/
Tetris_20161215_002737.BAS.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
'***********************************************************************************************
' To Do
'
'***********************************************************************************************
#COMPILE EXE
#DIM ALL
#INCLUDE "win32api.inc"
'***********************************************************************************************
FUNCTION PBMAIN () AS LONG
'***********************************************************************************************
' main
'***********************************************************************************************
'
Dim janelaBloco as long
graphic window new "Blocks v1.0 - Autor Fábio Moura", 0, 0, 400, 700 to janelaBloco
local larguraTela, alturaTela as long
' Obter tamanho:
graphic get ppi to larguraTela, alturaTela
' Anexa contexto gráfico.
graphic attach janelaBloco, 0, redraw
local linha as long
do
for linha = 0 to 255
GRAPHIC line (0, linha) - (255, linha), rgb(0, 0, linha)
next linha
for linha = 255 to 510
GRAPHIC line (0, linha) - (510, linha), rgb(0, linha, 0)
next linha
graphic redraw
loop while asc(graphic$(INKEY$)) <> 27
END FUNCTION
'***********************************************************************************************
'***********************************************************************************************
'***********************************************************************************************