This commit is contained in:
Pedro de Oliveira 2014-08-20 04:50:42 +01:00
parent 01d386733b
commit ce2745803c
2 changed files with 0 additions and 44 deletions

View File

@ -1,33 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import random
NumStars = 10
xlist = []
ylist = []
f = open('starrnd.asm', 'w')
for x in range(NumStars):
random.seed()
x = random.randint(0,256 - 1)
while(x in xlist):
x = random.randint(0,256 - 1)
xlist.append(x)
y = random.randint(0,192 - 1)
while(y in ylist):
y = random.randint(0,192 - 1)
ylist.append(y)
xlist.sort()
ylist.sort()
f.write("StarRnd\n")
for idx in range(NumStars):
f.write("\t\tdb %i, %i\n" % (xlist[idx], ylist[idx]))
f.close()

View File

@ -1,11 +0,0 @@
StarRnd
db 31, 10
db 1, 1
db 2, 2
db 3, 3
db 4, 4
db 5, 5
db 6, 6
db 7, 7
db 40, 1
db 0, 0