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

Implement hit obstacle 🧱 #4

Closed
Biggy1606 opened this issue Nov 27, 2023 · 0 comments · Fixed by #7
Closed

Implement hit obstacle 🧱 #4

Biggy1606 opened this issue Nov 27, 2023 · 0 comments · Fixed by #7
Assignees

Comments

@Biggy1606
Copy link
Owner

Biggy1606 commented Nov 27, 2023

public class Obstakel
{
public int Xpos { get; set; }
//TODO: FINISH THIS
// ?
public ConsoleColor schermKleur { get; set; }
public string karacter { get; set; }
}

for (var i = 0; i < telje.Count(); i += 2)
if (hoofd.xPos == telje[i] && hoofd.yPos == telje[i + 1])
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
Console.SetCursorPosition(screenwidth / 5, screenheight / 2);
//TODO: FINISH THIS
//???
Console.SetCursorPosition(screenwidth / 5, screenheight / 2 + 1);
Console.WriteLine("Dein Score ist: " + score);
Console.SetCursorPosition(screenwidth / 5, screenheight / 2 + 2);
Environment.Exit(0);
}

KamilC00 added a commit that referenced this issue Nov 30, 2023
@KamilC00 KamilC00 linked a pull request Nov 30, 2023 that will close this issue
Biggy1606 pushed a commit that referenced this issue Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants