Hello,
We have tons of things to do... and this project on the side that needs continuous work... Others are beginning to understand it will need more than a week-end, but so far, I came up with this...
The main background is set and the "quit" option works. It is thus an acceptable program... hum hum...
We have tons of things to do... and this project on the side that needs continuous work... Others are beginning to understand it will need more than a week-end, but so far, I came up with this...
The main background is set and the "quit" option works. It is thus an acceptable program... hum hum...
import Tkinter as tk color = '#2c3e50' Francais = ["Nouvelle partie", "Sauver", "Charger", "Quitter", "Changer de langue", "Aide"] #crea fen window = tk.Tk() #change tk pour titre window.title("Bathathaï") #crea canvas display = tk.Canvas(window, width=1280, height=720) #affichage fond carte (remplacer par image le fond) carte = display.create_rectangle(25, 50, 676, 701, fill="grey") # 93*7 #affichage grille xa = 35 ya = 60 for i in range(8): display.create_line(xa, ya, xa, ya + 630) xa += 90 xa = 35 #reset xa for i in range(8): display.create_line(xa, ya, xa + 630, ya) ya += 90 #affichage fond menu menu = display.create_rectangle(700, 50, 1250, 350, fill="blue") #affichage fond texte affichage = display.create_rectangle(700, 375, 1250, 700, fill="white") #packing dcanvas display display.pack() #bouton quitter + placement button1 = tk.Button(window, text = Francais[3], command = window.destroy) button1.place(x=1075, y = 100) #mainloop window.mainloop()The next step is quite crucial. I want to create the working coordinates of the map. Movements will be only NWSE, one tile at the time, and we will need to be able to cast spells on units. Is there a simple method for that or do I need to create a list of tupples with 49 coordinates?