Commit c76073a6 authored by captnfab's avatar captnfab 🦃
Browse files

New gfx and flip portrait in battle

parent aa637abf
assets/gfx/credits.jpg

49.9 KB | W: | H:

assets/gfx/credits.jpg

63.5 KB | W: | H:

assets/gfx/credits.jpg
assets/gfx/credits.jpg
assets/gfx/credits.jpg
assets/gfx/credits.jpg
  • 2-up
  • Swipe
  • Onion skin
assets/gfx/gameover_bill-wright.jpg

181 KB | W: | H:

assets/gfx/gameover_bill-wright.jpg

258 KB | W: | H:

assets/gfx/gameover_bill-wright.jpg
assets/gfx/gameover_bill-wright.jpg
assets/gfx/gameover_bill-wright.jpg
assets/gfx/gameover_bill-wright.jpg
  • 2-up
  • Swipe
  • Onion skin
assets/gfx/gameover_ethel-bonny.jpg

153 KB | W: | H:

assets/gfx/gameover_ethel-bonny.jpg

203 KB | W: | H:

assets/gfx/gameover_ethel-bonny.jpg
assets/gfx/gameover_ethel-bonny.jpg
assets/gfx/gameover_ethel-bonny.jpg
assets/gfx/gameover_ethel-bonny.jpg
  • 2-up
  • Swipe
  • Onion skin
assets/gfx/gameover_greaves.jpg

182 KB | W: | H:

assets/gfx/gameover_greaves.jpg

269 KB | W: | H:

assets/gfx/gameover_greaves.jpg
assets/gfx/gameover_greaves.jpg
assets/gfx/gameover_greaves.jpg
assets/gfx/gameover_greaves.jpg
  • 2-up
  • Swipe
  • Onion skin
assets/gfx/portrait_greaves.png

81.4 KB | W: | H:

assets/gfx/portrait_greaves.png

260 KB | W: | H:

assets/gfx/portrait_greaves.png
assets/gfx/portrait_greaves.png
assets/gfx/portrait_greaves.png
assets/gfx/portrait_greaves.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -1542,10 +1542,11 @@ class GuiBattleShips:
pname,pslug = self.rnd.characters[self.rnd.player.character]
cname,cslug = self.rnd.characters[self.rnd.cpu.character]
portrait_size = 240
self.portrait_player = pygame.image.load("gfx/portrait_"+pslug+".png")
self.portrait_cpu = pygame.image.load("gfx/portrait_"+cslug+".png")
self.portrait_player = pygame.image.load("gfx/portrait_"+pslug+".png").convert_alpha()
self.portrait_cpu = pygame.image.load("gfx/portrait_"+cslug+".png").convert_alpha()
self.portrait_player = pygame.transform.smoothscale(self.portrait_player, (portrait_size, portrait_size))
self.portrait_cpu = pygame.transform.smoothscale(self.portrait_cpu, (portrait_size, portrait_size))
self.portrait_cpu = pygame.transform.flip(self.portrait_cpu, True, False)
self.portrait_player_rect = self.portrait_player.get_rect()
self.portrait_cpu_rect = self.portrait_cpu.get_rect()
self.portrait_player_rect.center = (int(WIDTH*0.07), int(HEIGHT*0.18))
......@@ -1678,7 +1679,7 @@ class GuiGameOver:
## Print outcome
font_gameover = pygame.font.Font(FONT, 20)
outcome_center = (WIDTH//2, HEIGHT//2 + 145)
outcome_center = (WIDTH//2, HEIGHT//2 + 155)
if self.rnd.state.options.get('victory', False):
outcome_label = font_gameover.render(_("You have won."), 1, WHITE)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment