else
else
This commit is contained in:
parent
1d1b5285f9
commit
4f7dd1c4cd
2 changed files with 6 additions and 1 deletions
|
@ -58,6 +58,7 @@ class CanvasGame:
|
|||
self.canvas.coords(self.player, x-self.player_radius, y-self.player_radius,
|
||||
x+self.player_radius, y+self.player_radius)
|
||||
|
||||
self.label_coordinates.configure(text="%d, %d" % (self.player_x, self.player_y))
|
||||
time.sleep(0.017)
|
||||
|
||||
def numbercap(self, i, cap):
|
||||
|
@ -106,6 +107,8 @@ class CanvasGame:
|
|||
self.velocity_speedup = 0.6
|
||||
|
||||
self.entities = []
|
||||
self.label_coordinates = tkinter.Label(self.canvas, text="0, 0")
|
||||
self.label_coordinates.place(x=self.gamewidthcenter, y=self.gameheight-10, anchor="c")
|
||||
|
||||
self.canvas.bind("<KeyPress>", self.pushkey)
|
||||
self.canvas.bind("<KeyRelease>", self.releasekey)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from PIL import Image
|
||||
import os
|
||||
import urllib.request
|
||||
|
||||
def boot():
|
||||
path = input("Path to image or directory\n> ")
|
||||
|
@ -67,7 +68,8 @@ def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
|
|||
|
||||
parts = name.split('.')
|
||||
newpath = outpath + parts[0] + '_' + str(objective) + '.' + parts[1]
|
||||
nimage.save(newpath)
|
||||
nimage.save(newpath, quality=100)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue