Ejemplo n.º 1
0
def draw():
    window.screen.fill((0, 0, 0))
    if t < 1.5:
        background.drawstars()
        surf = window.screen.copy().convert_alpha()
        surf.fill((0, 0, 0, int(255 * t / 1.5)))
        window.screen.blit(surf, (0, 0))
    else:

        class camera:
            y0 = window.camera.y0 * state.R / R
            X0 = 0
            R = window.camera.R * 10

        background.draw(camera=camera, hradius=6)

    if t < 5:
        for ship in state.ships:
            ship.draw()
    px, py = window.screenpos(0, 0)
    #	r = int(window.camera.R * R)
    #	if py - r < window.sy:
    #		pygame.draw.circle(window.screen, (0, 40, 20), (px, py), r)
    dialog.draw()
    drawtitle()
Ejemplo n.º 2
0
def draw():
    if settings.drawbackground:
        background.draw()
    else:
        window.screen.fill((0, 60, 0))
    for obj in todraw:
        obj.draw()
    regenerating = isinstance(state.you, thing.SlowTeleport)

    if "cursor" in control:
        image.worlddraw("cursor",
                        control["cursor"].X,
                        control["cursor"].y,
                        1.6,
                        angle=pygame.time.get_ticks() * 0.15)
    if "qtarget" in control:
        X, y = control["qtarget"]
        image.worlddraw("qtarget",
                        X,
                        y,
                        1,
                        angle=-pygame.time.get_ticks() * 0.15)
    dialog.draw()
    hud.draw()
    if regenerating:
        hud.drawnotice("Emergency transmitter activated")
    else:
        hud.drawstats()
        state.you.drawhud()
        dy = state.you.y - state.Rcore
        if dy < 36:
            hud.drawnotice("Warning: Approaching data horizon")
    background.drawwash()
Ejemplo n.º 3
0
def draw():
	if settings.drawbackground:
		background.draw()
	else:
		window.screen.fill((0, 60, 0))
	for obj in todraw:
		obj.draw()

	if "cursor" in control:
		image.worlddraw("cursor", control["cursor"].X, control["cursor"].y, 1.6,
			angle = pygame.time.get_ticks() * 0.15)
	if "qtarget" in control:
		X, y = control["qtarget"]
		image.worlddraw("qtarget", X, y, 1,
			angle = -pygame.time.get_ticks() * 0.15)
	dialog.draw()
	hud.draw()
	hud.drawstats()
	state.you.drawhud()
	dy = state.you.y - state.Rcore
	if dy < 36:
		alpha = pygame.time.get_ticks() * 0.001 % 1
		ptext.draw("Warning: Approaching data horizon", midtop = F(854/2, 100), color = "#FF7777",
			owidth = 1, fontsize = F(36), fontname = "NovaSquare", alpha = alpha)
	background.drawwash()
Ejemplo n.º 4
0
def draw():
	if settings.drawbackground:
		background.draw()
	else:
		window.screen.fill((0, 60, 0))
	for obj in todraw:
		obj.draw()
	regenerating = isinstance(state.you, thing.SlowTeleport)

	if "cursor" in control:
		image.worlddraw("cursor", control["cursor"].X, control["cursor"].y, 1.6,
			angle = pygame.time.get_ticks() * 0.15)
	if "qtarget" in control:
		X, y = control["qtarget"]
		image.worlddraw("qtarget", X, y, 1,
			angle = -pygame.time.get_ticks() * 0.15)
	dialog.draw()
	hud.draw()
	if regenerating:
		hud.drawnotice("Emergency transmitter activated")
	else:
		hud.drawstats()
		state.you.drawhud()
		dy = state.you.y - state.Rcore
		if dy < 36:
			hud.drawnotice("Warning: Approaching data horizon")
	background.drawwash()
Ejemplo n.º 5
0
def draw():
    if playing:
        drawscene()
        return

    background.draw()
    for obj in todraw:
        obj.draw()

    dialog.draw()
    hud.draw()
    hud.drawstats()
    state.you.drawhud()
    background.drawwash()
