A little tip, as I’m doing something similar myself, the System.Console class has a Clear() method which does exactly what you think it does.


Thank you! i was trying to find a way to clear but people on stackoverflow aren’t very specific. They just give you a link to 50 pages of code.
A bit too slow for a gameloop unfortunately. Better to use a char[] screen as the pixels, set cursor to 0, 0 and then call Console.Write(screen)
Then your updates just need to be x,y positions in the char array. Fairly easy to index into 1D arrays with 2D coordinates.
Anyway, this let me avoid flickering.
I just followed this guy and remade it in C#.
Code-It-Yourself! Tetris – Programming from Scratch (Quick and Simple C++) – YouTube
Give some explanation, what did you code?
idk really, i think it’s like a game made with text but you just walk around and theres no point. i just wanted to try somethinf out
Hi! I’m a .NET docs writer at Microsoft. I just want to tell you good work! This is exactly the kind of fun thing I like to do when I’m learning a new language!
Thanks!
My God, its beautiful!
Thanks!
Coming along nicely… are you addicted yet?!
Eh, depends on your definition of addicted ๐Ÿ˜€
Looks like your going to be a rogue-like game developer!
Eh i like 2D shooter games like stick fight the game more, but sure i’ll try in a few years when i actually know what i’m doing!
Cool! Succes with learning C# and .NET, you’ll find that it’s a very potent powerful tool.
Yeah, i only knew python before, you can do plenty more stuff with c#.
Good work and keep it up. I just started the c# transition a few weeks ago and itโ€™s been going pretty smooth so far. I was a vb.net developer before that though and that helps a lot.
Thanks and yeah if you knew another language before learning one it goes a lot easier.
If you were feeling up to it, another way you could go about the movement would be a 2d array, info you could read here :

https://www.tutlane.com/tutorial/csharp/csharp-multidimensional-arrays

I would use a bool value for it, and when they move make the next element in the array true and the current one(where they were, false). This would be some good practice. Good luck.
Didn’t get to learn much about lists and arrays yet, i will try it when i do!
niiiiice
thanks!
C# devs
null reference exceptions

source