Apr-11-2021, 01:02 AM
(This post was last modified: Apr-12-2021, 05:55 AM by Yoriz.
Edit Reason: Added prefix
)
I am trying to recreate a flash piece in python:
This is a link to a thread that contains the flash based sentry gun program: http://forum.alienslegacy.com/viewtopic.php?f=3&t=3019
I have been playing around with things and so far this is my attempt do program logic for a fire countdown button press counter:
http://forum.alienslegacy.com/viewtopic.php?f=3&t=19394
And trying to recreate the font used here:
http://forum.alienslegacy.com/viewtopic.php?f=3&t=19399
This is a link to a thread that contains the flash based sentry gun program: http://forum.alienslegacy.com/viewtopic.php?f=3&t=3019
I have been playing around with things and so far this is my attempt do program logic for a fire countdown button press counter:
import pygame from tkinter import * import tkinter import keyboard import pynput pygame.init() def final_count(event): if count == 0: count == 500 count -= 1 print(count) # Create object root = tkinter.Tk() # Adjust size root.geometry("640x400") root.configure(bg='black') var = StringVar() var = 500 count = IntVar() Grid.rowconfigure(root,0,weight=1, uniform='a') Grid.columnconfigure(root,0,weight=1, uniform='a') Grid.rowconfigure(root,1,weight=1, uniform='b') Grid.columnconfigure(root,1,weight=1, uniform='b') rounds = Button(root,justify=CENTER,textvariable=(var),bg='black', fg='yellow', highlightbackground='yellow', highlightcolor='black',activebackground='yellow') rounds.grid(row=0,column=0, sticky="EW") label1 = Label(root, textvariable=count) label1.grid(row=1, column=0, sticky="EW") label1.bind('<KeyPress>', lambda f : final_count) root.mainloop()I am documenting the progress here:
http://forum.alienslegacy.com/viewtopic.php?f=3&t=19394
And trying to recreate the font used here:
http://forum.alienslegacy.com/viewtopic.php?f=3&t=19399