Change animate time

This commit is contained in:
Vinicius Silva 2024-02-16 23:07:34 -03:00 committed by Vinicius Silva
parent 3af0eb88e0
commit e99bf57286
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ fn (mut emulator Emulator) load_rom() !{
emulator.chip8.set_ram(u8(instruction)) emulator.chip8.set_ram(u8(instruction))
} }
println(' ROM successfully loaded into memory!') println('ROM successfully loaded into memory!')
}else{ }else{
panic('ROM path not especified!') panic('ROM path not especified!')

View File

@ -33,7 +33,7 @@ fn load_animate() {
mut bars := ['|','/','-','\\'] mut bars := ['|','/','-','\\']
for i := 0; i < 10000; i++ { for i := 0; i < 4000; i++ {
print('[${bars[i%4]}]\r ') print('[${bars[i%4]}]\r ')
time.sleep(400000) time.sleep(400000)
} }