emu mod
This commit is contained in:
parent
793627a265
commit
28067ed80d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
modules/__pycache__/arrow.cpython-310.pyc
|
||||||
|
modules/__pycache__/emulateur_display.cpython-310.pyc
|
||||||
7
start.py
7
start.py
@ -105,6 +105,7 @@ def ViewEmu(cL,xL,yL,cM,xM,yM,cR,xR,yR):
|
|||||||
print("Curent Emu : " + str(res[cM]))
|
print("Curent Emu : " + str(res[cM]))
|
||||||
|
|
||||||
def leftKey(GetEmuMod):
|
def leftKey(GetEmuMod):
|
||||||
|
if GetEmuMod == 0:
|
||||||
global cpt
|
global cpt
|
||||||
cpt = cpt - 1
|
cpt = cpt - 1
|
||||||
if cpt < 0:
|
if cpt < 0:
|
||||||
@ -117,11 +118,12 @@ def leftKey(GetEmuMod):
|
|||||||
Rcpt = 1
|
Rcpt = 1
|
||||||
if Rcpt > EmuCpt:
|
if Rcpt > EmuCpt:
|
||||||
Rcpt = 0
|
Rcpt = 0
|
||||||
if GetEmuMod == 0:
|
|
||||||
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
|
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
|
||||||
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
|
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
|
||||||
|
|
||||||
def rightKey(GetEmuMod):
|
def rightKey(GetEmuMod):
|
||||||
|
|
||||||
|
if GetEmuMod == 0:
|
||||||
global cpt
|
global cpt
|
||||||
cpt = cpt + 1
|
cpt = cpt + 1
|
||||||
if cpt > EmuCpt:
|
if cpt > EmuCpt:
|
||||||
@ -134,9 +136,6 @@ def rightKey(GetEmuMod):
|
|||||||
Rcpt = 1
|
Rcpt = 1
|
||||||
if Rcpt > EmuCpt:
|
if Rcpt > EmuCpt:
|
||||||
Rcpt = 0
|
Rcpt = 0
|
||||||
|
|
||||||
|
|
||||||
if GetEmuMod == 0:
|
|
||||||
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
|
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
|
||||||
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
|
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user