Ejemplo n.º 6
0
def draw():
	if playing:
		drawscene()
		return

	background.draw()
	for obj in todraw:
		obj.draw()

	dialog.draw()
	hud.draw()
	hud.drawstats()
	state.you.drawhud()
	background.drawwash()
Ejemplo n.º 7
0
def draw():
	window.screen.fill((0, 0, 0))
	background.drawstars()
	for ship in state.ships:
		ship.draw()
	for effect in state.effects:
		effect.draw()
	if "cursor" in control:
		image.worlddraw("cursor", control["cursor"].X, control["cursor"].y, 1.6,
			angle = pygame.time.get_ticks() * 0.15)
	if "qtarget" in control:
		X, y = control["qtarget"]
		image.worlddraw("qtarget", X, y, 1,
			angle = -pygame.time.get_ticks() * 0.15)
	dialog.draw()
	hud.draw()
Ejemplo n.º 8
0
def draw():
	if playing:
		drawscene()
		return

	if settings.drawbackground:
		background.draw()
	else:
		window.screen.fill((0, 60, 0))
	for obj in todraw:
		obj.draw()

	dialog.draw()
	hud.draw()
	hud.drawstats()
	state.you.drawhud()
	background.drawwash()
Ejemplo n.º 9
0
def draw():
    if playing:
        drawscene()
        return

    if settings.drawbackground:
        background.draw()
    else:
        window.screen.fill((0, 60, 0))
    for obj in todraw:
        obj.draw()

    dialog.draw()
    hud.draw()
    hud.drawstats()
    state.you.drawhud()
    background.drawwash()
Ejemplo n.º 10
0
def draw():
	window.screen.fill((0, 0, 0))
	if t < 1.5:
		background.drawstars()
		surf = window.screen.copy().convert_alpha()
		surf.fill((0, 0, 0, int(255 * t / 1.5)))
		window.screen.blit(surf, (0, 0))
	else:
		class camera:
			y0 = window.camera.y0 * state.R / R
			X0 = 0
			R = window.camera.R * 10
		background.draw(camera = camera, hradius = 6)

	if t < 5:
		for ship in state.ships:
			ship.draw()
	px, py = window.screenpos(0, 0)
#	r = int(window.camera.R * R)
#	if py - r < window.sy:
#		pygame.draw.circle(window.screen, (0, 40, 20), (px, py), r)
	dialog.draw()
	drawtitle()
Ejemplo n.º 11
0
def draw():
	window.screen.fill((0, 0, 0))
	if t < 1.5:
		background.drawstars()
		surf = window.screen.copy().convert_alpha()
		surf.fill((0, 0, 0, int(255 * t / 1.5)))
		window.screen.blit(surf, (0, 0))
	else:
		window.camera.y0 /= R / state.R
		window.camera.R *= 2.5
		background.draw()
		window.camera.y0 *= R / state.R
		window.camera.R /= 2.5

	if t < 5:
		for ship in state.ships:
			ship.draw()
	px, py = window.screenpos(0, 0)
#	r = int(window.camera.R * R)
#	if py - r < window.sy:
#		pygame.draw.circle(window.screen, (0, 40, 20), (px, py), r)
	dialog.draw()
	drawtitle()
Ejemplo n.º 12
0
def draw():
    if settings.drawbackground:
        background.draw()
    else:
        window.screen.fill((0, 60, 0))
    for obj in todraw:
        obj.draw()

    if "cursor" in control:
        image.worlddraw("cursor",
                        control["cursor"].X,
                        control["cursor"].y,
                        1.6,
                        angle=pygame.time.get_ticks() * 0.15)
    if "qtarget" in control:
        X, y = control["qtarget"]
        image.worlddraw("qtarget",
                        X,
                        y,
                        1,
                        angle=-pygame.time.get_ticks() * 0.15)
    dialog.draw()
    hud.draw()
    hud.drawstats()
    state.you.drawhud()
    dy = state.you.y - state.Rcore
    if dy < 36:
        alpha = pygame.time.get_ticks() * 0.001 % 1
        ptext.draw("Warning: Approaching data horizon",
                   midtop=F(854 / 2, 100),
                   color="#FF7777",
                   owidth=1,
                   fontsize=F(36),
                   fontname="NovaSquare",
                   alpha=alpha)
    background.drawwash()