Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
DynomiteWaffle committed May 8, 2024
1 parent 8f94acb commit d6e35a8
Show file tree
Hide file tree
Showing 3 changed files with 412 additions and 0 deletions.
115 changes: 115 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,117 @@
# CCG
my custom deck building/card game


RULES
roll for start player with lowest roll goes first
opponent shuffles your deck and you shuffle theirs
both players place top card face up (card must be down at all times)

turn:
roll dice
for every dice that matches or is bigger than the min roll do 1 damage
remove dead cards
pass dice to opponent(its their turn)

e.g attack
g5 r2 b6

--example card
earth 1-5 .. 1<g5 so it does damages
fire 6-0 .. 6>r2 so it does NO damge
water 3-3 .. 3<b6 so it does damage

this card would do 2 damage

using types:
if the opponents card is a stronger type -1 overall damage
if the opponents card is a weaker type +1 overall damage
note: netral cards dont apply to thease rules


if done damage increase opponents damage inicator
if opponents damage is greater or equal to max damage(default 3) then place it in opponets discard pile and replace with top card of their deck and reset their damage indicator

if opponent has no cards left you win
note: heath can be shown with 6 sided dice

DECK Rules:
max cards 6
max power 18
Default Health 3
max health 6
Default Type: Netral
note: change these for custom gameplay

building a card:
Choose a type
life/plant > water
fire > life/plant
water > fire
netral
each of these have to numbers attached
min dice roll - cost(not nessasary usefull for deck validation)
2 - 4
min dice roll 1-6
cost = 6 - min dice roll

custom health
every heart increased +2 cost
every heart decreased -2 cost
note: clearly show health of card with symboles or -num/+num

all costs are added up and put in the totals section
total roll - total cost
total 4-1

decks cant exceed the max power which is all the cards total cost added together
decks cant exceed the max cards

note: cards with 0 cost are banned
note: putting total cost on cards is advised for easy deck validation

your deck may look like this
Susy Baka
image
-------
earth 1-5
fire 1-5
water 1-5
total 3-15

Amoung Us
image
-------
earth 2-4
fire 3-3
water 1-5
total 6-12

deck total cost 30(its invalid for default rules)

Cards Visual Rules:
clearly show different attacks with color/symboles/words
clearly show health with symboles/words/+num -num
clearly show type with symbole/word/color

color notes:
fire = red
water = blue
life/plant = green
netral = grayscale color

OBJECTIVE:
eliminate all you opponents cards













60 changes: 60 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<header>
<script src="main.js"></script>
</header>
<body onload="load()">
<section id="setup" hidden="false">
<input type="file" id="rules" accept=".json" oninput="changerules()">Default Rules</input>
<input type="checkbox" id="userules"></input>
<p></p>
<input type="file" id="P1Deck" accept=".json" oninput="checkdeck('P1Deck')">Player 1 Deck </input><p1 id="P1DeckInvalid">InValid</p1>
<p></p>
<input type="file" id="P2Deck" accept=".json" oninput="checkdeck('P2Deck')">Player 2 Deck </input><p1 id="P2DeckInvalid">InValid</p1>
<P></P>
<button onclick="start()">Start Game</button>


</section>


<section id="game" hidden="true">

<section id="controls">
<button onclick="roll()">Roll</button>
<input type="checkbox" id="autoroll">AutoRoll</input>
</section>


<section id="P1Deck">

</section>
<section id="P2Deck">

<!-- cards -->
<section id="P1">
<img id="Icon" width="256" src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse4.mm.bing.net%2Fth%3Fid%3DOIP.ML2_TLkvZLNDjoHv_gsboAAAAA%26pid%3DApi&f=1&ipt=ce6172f718d285a0aca087ba8e7ac1ad4a60d3aa1193e68e4fe710213835e3bc&ipo=images">
<P></P>
<p1 id="Health">OH</p1>
<p1 id="Cost">OC</p1>
<p1 id="rRoll">OR</p1>
<p1 id="gRoll"></p1>
<p1 id="bRoll"></p1>
</section>
<p1 id="redRoll">R</p1>
<p1 id="greRoll">G</p1>
<p1 id="bluRoll">B</p1>
<section id="P2" >
<img id="Icon" width="256" src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse2.mm.bing.net%2Fth%3Fid%3DOIP.upE9Htem55ODhn5LcjcAXAAAAA%26pid%3DApi&f=1&ipt=3992403bd68d02fad7c1e25809d30f19936cf599c705d736062f0667c6f62579&ipo=images">
<P></P>
<p1 id="Health">UH</p1>
<p1 id="Cost">UC</p1>
<p1 id="rRoll">UR</p1>
<p1 id="gRoll"></p1>
<p1 id="bRoll"></p1>
</section>
<p id="winner"></p>
</section>
</section>


</body>

0 comments on commit d6e35a8

Please sign in to comment.