Skip to content

Commit

Permalink
💾 Miis and the Pokemon were split into separate characters
Browse files Browse the repository at this point in the history
💾 Miis and the Pokemon were split into separate characters
  • Loading branch information
skittlz444 authored Aug 13, 2020
2 parents 5ee6e1f + 6df166c commit 37f14df
Show file tree
Hide file tree
Showing 22 changed files with 1,218 additions and 416 deletions.
8 changes: 2 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,11 @@ After you've installed everything above, you need to do a couple of things to en

`dotnet ef database update`

3. **Import the characters into your local database**

`psql Smash_ComboDatabase --file=Models/characters.sql`

4. **Remove the `node_modules` file in the `ClientApp` folder**
3. **Remove the `node_modules` file in the `ClientApp` folder**

If you have <a href="https://www.npmjs.com/package/trash">Trash</a> installed, you can do `trash node_modules`

5. **Install npm in `ClientApp`**
4. **Install npm in `ClientApp`**

`cd ClientApp`

Expand Down
14 changes: 12 additions & 2 deletions ClientApp/src/components/allCharacterCloseUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import Wario from '../graphics/characters/Wario/Wario-1.png'
import Snake from '../graphics/characters/Snake/Snake-1.png'
import Ike from '../graphics/characters/Ike/Ike-1.png'
import PokemonTrainer from '../graphics/characters/PokemonTrainer/PokemonTrainer-1.png'
import Squirtle from '../graphics/characters/Squirtle/Squirtle-1.png'
import Ivysaur from '../graphics/characters/Ivysaur/Ivysaur-1.png'
import Charizard from '../graphics/characters/Charizard/Charizard-1.png'
import DiddyKong from '../graphics/characters/DiddyKong/DiddyKong-1.png'
import Lucas from '../graphics/characters/Lucas/Lucas-1.png'
import Sonic from '../graphics/characters/Sonic/Sonic-1.png'
Expand All @@ -51,7 +54,9 @@ import WiiFitTrainer from '../graphics/characters/WiiFitTrainer/WiiFitTrainer-1.
import RosalinaAndLuma from '../graphics/characters/RosalinaAndLuma/RosalinaAndLuma-1.png'
import LittleMac from '../graphics/characters/LittleMac/LittleMac-1.png'
import Greninja from '../graphics/characters/Greninja/Greninja-1.png'
import Mii from '../graphics/characters/Mii/Mii-1.png'
import MiiBrawler from '../graphics/characters/MiiBrawler/MiiBrawler-1.png'
import MiiSwordfighter from '../graphics/characters/MiiSwordfighter/MiiSwordfighter-1.png'
import MiiGunner from '../graphics/characters/MiiGunner/MiiGunner-1.png'
import Palutena from '../graphics/characters/Palutena/Palutena-1.png'
import PacMan from '../graphics/characters/PacMan/PacMan-1.png'
import Robin from '../graphics/characters/Robin/Robin-1.png'
Expand Down Expand Up @@ -117,6 +122,9 @@ export const allCharacterCloseUp = {
Snake,
Ike,
PokemonTrainer,
Squirtle,
Ivysaur,
Charizard,
DiddyKong,
Lucas,
Sonic,
Expand All @@ -132,7 +140,9 @@ export const allCharacterCloseUp = {
RosalinaAndLuma,
LittleMac,
Greninja,
Mii,
MiiBrawler,
MiiSwordfighter,
MiiGunner,
Palutena,
PacMan,
Robin,
Expand Down
16 changes: 12 additions & 4 deletions ClientApp/src/components/allCharacterPortrait.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import ZeroSuitSamus from '../graphics/characters/ZeroSuitSamus/ZeroSuitSamus-5.
import Wario from '../graphics/characters/Wario/Wario-5.png'
import Snake from '../graphics/characters/Snake/Snake-5.png'
import Ike from '../graphics/characters/Ike/Ike-5.png'
import PokemonTrainer from '../graphics/characters/PokemonTrainer/PokemonTrainer-5.png'
import Squirtle from '../graphics/characters/Squirtle/Squirtle-5.png'
import Ivysaur from '../graphics/characters/Ivysaur/Ivysaur-5.png'
import Charizard from '../graphics/characters/Charizard/Charizard-5.png'
import DiddyKong from '../graphics/characters/DiddyKong/DiddyKong-5.png'
import Lucas from '../graphics/characters/Lucas/Lucas-5.png'
import Sonic from '../graphics/characters/Sonic/Sonic-5.png'
Expand All @@ -51,7 +53,9 @@ import WiiFitTrainer from '../graphics/characters/WiiFitTrainer/WiiFitTrainer-5.
import RosalinaAndLuma from '../graphics/characters/RosalinaAndLuma/RosalinaAndLuma-5.png'
import LittleMac from '../graphics/characters/LittleMac/LittleMac-5.png'
import Greninja from '../graphics/characters/Greninja/Greninja-5.png'
import Mii from '../graphics/characters/Mii/Mii-5.png'
import MiiBrawler from '../graphics/characters/MiiBrawler/MiiBrawler-5.png'
import MiiSwordfighter from '../graphics/characters/MiiSwordfighter/MiiSwordfighter-5.png'
import MiiGunner from '../graphics/characters/MiiGunner/MiiGunner-5.png'
import Palutena from '../graphics/characters/Palutena/Palutena-5.png'
import PacMan from '../graphics/characters/PacMan/PacMan-5.png'
import Robin from '../graphics/characters/Robin/Robin-5.png'
Expand Down Expand Up @@ -116,7 +120,9 @@ export const allCharacterPortrait = {
Wario,
Snake,
Ike,
PokemonTrainer,
Squirtle,
Ivysaur,
Charizard,
DiddyKong,
Lucas,
Sonic,
Expand All @@ -132,7 +138,9 @@ export const allCharacterPortrait = {
RosalinaAndLuma,
LittleMac,
Greninja,
Mii,
MiiBrawler,
MiiSwordfighter,
MiiGunner,
Palutena,
PacMan,
Robin,
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.
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.
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.
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.
15 changes: 8 additions & 7 deletions ClientApp/src/pages/Characters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ export function Characters() {

<h3>Choose your character</h3>
<div className="characters">
{characters.map(character => (
<Link key={character.id} to={`/character/${character.variableName}`}>
<img
src={allCharacterCloseUp[character.variableName]}
alt={`${character.name}'s portrait`}
/>
</Link>
{characters.sort((a, b) => a.ReleaseOrder - b.ReleaseOrder)
.map(character => (
<Link key={character.id} to={`/character/${character.variableName}`}>
<img
src={allCharacterCloseUp[character.variableName]}
alt={`${character.name}'s portrait`}
/>
</Link>
))}
</div>
</div>
Expand Down
Loading

0 comments on commit 37f14df

Please sign in to comment.