DDmax500
DDmax500
CC#
Created by DDmax500 on 2/23/2025 in #help
✅ Trying and learning WFO
Been messing around with toolbox and thought about making a cookie clicker type of game. Its still in the very early stages as im experimenting. But I got stuck here after multiplier does not add up.
public partial class Form1: Form
{
private bool flag = false;
private int count = 0;
private int multiplier = 0;
public Form1()
{
InitializeComponent();
}

public void Form1_Load(object sender, EventArgs e)
{


}

public void button1_Click(object sender, EventArgs e)
{
if (flag == true)
{
count *= multiplier;
}
else
{
count++;
}
label2.Text = "Count: " + count.ToString();
label4.Text = "Multiplier: " + multiplier.ToString();

}

private void label2_Click(object sender, EventArgs e)
{

}

private async Task button1_Click_1(object sender, EventArgs e)
{
if (count >= 10)
{
multiplier++;
count = count - 10;
flag = true;
}
else
{
label3.Text = "Not enough";

}
}

private void label3_Click(object sender, EventArgs e)
{

}
}
}
public partial class Form1: Form
{
private bool flag = false;
private int count = 0;
private int multiplier = 0;
public Form1()
{
InitializeComponent();
}

public void Form1_Load(object sender, EventArgs e)
{


}

public void button1_Click(object sender, EventArgs e)
{
if (flag == true)
{
count *= multiplier;
}
else
{
count++;
}
label2.Text = "Count: " + count.ToString();
label4.Text = "Multiplier: " + multiplier.ToString();

}

private void label2_Click(object sender, EventArgs e)
{

}

private async Task button1_Click_1(object sender, EventArgs e)
{
if (count >= 10)
{
multiplier++;
count = count - 10;
flag = true;
}
else
{
label3.Text = "Not enough";

}
}

private void label3_Click(object sender, EventArgs e)
{

}
}
}
5 replies
CC#
Created by DDmax500 on 2/22/2025 in #help
Stuck in tutorial hell
I want to learn OOP (object oriented programming) And also learn to think like a programmer, to do stuff on my own, solving problems and ect. I usually get stuck after getting too advanced. (for my level I suppose) I get an idea to add to my code and I start to try and make it a reality. And thats where I get stuck. Its either my code dosent work as planned or dosent work at all. or.. i just dont know where to start. I try to code but my mind is making it hard to come up with something.
28 replies
CC#
Created by DDmax500 on 11/13/2024 in #help
✅ New to C#
Recently ive not been doing great learning this as my first langauge. Im slowly losing interest in doing the same things. Anyone knows a good site that gives you fun troubleshooting questions?
7 replies
CC#
Created by DDmax500 on 11/2/2024 in #help
Learning further in C#
Hi. I've went to a basics course in C# and learnt arrays, variables, functions, loops, and some more stuff. I don't know what to do to contiune, I've looked up C# learning guides but theyre kinda like the course i took. Havent seen anything explain how programmers approach projects or how to actually write code and combine it with more code to create something desired. Can someone give me advice?
20 replies