Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cookie clicker channel #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions src/assets/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@
src: url('fonts/Cabin/Cabin-Medium.ttf') format('truetype');
font-weight: 500;
}

@font-face{
font-family: Merriweather;
src: url('fonts/Merriweather-Black.ttf') format('woff2');
}
Binary file added src/assets/fonts/Merriweather-Black.ttf
Binary file not shown.
Binary file added src/channels/cookie-clicker/assets/bgAntim.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 src/channels/cookie-clicker/assets/bgBank.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 src/channels/cookie-clicker/assets/bgBlue.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 src/channels/cookie-clicker/assets/bgChance.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 src/channels/cookie-clicker/assets/bgCortex.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 src/channels/cookie-clicker/assets/bgFactory.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 src/channels/cookie-clicker/assets/bgFarm.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 src/channels/cookie-clicker/assets/bgFractal.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 src/channels/cookie-clicker/assets/bgGrandma.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 src/channels/cookie-clicker/assets/bgIdle.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 src/channels/cookie-clicker/assets/bgJava.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 src/channels/cookie-clicker/assets/bgLab.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 src/channels/cookie-clicker/assets/bgMine.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 src/channels/cookie-clicker/assets/bgPortal.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 src/channels/cookie-clicker/assets/bgPrism.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 src/channels/cookie-clicker/assets/bgShipment.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 src/channels/cookie-clicker/assets/bgTemple.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 src/channels/cookie-clicker/assets/bgTime.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 src/channels/cookie-clicker/assets/bgTower.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.
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 src/channels/cookie-clicker/assets/cursor.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 src/channels/cookie-clicker/assets/shine.png
Binary file added src/channels/cookie-clicker/assets/storeTile.png
193 changes: 193 additions & 0 deletions src/channels/cookie-clicker/buildings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
export type Building = {
id: number;
name: string;
total: number;
price: number;
background: string;
canvasRef: any;
savedCanvas: any;
storeRef: any;
yRandomization: number;
}

import grandmaBackground from './assets/bgGrandma.png';
import farmBackground from './assets/bgFarm.png';
import mineBackground from './assets/bgMine.png';
import factoryBackground from './assets/bgFactory.png'
import bankBackground from './assets/bgBank.png'
import templeBackground from './assets/bgTemple.png'
import towerBackground from './assets/bgTower.png'
import shipmentBackground from './assets/bgShipment.png'
import labBackground from './assets/bgLab.png'
import portalBackground from './assets/bgPortal.png'
import timeBackground from './assets/bgTime.png'
import antimBackground from './assets/bgAntim.png'
import prismBackground from './assets/bgPrism.png'

// export let cursor: Building = {
// id: 0,
// name: "Cursor",
// total: 0,
// price: 1,
// background: "",
// canvasRef: null,
// savedCanvas: null,
// storeRef: null,
// yRandomization: 0,
// }

export let grandma: Building = {
id: 1,
name: "Grandma",
total: 0,
price: 1,
background: grandmaBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 10,
}

export let farm: Building = {
id: 2,
name: "Farm",
total: 0,
price: 5,
background: farmBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 8,
}

export let mine: Building = {
id: 3,
name: "Mine",
total: 0,
price: 10,
background: mineBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 8,
}

export let factory: Building = {
id: 4,
name: "Factory",
total: 0,
price: 15,
background: factoryBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 0,
}

export let bank: Building = {
id: 5,
name: "Bank",
total: 0,
price: 30,
background: bankBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 4,
}

export let temple: Building = {
id: 6,
name: "Temple",
total: 0,
price: 50,
background: templeBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 2,
}

export let tower: Building = {
id: 7,
name: "Wizard Tower",
total: 0,
price: 75,
background: towerBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 5,
}

export let shipment: Building = {
id: 8,
name: "Shipment",
total: 0,
price: 100,
background: shipmentBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 3,
}

export let lab: Building = {
id: 9,
name: "Alchemy Lab",
total: 0,
price: 125,
background: labBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 4,
}

export let portal: Building = {
id: 10,
name: "Portal",
total: 0,
price: 150,
background: portalBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 4,
}

export let timeMachine: Building = {
id: 11,
name: "Time Machine",
total: 0,
price: 175,
background: timeBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 5,
}

export let antimCondenser: Building = {
id: 12,
name: "Antimatter",
total: 0,
price: 200,
background: antimBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 8,
}

export let prism: Building = {
id: 13,
name: "Prism",
total: 0,
price: 250,
background: prismBackground,
canvasRef: null,
savedCanvas: null,
storeRef: null,
yRandomization: 1,
}
Loading
Loading