mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-10-16 04:04:19 +13:00
romvisualizer - make gif animation of progress
hg-commit-id: c2fbb929af69
This commit is contained in:
parent
6412f7f501
commit
da2c784ae7
26
extras/romvisualizer.py
Normal file
26
extras/romvisualizer.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/python
|
||||
#author: Bryan Bishop <kanzure@gmail.com>
|
||||
#date: 2012-01-13
|
||||
import os
|
||||
|
||||
changeset_numbers = range(266, 635)
|
||||
|
||||
def take_snapshot_image(changeset_number):
|
||||
"turn pokered.asm into an image at a certain version"
|
||||
|
||||
print "reverting pokered.asm to r" + str(changeset_number)
|
||||
|
||||
#revert the file
|
||||
os.system("hg revert ../pokered.asm -r" + str(changeset_number))
|
||||
|
||||
print "generating the image.."
|
||||
|
||||
#draw the image
|
||||
os.system("python romviz.py")
|
||||
|
||||
#move the file
|
||||
os.system("mv test.png versions/" + str(changeset_number) + ".png")
|
||||
|
||||
for changeset_number in changeset_numbers:
|
||||
take_snapshot_image(changeset_number)
|
||||
|
Loading…
Reference in a new issue