0 Replies - 8623 Views - Last Post: 03 January 2013 - 11:13 AM Rate Topic: -----

#1 merlin'sbeard  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 20
  • Joined: 27-December 12

Python graphics with pygame and livewires

Posted 03 January 2013 - 11:13 AM

Hi i'm new to this and i'm learning from an ebook i tried this code but it didn't work i've been unable to find and fix the problem.
from livewires import games, color

SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480

my_screen = games.Screen(SCREEN_WIDTH, SCREEN_WIDTH)

back_image = games.load_image("fireworks5.jpg", transparent = False)
my_screen.set_background(back_image)

games.Text(screen = my_screen, x = 500, y = 30, text = "Score: 1273693",
           size = 50, color = color.white)

my_screen.mainloop()




No errors are displayed it just doesn't run when i double click it. This happened right after i tried displaying text on the screen.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1