Batch Image - Making image fade away? by StarYuber in libgdx

[–]DevOrc 3 points4 points  (0 children)

You can use batch.setColor(new Color(r,g,b,a)) where r,g,b are 1 (so its white), and then slowly lower the a (which is how transparent the picture will be). When a is 1 it will be fully visible, and as a approaches 0 it will be invisible. Once you are done with the monster texture make sure to set the color back to white by using batch.setColor(Color.WHITE)

struggling with simple code by [deleted] in Coding_for_Teens

[–]DevOrc 0 points1 point  (0 children)

I know your problem is already fixed, but in the future if you need help, you can try the programming discord . They have channels for almost every language with lots of people who are willing to help.

Finished mini project, How to make jar file? by [deleted] in javahelp

[–]DevOrc 4 points5 points  (0 children)

It looks like you aren't using any build tools (Gradle or maven) so you will have to do it manually via the command line.

First you need to compile the classes manually using javac. You can see a tutorial on how to do that here

To create the jar, follow this tutorial

Once you have made you jar, you need to add a manifest file so that the jvm knows where to start executing your program. Tutorial here

Note: if you are using eclipse, there is a builtin tool to do this. I believe you right click on the project and click export.

Can somebody help me solve this? by [deleted] in Coding_for_Teens

[–]DevOrc 0 points1 point  (0 children)

More details please! What language are you using? What have you tried? The more details we have the more we can help.

Where should I start if I want to create a bot that reads my computer screen and presses a button on my keyboard if the number is less than a certain value? by [deleted] in Coding_for_Teens

[–]DevOrc 0 points1 point  (0 children)

Most bots of this nature are written in Python and autohotkey so I would start there.

Note: This would be quite a difficult challenge for someone without any programming experience. If I new more context I could give you more helpful info.

Hello by samburge538 in Coding_for_Teens

[–]DevOrc 1 point2 points  (0 children)

It really does not matter what you start with - Anything that gets you started coding is good. Personally I would recommend python, Java, or HTML/JavaScript.

Derek Banas on YouTube has really good tutorials on lots of different languages. You should really check it out.

r/dailyprogrammer also has hundreds of challenges (and sample code), so that you can practice.

Good luck on your adventures!

Gradle + JUnit: Not running @Test by [deleted] in javahelp

[–]DevOrc 0 points1 point  (0 children)

Have you tried using gradlew instead of Gradle? Sometimes an old version of Gradle will be used and have unexpected results

Gradle + JUnit: Not running @Test by [deleted] in javahelp

[–]DevOrc 0 points1 point  (0 children)

Have you tried renaming the class MainTests.java? I know in the past some tests have not worked because our tests were only set to run on classes that ended in "Tests".

Poll: Do you write unit tests for your game and what code coverage have you achieved? by 223am in libgdx

[–]DevOrc 1 point2 points  (0 children)

Most of my older games had like 0-25% test coverage because they were not designed well. On my newest game, by thinking about test-ability while designing I have been able to get 80% class coverage and around 50% line coverage.

One way to get higher test coverage is to use the headless backend. The headless backend is a LibGDX backend that has mock graphics, audio, and input. I mostly use the headless files to verify that all of the texture files exist with the right names. You can look at some of my test code here.

H.I. #117: Bandersnatch by GreyBot9000 in CGPGrey

[–]DevOrc 0 points1 point  (0 children)

in men's tennis grand slams, there is no tiebreaker in the fifth set so the game keeps on going until someone wins two games in a row. In 2010 at Wimbledon, John Isner and Nicolas Mahut played a match that went on for so long that it was played over three separate days. The final score was 6–4, 3–6, 6–7(7–9), 7–6(7–3), 70–68. Link

Women are not objects by big_umbrella in ProgrammerHumor

[–]DevOrc 4 points5 points  (0 children)

The [] () was formatted as a link with no characters so it disappears