Skip to content

Commit

Permalink
Merge pull request #195 from tonybaloney/new_backgrounds
Browse files Browse the repository at this point in the history
Add beach theme
  • Loading branch information
tonybaloney authored Oct 7, 2022
2 parents 4d7ee5d + c157b34 commit eb8f730
Show file tree
Hide file tree
Showing 23 changed files with 35 additions and 9 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# VS Code Pets

![icon](https://github.com/tonybaloney/vscode-pet/raw/master/icon.png)
![icon](https://github.com/tonybaloney/vscode-pets/raw/master/icon.png)

Puts a small, bored cat, an enthusiastic dog, a feisty snake, a rubber duck, or Clippy 📎 in your code editor.

[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/tonybaloney.vscode-pets?color=blue&logo=visual-studio)](https://marketplace.visualstudio.com/items?itemName=tonybaloney.vscode-pets&WT.mc_id=python-17801-anthonyshaw)

Run the "Start pet coding session" action to see the panel.

![screenshot](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/screenshot.gif)
![screenshot](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/screenshot.gif)

## Installation

Expand All @@ -22,7 +22,7 @@ Run the "Start pet coding session" command (`vscode-pets.start`)

You can choose either pet type and pet color:

![screenshot2](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/screenshot-2.gif)
![screenshot2](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/screenshot-2.gif)

* Snake can only be green
* Rubber duck & Zappy can only be yellow
Expand All @@ -33,15 +33,15 @@ You can choose either pet type and pet color:

Pets will interact with you

![screenshot3](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/screenshot-3.gif)
![screenshot3](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/screenshot-3.gif)

## Throwing a ball

Play catch with your pet! Run the "Throw ball" command (`vscode-pets.throw-ball`).

* Rocky will not run & catch a ball. Have you ever seen a rock run after a ball? Neither have we.

![screenshot4](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/screenshot-4.gif)
![screenshot4](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/screenshot-4.gif)

## Adding extra pets

Expand All @@ -59,11 +59,15 @@ You can remove specific pets by running the "Remove pet" command (`vscode-pets.d

Configure `vscode-pets.theme` to `"forest"` and let your pets play in a spooky forest.

![forest](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/forest.gif)
![forest](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/forest.gif)

Set `vscode-pets.theme` to `"castle"` for them to roam the ramparts!

![castle](https://github.com/tonybaloney/vscode-pet/raw/master/screenshots/castle.gif)
![castle](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/castle.gif)

Set `vscode-pets.theme` to `"beach"` for your friends to play by the ocean.

![beach](https://github.com/tonybaloney/vscode-pets/raw/master/screenshots/beach-pose.png)

## More options

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/background-dark-nano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/background-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/background-light-nano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/background-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/foreground-dark-nano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/foreground-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/foreground-light-nano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/backgrounds/beach/foreground-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions media/main-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,16 @@ function calculateFloor(size, theme) {
default:
return 45;
}
case "beach" /* Theme.beach */:
switch (size) {
case "medium" /* PetSize.medium */:
return 80;
case "large" /* PetSize.large */:
return 120;
case "nano" /* PetSize.nano */:
default:
return 45;
}
}
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
"enum": [
"none",
"forest",
"castle"
"castle",
"beach"
],
"default": "none",
"description": "Background theme assets for your pets"
Expand Down
Binary file added screenshots/beach-pose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const enum Theme {
none = 'none',
forest = 'forest',
castle = 'castle',
beach = 'beach',
}

export const enum ColorThemeKind {
Expand Down
2 changes: 1 addition & 1 deletion src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ALL_COLORS = [
PetColor.null,
];
const ALL_SCALES = [PetSize.nano, PetSize.medium, PetSize.large];
const ALL_THEMES = [Theme.none, Theme.forest, Theme.castle];
const ALL_THEMES = [Theme.none, Theme.forest, Theme.castle, Theme.beach];

class PetQuickPickItem implements vscode.QuickPickItem {
constructor(
Expand Down
10 changes: 10 additions & 0 deletions src/panel/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ function calculateFloor(size: PetSize, theme: Theme): number {
default:
return 45;
}
case Theme.beach:
switch (size) {
case PetSize.medium:
return 80;
case PetSize.large:
return 120;
case PetSize.nano:
default:
return 45;
}
}
return 0;
}
Expand Down

0 comments on commit eb8f730

Please sign in to comment.