Implement new project creation

This commit is contained in:
2024-03-03 20:17:42 +01:00
parent 2b9505b7b3
commit 7b07074989
3 changed files with 60 additions and 5 deletions

View File

@@ -54,10 +54,11 @@ class EditorCanvas(tkinter.Canvas):
def handle_draw(self,event):
self.current_char_modified=True
pixel_pos=self.cursor_pos_to_pixel((event.x,event.y))
if not pixel_pos:
return
self.current_char_modified=True
self.project.modified=True
self.current_char_pixels[pixel_pos[0]*self.project.char_res[1]+pixel_pos[1]]=1
self.draw()