Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/CharacterPositionController.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,9 @@
transform: rotate(225deg) scaleY(-1);
}

.CharacterPositionController__character-column-character-container {
position: relative;
border-radius: 50%;
}

.CharacterPositionController__character-column-character {
width: 2.5rem;
height: 2.5rem;
padding: 0.4rem;
}

.CharacterPositionController__character-turn-positions {
Expand Down
12 changes: 0 additions & 12 deletions src/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,6 @@ class Scene extends React.Component<SceneProps, {}> {
characterTransform += ` scale(1 -1)`
}

// For the background, use the same translation, but skip the rotation and mirroring.
const characterBackgroundTransform = `translate(${this.props.characterState.xPos} ${this.props.characterState.yPos})`;

return (
<React.Fragment>
<div className='Scene__container'>
Expand Down Expand Up @@ -368,15 +365,6 @@ class Scene extends React.Component<SceneProps, {}> {
{grid}
<g clipPath='url(#Scene-clippath)'>
{this.drawCharacterPath()}
<rect
className={`Character-background--${this.props.world}`}
x={-0.5}
y={-0.5}
height={1}
width={1}
ref={this.characterBackgroundRef}
transform={characterBackgroundTransform}
/>
<Character
world={this.props.world}
theme={this.props.theme}
Expand Down
6 changes: 4 additions & 2 deletions src/Worlds.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import { ReactComponent as SketchpadThumbnailDark } from './svg/SketchpadThumbna
import { ReactComponent as SketchpadThumbnailGray } from './svg/SketchpadThumbnail-gray.svg';
import { ReactComponent as SketchpadThumbnailContrast } from './svg/SketchpadThumbnail-contrast.svg';
import { ReactComponent as Robot } from './svg/Robot.svg';
import { ReactComponent as RobotGray } from './svg/RobotGray.svg';
import { ReactComponent as RobotContrast } from './svg/RobotContrast.svg';

// Space
import { ReactComponent as Space } from './svg/Space.svg';
Expand Down Expand Up @@ -234,8 +236,8 @@ const worlds: {|
thumbnailGray: SketchpadThumbnailGray,
thumbnailContrast: SketchpadThumbnailContrast,
character: Robot,
characterGray: Robot,
characterContrast: Robot,
characterGray: RobotGray,
characterContrast: RobotContrast,
startingX: 1,
startingY: 1,
startingDirection: 2, // East
Expand Down
92 changes: 5 additions & 87 deletions src/Worlds.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* Landmarks */

.Character-background--Landmarks {
fill: #FFE5B4;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Landmarks,
.ProgramBlockEditor__character-column-character-container--Landmarks {
background-color: #FFE5B4;
}
Expand Down Expand Up @@ -33,16 +27,10 @@
}

body.gray-theme {
.Character-background--Landmarks {
fill: #505862;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Landmarks,
.ProgramBlockEditor__character-column-character-container--Landmarks {
background-color: #505862;
background-color: #FFFFFF;
}

.Scene__grid-line--Landmarks {
stroke: #FFFFFF;
}
Expand All @@ -67,12 +55,6 @@ body.gray-theme {
}

body.contrast-theme {
.Character-background--Landmarks {
fill: #FFFFFF;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Landmarks,
.ProgramBlockEditor__character-column-character-container--Landmarks {
background-color: #FFFFFF;
}
Expand Down Expand Up @@ -118,14 +100,8 @@ body.contrast-theme {

/* DeepOcean */

.Character-background--DeepOcean {
fill: #003C50;
stroke: none;
}

.CharacterPositionController__character-column-character-container--DeepOcean,
.ProgramBlockEditor__character-column-character-container--DeepOcean {
background-color: #003C50;
background-color: #1B2432;
}

.Scene__grid-line--DeepOcean {
Expand All @@ -145,11 +121,6 @@ body.contrast-theme {
}

body.gray-theme {
.Character-background--DeepOcean {
fill: #67717E;
}

.CharacterPositionController__character-column-character-container--DeepOcean,
.ProgramBlockEditor__character-column-character-container--DeepOcean {
background-color: #67717E;
}
Expand All @@ -172,15 +143,10 @@ body.gray-theme {
}

body.contrast-theme {
.Character-background--DeepOcean {
fill: #FFFFFF;
}

.CharacterPositionController__character-column-character-container--DeepOcean,
.ProgramBlockEditor__character-column-character-container--DeepOcean {
background-color: #FFFFFF;
}

.Scene__grid-line--DeepOcean {
stroke: #0078FF;
}
Expand Down Expand Up @@ -213,12 +179,6 @@ body.contrast-theme {

/* Jungle */

.Character-background--Jungle {
fill: #FFE5B4;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Jungle,
.ProgramBlockEditor__character-column-character-container--Jungle {
background-color: #FFE5B4;
}
Expand All @@ -240,11 +200,6 @@ body.contrast-theme {
}

body.gray-theme {
.Character-background--Jungle {
fill: #505862;
}

.CharacterPositionController__character-column-character-container--Jungle,
.ProgramBlockEditor__character-column-character-container--Jungle {
background-color: #505862;
}
Expand All @@ -267,11 +222,6 @@ body.gray-theme {
}

body.contrast-theme {
.Character-background--Jungle {
fill: #FFFFFF;
}

.CharacterPositionController__character-column-character-container--Jungle,
.ProgramBlockEditor__character-column-character-container--Jungle {
background-color: #FFFFFF;
}
Expand Down Expand Up @@ -318,12 +268,6 @@ body.contrast-theme {

/* Sketchpad */

.Character-background--Sketchpad {
fill: #4C9990;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Sketchpad,
.ProgramBlockEditor__character-column-character-container--Sketchpad {
background-color: #4C9990;
}
Expand Down Expand Up @@ -355,13 +299,8 @@ body.dark-theme {
}

body.gray-theme {
.Character-background--Sketchpad {
fill: #818A98;
}

.CharacterPositionController__character-column-character-container--Sketchpad,
.ProgramBlockEditor__character-column-character-container--Sketchpad {
background-color: #818A98;
background-color: #9DA4AF;
}

.Scene__grid-line--Sketchpad {
Expand All @@ -382,11 +321,6 @@ body.gray-theme {
}

body.contrast-theme {
.Character-background--Sketchpad {
fill: #FFFFFF;
}

.CharacterPositionController__character-column-character-container--Sketchpad,
.ProgramBlockEditor__character-column-character-container--Sketchpad {
background-color: #FFFFFF;
}
Expand Down Expand Up @@ -424,12 +358,6 @@ body.contrast-theme {

/* Space */

.Character-background--Space {
fill: #1B2432;
stroke: none;
}

.CharacterPositionController__character-column-character-container--Space,
.ProgramBlockEditor__character-column-character-container--Space {
background-color: #1B2432;
}
Expand All @@ -451,11 +379,6 @@ body.contrast-theme {
}

body.gray-theme {
.Character-background--Space {
fill: #505862;
}

.CharacterPositionController__character-column-character-container--Space,
.ProgramBlockEditor__character-column-character-container--Space {
background-color: #505862;
}
Expand All @@ -478,11 +401,6 @@ body.gray-theme {
}

body.contrast-theme {
.Character-background--Space {
fill: #FFFFFF;
}

.CharacterPositionController__character-column-character-container--Space,
.ProgramBlockEditor__character-column-character-container--Space {
background-color: #FFFFFF;
}
Expand Down
35 changes: 18 additions & 17 deletions src/svg/Bot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading