Improved casioplot, fixed some stuff. This is stable.

This commit is contained in:
KikooDX 2020-04-28 15:13:43 +02:00
parent 04ddc05d8b
commit bf0272e94d
4 changed files with 43 additions and 36 deletions

View File

@ -2,10 +2,17 @@
import pygame
pygame.init()
screen = pygame.display.set_mode((384, 192))
screen_width = 384
screen_height = 192
screen = pygame.display.set_mode((screen_width, screen_height))
draw_string = print
def set_pixel(x, y, color):
pygame.draw.rect(screen, color, pygame.Rect(x, y, 1, 1))
def get_pixel(x, y):
if x >= screen_width or y >= screen_height or x < 0 or y < 0:
return None
return screen.get_at((x, y))[:2]
def clear_screen():
screen.fill((255,255,255))
show_screen()

View File

@ -14,7 +14,7 @@ pallet = {} --will store colors
pallet_last = 0
mem_pallet_last = 0
file:write([[from draw import draw, fancy_text
file:write([[from draw import *
black=(0,0,0)
for x in range(384):
for y in range(192):
@ -64,6 +64,6 @@ for i = 1, 12, 1 do
first = false
end
file:write('wait_ac("Press AC/ON to continue...")')
file:write('\nwait_ac("Press AC/ON to continue...")')
file:close()

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ while play:
xspd, yspd = yspd, -xspd
loop = True
while 1:
while loop:
try:
fancy_text(0, 0, "GAME OVER, press AC/ON to continue.")
while 1: