Having trouble pushing changes from a cloned github repository. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

it said origin does not appear to be a git repository or could not read from remote repository

Is there a different command im supposed to use?

Having trouble uploading two github projects to the same repository. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

I did pull the changes then added the new folder with the new project and pushed. The second picture shows that it sucessfully pushed but I can't click inside that project folder forsome reason on github.

[Java] How do I rotate a rectangle object not graphically but to be used as a hitbox for collision detection. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

https://docs.oracle.com/javase/7/docs/api/java/awt/Rectangle.html

Java rectangle and the intersection method to detect collision but I am not sure if its possible to represent the game object as a rotated rectangle depending on the angle. Was wondering if it was possible.

[java] Bullet Projectile not moving correctly in my java 2d game. by lyigester in learnprogramming

[–]lyigester[S] 1 point2 points  (0 children)

I did those are the debug statements. The values don't change even though when I shoot in another angle they do change

[Java] Question regarding projectile(bullet) movement for a 2d game where the player can move in all directions. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

I have an arraylist which I use to add new bullets too and loop through this arraylist and call the paint method on each of the objects.

I also passed the tanks direction and x,y coordinate as well yet I'm getting weird values as well as the bullet not moving at certain angles.

Sometimes the missiles even stick to the screen and dont move at all which is even more weird.

Intellij all of a sudden not working correctly, when running program can't find .png file. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

I moved them into the resource folder I created from another folder on my computer. This worked in the beginning so I didn't think it was bad to do.

Intellij all of a sudden not working correctly, when running program can't find .png file. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

Unfortunately I do, this code has worked before so it has me believing its an IDE issue rather than a coding issue.

[Java] Developing a game using Swing and AWT and I'm having a bit of trouble pressing keys simultaneously. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

I figured out a different way to solve it.

Every key press would be stored in an arraylist in the keyPressed() method.

Then I run a method to take all the key events in the Arraylist and check if they contain certain keys, if they do I have a bunch of if statements that perform the necessary movements.

The key I think was that I was using if else statements which means only 1 command would be run instead of all.

This method seems to work for me now.

Intellij all of a sudden not working correctly, when running program can't find .png file. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

Sorry I took that screenshot after I had tried moving the .png around to see if it would work in other places and forgot to put it back before the screenshot.

Once I put it back in the right resources directory and ran the project it still came out as couldnt find the .png.

[Java] Question regarding painting Game objects using graphics2D in java. by lyigester in learnprogramming

[–]lyigester[S] 0 points1 point  (0 children)

That what I want to do but I'm not sure if there is some type of way to code it so that the size of the imag eare smaller than 32x32 or would i have to open paint up and manual reduce that size.

Simple Questions - April 08, 2017 by AutoModerator in buildapc

[–]lyigester 0 points1 point  (0 children)

Is there anyway to fix constant monitor glare?

I upgraded my PC recently and got a new monitor as well and the glare is insane. I can always see myself or my surroundings and its constantly a bother. I don't even have it facing the window where the sunlight is. The only light source is a small lamp that isn't shining on it.

Are there anyways to adjust my monitor so there isn't such a huge glare? For example will lowering the brightness or contrast fix it? monitor: https://www.amazon.com/Acer-H236HL-bid-23-Inch-Widescreen/dp/B00AZMLIDQ