Binary_CoderLvl 2
- Edited
DragonFireGames Can you send me the card creator?
DragonFireGames Can you send me the card creator?
my big brother wants a card also
i'm working on it
I haven’t seen this let me get the card creator
I'm gonna make mine soon I'm still mourning the death of my old card
createCard
({```
name:"ItsDannyBruh",
rarity:"Rare",
health:2000,
image:"https://gamelab.freeflarum.com/assets/files/2024-01-20/1705781861-434554-image.png",
offx: 1,
offy: 0,
description: "Creator of an addicting game called Barricade. Former clout chaser. Also has 2nd most viewed post on forum.",
hpcol: 255,
moves:[{
title:"Clout",
description:"Use random memes on the internet and clout to distract and attack your enemy",
cost:2,
cooldown:1,
use:function(opp) {
Opp.health -= 500;
Var dice = randomNumber(1, 3);
If (dice == 1 || 3){
opp.status.push(“Dumb”);
}
}
},{
title:"Barricader",
description:"Blocks an attack and deflects their attack back to the opponent",
Cost: 7,
Cooldown: 1,
use:function(opp) {
Opp.health -= 9999;
Var dice = randomNumber(1, 5);
If (dice == 1) {
Self.health = 400;
}
}
},{
ItsDannyBruh Your card cuts off on the third move. Is there supposed to be another one? I'd suggest putting it between triple tick marks: ``` to put it as code.
Codemon forgot about that here’s third attack
Bonker Bananas
Rapidly throws bananas at opponent for 7 seconds.
createCard({
name:"Phoenix",
rarity:"Common",
health:900,
image:"https://phoenixcreativearts.co.uk/wp-content/uploads/2021/09/ae064181a2f68f13edc5e5d08276f95d_cropped_optimized.jpg",
offx: 0,
offy: 0,
description: "An inactive and inexperienced coder that enjoys gaming.",
hpcol: (what does this do),
moves:[{
title:"Bad Project",
description:"Create a horribly made project and have the opponent play it, causing them
to take 50 damage",
cost:0,
cooldown:1,
use:function(opp) {
// No special effects. Should I make this have a cost of 1?
}
},{
title:"Grade Bragging",
description:"Brags about good grades dealing 90 damage and making the enemy feel Stupid for 2 turns, but
causes this card to become Arrogant for 4 turns.",
cost:3,
cooldown:2,
use:function(opp) {
// I'm not sure if this is how status effects work, but please correct me on them if this isn't how they work.
}
},{
title:"Anger Outburst",
description:"Quickly builds anger and takes it out on the opponent, dealing 200 damage no matter
what and makes the opponent Irritable. does 300 damage if this card is Irritable.",
cost:8,
cooldown:5,
use:function(opp) {
// Plz nerf this if it is too powerful. This is supposed to always deal the set damage, even if
the opponent has something to reduce or block the damage (Ex.Ravage takes 200 or 300 even if he has
Impenetrable Vault, ItsDannyBruh would still take 200 damage with Barrier, but I also would (Barrier's ability).
}
}],
});
For abilities, I would be immune to Tired, but have a 2x weakness to Inactive.
i made a small change so i could change my font size programmatically.
// changed drawCard()
function drawCard(inst,x,y,wid,hig) {
var p = inst.parent;
var card = inst.parent.card;
var rcol = rarityColors[p.rarity];
//*
if (p.rarity == "God") {
colorMode(HSB);
rcol = color(frameCount*10 % 360,100,100);
}
//*/
card.clear();
//
card.noStroke();
card.fill("#141e1f");
card.rect(0,0,500,700,30);
//
if (p.isEX) {
card.image(card.buf1,0,0,500,350);
} else {
card.image(card.buf1,50,60,400,280);
card.strokeWeight(5);
card.stroke(rcol);
card.noFill();
card.rect(50,60,400,280,10);
}
//
if (p.isEX) {
card.stroke(0);
card.strokeWeight(2);
card.fill("rgba(0,0,0,0.6)");
card.textSize(30);
} else {
card.stroke(rcol);
card.strokeWeight(2);
var nc = color(rcol);
nc._array[3] = 0.2;
card.fill(nc);
card.textSize(30);
}
var w = card.textWidth(p.name)+40;
card.beginShape();
card.vertex(25,15);
card.vertex(15,55);
card.vertex(w,55);
card.vertex(10+w,15);
card.endShape(CLOSE);
//
card.noStroke();
card.fill(rcol);
card.textSize(20);
w = card.textWidth(p.rarity)+35;
card.beginShape();
card.vertex(23,50);
card.vertex(15,75);
card.vertex(w,75);
card.vertex(8+w,50);
card.endShape(CLOSE);
//
card.textSize(30);
card.textAlign(LEFT,CENTER);
card.fill(255);
card.noStroke();
card.text(p.name,32.5,35);
card.textSize(20);
card.fill(0);
card.text(p.rarity,29,62.5);
card.textSize(30);
card.fill(p.hpcol);
card.textAlign(RIGHT,CENTER);
card.text(p.health+" DEF",480,35);
if (inst.health < p.health) {
card.fill("red");
card.text((inst.health-p.health)+" HP",480,65);
}
//
card.fill(255);
card.textAlign(LEFT,TOP);
card.textSize(19);
card.text(p.description,20,355,460);
for (var i = 0; i < p.moves.length; i++) {
card.textAlign(LEFT,TOP);
if (p.moves[i].fontSize) {
card.textSize(p.moves[i].fontSize);
}
card.text(p.moves[i].title+":\n"+p.moves[i].description,26,435+85*i,455,75);
card.textAlign(RIGHT,TOP);
card.textSize(19);
card.text(p.moves[i].cost+" ⚛"/*+" "+p.moves[i].cooldown+"❄"*/,26,435+85*i,455,75);
}
///
card.strokeWeight(5);
card.stroke(rcol);
//card.stroke("#00adbc");
for (var i = 0; i < p.moves.length; i++) {
var hover = mouseRect2(x,y,wid,hig,500,700,20,430+85*i,460,75);
if (hover) card.fill("rgba(255,255,255,0.6)");
else card.noFill();
card.rect(20,430+85*i,460,75,10);
}
///
card.noFill();
card.stroke(rcol);
card.strokeWeight(10);
card.rect(5,5,490,690,20);
///
image(card,x,y,wid,hig);
}
// my actual card
createCard({
name:"Blockyheadman",
rarity:"Legendary",
health:5600,
image:"https://avatars.githubusercontent.com/u/80011716?v=4",
offx: 0,
offy: 0,
description: "A random guy who showed up one day and learned programming from nowhere.",
hpcol: 255,
moves:[{
title:"New Project",
description:"Start yet another project you won't finish, deals 200 ATK over 3 turns",
cost:2,
cooldown:2,
use:function(opp) {
// Deal 200 ATK over 3 turns.
}
},{
title:"Long Gone",
description:"I need a break. Avoid attacks for 2 turns.",
cost:4,
cooldown:3,
use:function(opp) {
// Wait 2 turns here
}
},{
title:"Try a real game engine",
description:"Use Godot? But I like CDO. Flip a coin. if heads, convert to using Godot and deal 800 ATK. If tails, keep using CDO and deal 200 ATK to the other player and 100 ATK to yourself.",
fontSize: 14,
cost:8,
cooldown:4,
use:function(opp,self) {
// Do the damage here
}
}],
});
DragonFireGames so like when is the game coming out
Well, I'm a bit busy at the moment but, I do usually get back to projects.
I implemented the functions for the moves, but I'm having trouble putting in the "Grade Bragging" ability so that the effects are only in play for a specific amount of turns. Also, I'm not sure whether "Bad Project" should cost 1 energy or not. You can choose which one. Also, I want "Anger Outburst" to always deal damage, even if the opponent has something to reduce or block the damage (ex. Ravage's "Impenetrable Vault", Blockyheadman's "Long Gone", or ItsDannyBruh's "Barricader"). I think everything else is good, so can you put it in? Here's the code:
name: "Phoenix",
rarity: "Uncommon",
health: 900,
image: "https://phoenixcreativearts.co.uk/wp-content/uploads/2021/09/ae064181a2f68f13edc5e5d08276f95d_cropped_optimized.jpg",
offx: 0,
offy: 0,
description: "An inactive and inexperienced coder that enjoys gaming.",
hpcol: 255,
moves: [{
title: "Bad Project",
description: "Create a horribly made project and have the opponent play it, causing them to take 50 damage",
cost: 0,
cooldown: 1,
use: function (opp) {
opp.health -= 50;
}
},
{
title: "Grade Bragging",
description: "Brags about good grades dealing 90 damage and making the enemy feel Stupid for 2 turns, but causes this card to become Arrogant for 4 turns.",
cost: 3,
cooldown: 2,
use: function (opp, self) {
opp.health -= 90;
opp.status = "Stupid";
self.status = "Arrogant";
}
},
{
title: "Anger Outburst",
description: "Quickly builds anger and takes it out on the opponent, dealing 200 damage no matter what and makes the opponent Irritable. Does 400 damage if this card is Irritable.",
cost: 8,
cooldown: 5,
use: function (opp, self) {
if (self.status === "Irritable") {
opp.health -= 400;
} else {
opp.health -= 200;
}
}
}
],
});```
Phoenix
can you surround the code with ```, it makes it easier to copy
it makes this
DragonFireGames Done! Tell me when you have added it to the game.