mirror of https://github.com/dirtbags/moth.git
Fixed mainly formatting issues. Upped the max bitrate to 4000k/s for the videos.
This commit is contained in:
parent
116c553e88
commit
7108932856
|
@ -202,14 +202,16 @@ class Pflanzarr:
|
||||||
winner = random.choice(winners)
|
winner = random.choice(winners)
|
||||||
|
|
||||||
html = ['<html>',
|
html = ['<html>',
|
||||||
'<head><title>Game %d results</title>',
|
'<head><title>Game %d Results</title>' % self._gameNum ,
|
||||||
'<link href="/ctf.css" rel="stylesheet" type="text/css">',
|
'<link href="/tanks/ctf.css" rel="stylesheet" type="text/css">',
|
||||||
'</head>',
|
'</head>',
|
||||||
'<body>',
|
'<body>',
|
||||||
'<table><tr><th>Team<th>Kills<th>Cause of Death']
|
'<H1>Game %d Results</H1>' % self._gameNum,
|
||||||
|
'<table class="results">',
|
||||||
|
'<tr><th>Team<th>Kills<th>Cause of Death']
|
||||||
for tank in tanks:
|
for tank in tanks:
|
||||||
if tank is winner:
|
if tank is winner:
|
||||||
rowStyle = 'style="font-weight:bold; '\
|
rowStyle = 'style="text-decoration:underline; '\
|
||||||
'background-color:%s"' % tank.color
|
'background-color:%s"' % tank.color
|
||||||
else:
|
else:
|
||||||
rowStyle = 'style="background-color:%s"' % tank.color
|
rowStyle = 'style="background-color:%s"' % tank.color
|
||||||
|
@ -238,7 +240,7 @@ class Pflanzarr:
|
||||||
|
|
||||||
movieCmd = ['ffmpeg',
|
movieCmd = ['ffmpeg',
|
||||||
'-r', '10', # Set the framerate to 10/second
|
'-r', '10', # Set the framerate to 10/second
|
||||||
'-b', '400k', # Set the bitrate
|
'-b', '4000k', # Set the bitrate
|
||||||
'-i', '%s/%%05d.ppm' % self._imageDir, # The input files.
|
'-i', '%s/%%05d.ppm' % self._imageDir, # The input files.
|
||||||
# '-vcodec', 'msmpeg4v2',
|
# '-vcodec', 'msmpeg4v2',
|
||||||
'%s/game.avi' % self._gameDir]
|
'%s/game.avi' % self._gameDir]
|
||||||
|
|
|
@ -98,3 +98,7 @@ fieldset * {
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.results td, th{
|
||||||
|
padding : 3px;
|
||||||
|
font-weight : bold;
|
||||||
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ teams.build_teams()
|
||||||
|
|
||||||
head = open('head.html').read() % "Error Report"
|
head = open('head.html').read() % "Error Report"
|
||||||
print(head)
|
print(head)
|
||||||
|
print('<H1>Your Errors</H1>')
|
||||||
print(open('links.html').read())
|
print(open('links.html').read())
|
||||||
|
|
||||||
def done():
|
def done():
|
||||||
|
|
Loading…
Reference in New Issue