Change animate time
This commit is contained in:
parent
3af0eb88e0
commit
e99bf57286
|
|
@ -33,7 +33,7 @@ fn (mut emulator Emulator) load_rom() !{
|
|||
emulator.chip8.set_ram(u8(instruction))
|
||||
}
|
||||
|
||||
println(' ROM successfully loaded into memory!')
|
||||
println('ROM successfully loaded into memory!')
|
||||
|
||||
}else{
|
||||
panic('ROM path not especified!')
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ fn load_animate() {
|
|||
|
||||
mut bars := ['|','/','-','\\']
|
||||
|
||||
for i := 0; i < 10000; i++ {
|
||||
for i := 0; i < 4000; i++ {
|
||||
print('[${bars[i%4]}]\r ')
|
||||
time.sleep(400000)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue