python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Reading a 2d grid from a txt file into a vector of vectors
I don't have much experience with vectors and for this problem I need to be able to read in a txt file that contains a grid that looks like this:
I know that I want to put it into a vector of vectors...
Justin Li
Votes: 0
Answers: 1
How do i keep my player in pygame from going off of the screen
So i've been working lately on some 2D game for my school's final project...
And i needed to make my player or the controlled object so it doesn't go off of the screen/window
I've only managed to make...
Amine Khiari
Votes: 0
Answers: 1
2D Segment and Infinite Line Intersection Algorithm
I am trying to build logic to detect when lines might intersect by extending only one of the lines.
Here, we have have segments. A, B, C, D, E, F. Each segment will have "Two Points".
We al...

Sam
Votes: 0
Answers: 1
Unity 2D URP Light: How do I prevent that an object is affected by self shadow of another object
I'm trying to recreate my old 2D top down game (developed with Monogame) in Unity.
For lighting, there is now a usable 2D light (URP) that casts shadows based on the light source in relation to a poly...
moo.h
Votes: 0
Answers: 0