[+] Add velocity

This commit is contained in:
Azalea Gui
2023-03-07 23:22:53 -05:00
parent e68114c619
commit f04ffb1807
+6 -4
View File
@@ -29,9 +29,11 @@ COLORS = {RGB.from_hex(v) for v in {
# Snow fall data structure
class Snow(NamedTuple):
x: int
y: int
class SnowParticle(NamedTuple):
x: int # x position
y: int # y position
xv: int # x velocity
yv: int # y velocity
color: RGB
@@ -43,7 +45,7 @@ async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode):
width: int
x: int
y: int
snow: list[Snow]
snow: list[SnowParticle]
# Get the size of the terminal
async def get_size() -> tuple[int, int]: