Skip to content

Commit

Permalink
Merge branch 'release/beta0.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-alt-d committed Nov 7, 2019
2 parents 97b827b + 9cb4d61 commit 91b0725
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Binary file added screenshots/blagario_v1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions src/blagario/AgarElements/CellPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,22 @@ public override async Task Tic(int fpsTicNum) {

static string[] availableColors = new string [] {"2ecc71", "3498db", "9b59b6", "f1c40f", "e67e22", "e74c3c" };

private string pepaCss => Name=="Pepa"?$@"
private string pepaCss =>
Name=="Pepa"
?$@"
background-image:url('https://i.imgur.com/ZUbWYDl.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;":
"background-color: #{MyColor}";
background-size: 100% 100%;"
:$"background-color: #{MyColor};";


public override string CssStyle(Player c) =>
c.Cell.IsDead
?"visibility:none"
:base.CssStyle(c)
+$@"position: absolute;
background-color: #{MyColor};";
+$@"position: absolute;"
+pepaCss;


}
}

0 comments on commit 91b0725

Please sign in to comment.