KleinRiese
KleinRiese
CC#
Created by KleinRiese on 9/21/2024 in #help
✅ typeof()?
I am trying to arrange objects in a hashmap: The key should be the class and the Value a List with the instances of this class. Is typeof ()the right function for this?
11 replies
CC#
Created by KleinRiese on 9/17/2024 in #help
✅ OpenGl Problem : I am trying to render a square, but I am getting a black Screen
I am using C# witch OpenTk. Here is the Code:
13 replies
CC#
Created by KleinRiese on 9/14/2024 in #help
✅ Problem with a Recursion Function
I am currently programming a Snake-Clone and want to count the Parts(length of the tail) of the snake. Each part has a reference to the next part, called "next tail part". Is the recursion-function the problem, or something else? I am Printing the Result, by calling the function in the Debug.Log function : Console.WriteLine(DebugSnakeParts()); Function: private int DebugSnakeParts() { if(nextTailPart == null) { return 1; }else { return DebugSnakeParts() + 1; }
3 replies