-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
4,729 additions
and
4,377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"cSpell.words": [ | ||
"cppkies" | ||
"Cppkie", | ||
"cppkies", | ||
"prefs" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,129 @@ | ||
<h1 id="title"> Cppkies </h1> | ||
# Cppkies | ||
|
||
![Cppkies](./static/CppkiesLogo.png?raw=true) | ||
|
||
## Table of Contents | ||
- <a href="#GettingStarted">Getting Started</a> | ||
- <a href="#WhatIsCppkies">What Is Cppkies?</a> | ||
- <a href="#Examples">Examples</a> | ||
- <a href="#Goals">Future Goals</a> | ||
- <a href="#ChanglogAndCredits">Changelog & Credits</a> | ||
|
||
<h3 id="GettingStarted"> Getting Started </h3> | ||
- [What Is Cppkies?](#What-is-Cppkies?) | ||
- [Getting Started](#Getting-Started) | ||
- [Using NPM](#Using-NPM) | ||
- [Importing through `Game.LoadMod`](#Importing-through-`Game.LoadMod`) | ||
- [Documentation](#Documentation) | ||
- [Examples](#Examples) | ||
- [Roadmap](#Roadmap) | ||
- [Changelog & Credits](#Changelog-&-Credits) | ||
- [Credits](#Credits) | ||
- [Changelog](#Changelog) | ||
|
||
## What is Cppkies | ||
|
||
Cppkies is a modding framework for the game [Cookie Clicker](https://orteil.dashnet.org/cookieclicker/). It intends to make modding the game very simple. | ||
|
||
## Getting Started | ||
|
||
There are 2 ways of using Cppkies, installing with NPM or importing though `Game.LoadMod` | ||
|
||
### Using NPM | ||
|
||
Using Cppkies with NPM is the reccomended way of using Cppkies, since you can split your code into files and use typescript. | ||
|
||
To use Cppkies using NPM, you must install it first: | ||
|
||
```sh | ||
npm i cppkies | ||
# Or if you are using yarn... | ||
yarn add cppkies | ||
``` | ||
|
||
Then you can use a bundler, like Webpack or Rollup, to bundle them. | ||
|
||
```ts | ||
import * as Cppkies from "cppkies" | ||
Cppkies.onLoad.push(() => { | ||
new Cppkies.Upgrade("Hello, World!", "My first upgrade!", 7, [10, 5]) | ||
}) | ||
``` | ||
|
||
### Importing through `Game.LoadMod` | ||
|
||
Importing Cppkies through `Game.LoadMod` is not reccomended since you can't split your code into multiple files or use typescript. | ||
|
||
To import it, you need to start your mod with | ||
|
||
```js | ||
Game.LoadMod("https://unpkg.com/cppkies") | ||
``` | ||
|
||
For example: | ||
|
||
```js | ||
Game.LoadMod("https://unpkg.com/cppkies") | ||
Cppkies.onLoad.push(() => { | ||
new Cppkies.Upgrade("Hello, World!", "My first upgrade!", 7, [10, 5]) | ||
}) | ||
``` | ||
|
||
<h4 id="WhatIsCppkies"> What is Cppkies? </h4> | ||
<p>Cppkies is a modding framework for the game <a href="cookieclicker.eu/cookieclicker">Cookie Clicker</a>. It intends to make modding the game very simple.</p> | ||
## Documentation | ||
|
||
<h3 id="Examples"> Examples </h3> | ||
The documentation is located [here](https://cppkies-team.github.io/Cppkies/#/Setup). | ||
|
||
<h3 id="Goals">Future Goals</h3> | ||
## Examples | ||
|
||
##### Goals | ||
- Yes | ||
Examples: | ||
|
||
<h3 id="ChanglogAndCredits"> Changlog & Credits </h3> | ||
### [Think Tank Building](https://github.com/Cppkies/Examples/ThinkTank) | ||
|
||
Credits : | ||
- TheGLander (ʐ̈ MANNNNNNN#2006) : | ||
- Programer | ||
- Bob (MasterOfBob777#8346) : | ||
This addon provides an example on how to create a new building new upgrades and new achievements. Sprites by "Bt Y#0895". | ||
|
||
### [LumpExample](https://github.com/Cppkies/Examples/LumpExample) | ||
|
||
This addon provides an example of creating a new lump type. | ||
|
||
### [BuffExample](https://github.com/Cppkies/Examples/BuffExample) | ||
|
||
This addon provides an example of creating a new buff type, and adding a buff type to golden cookies. | ||
|
||
### [GardenExample](https://github.com/Cppkies/Examples/GardenExample) | ||
|
||
This addon provides an example of creating a new plant<!--, and maybe a new soil type. Not sure if it's possible.-->. | ||
|
||
## Roadmap | ||
|
||
- [x] Buildings | ||
- [ ] Upgrades | ||
- [ ] Fortune Upgrades | ||
- [ ] Seasonal Upgrades | ||
- [ ] Heavenly Upgrades | ||
- [ ] Achievements | ||
- [ ] Garden Hooks | ||
- [ ] Temple Hooks <!-- Maybe? --> | ||
- [ ] Grimoire Hooks <!-- Maybe? --> | ||
- [ ] Lumps | ||
<!-- More? --> | ||
|
||
## Changlog & Credits | ||
|
||
### Credits | ||
|
||
- [TheGLander](https://github.com/TheGLander) (ʐ̈ MANNNNNNN#2006) : | ||
- Programer | ||
- [Bob](https://github.com/MasterOfBob777) (MasterOfBob777#8346) : | ||
- Programer | ||
- TheSkullyKO (Mistow OwO#0245) : | ||
- [TheSkullyKO](https://github.com/TheSkullyKO) (Mistow OwO#0245) : | ||
- Helped with Ideas | ||
- Klatamose (<a href="https://github.com/klattmose/">https://github.com/klattmose/</a>) : | ||
- [Klattmose](https://github.com/klattmose/) : | ||
- Gave us the idea to begin the project | ||
|
||
2/10/20 - V0.0.0 | ||
### Changelog | ||
|
||
18/3/20 - V0.1.0 Cppkie Crumbles | ||
|
||
- Created the docs with [Docsify](https://docsify.js.org/#/) | ||
- Redid the readme | ||
- Added Buildings API | ||
- Published to NPM | ||
|
||
10/2/20 - V0.0.0 | ||
|
||
- Created the github repo | ||
- Created the structure of a readme | ||
- Created the structure of a readme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import gameType, { FoolBuilding } from "./gameType"; | ||
import Game from "./gameType"; | ||
declare let Game: gameType; | ||
interface Art { | ||
base: string; | ||
xV: number; | ||
yV: number; | ||
w: number; | ||
rows: number; | ||
x: number; | ||
y: number; | ||
pic: string; | ||
bg: string; | ||
} | ||
export declare function createHooks(building: Building | Game["Object"]): void; | ||
export declare class Building extends Game.Object { | ||
constructor(name: string, commonName: string, desc: string, icon: [number, number], art: Art, cpsFunc: (me: Building) => number, buyFunction: () => void, foolObject: FoolBuilding, buildingSpecial: [string, string]); | ||
} | ||
export declare const defaultCps: (me: Building) => number; | ||
export declare const defaultOnBuy: () => void; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import { injectCode } from "./helpers"; | ||
import GameType, { Cppkies as CppkiesType } from "./gameType"; | ||
import gameType, { Cppkies as CppkiesType } from "./gameType"; | ||
declare global { | ||
interface Window { | ||
Game: GameType; | ||
Cppkies: CppkiesType | undefined; | ||
Game: gameType; | ||
Cppkies: CppkiesType; | ||
} | ||
} | ||
declare const master: { | ||
hooks: {}; | ||
injectCode: typeof injectCode; | ||
}; | ||
export default master; | ||
declare let CppkiesExport: CppkiesType; | ||
export default CppkiesExport; |
Oops, something went wrong.