Can eater
Can eater
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
It is still pretty slow but I am trying to reduce the FPS and UPS of the game and see if there's a difference
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Thanks
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Aka the console line?
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Sorry I am unsure of what you mean by developer tools. Since I'm relatively new to java programming what are some examples that I should check in my code for?
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
At least the video game displayed this time... speeding up the FPS and the speed of the game rn on CheerpJ is the main issue for me atm
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Thanks a lot for your help - while I could get the game to show up, it is still extremely slow. Nonetheless, thanks a lot for nudging me in the correct direction regarding modifying my game loop!
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Thanks for all the help so far!
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
I think it can be accessed via this google drive link
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
https://github.com/rentsdue/PlatformGameProject The jar file is on this repository (I couldn't send it via discord since I don't have Nitro).
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
No description
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
If this is the issue, do I need to fix this by changing the way images are rendered in my jar file? As I am a beginner to java programming, I am unsure how to proceed forwards with this step. Thanks again!
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
public static BufferedImage[] GetAllLevels() {
List<String> levelNames = Arrays.asList("1.png", "2.png", "3.png", "4.png", "5.png", "6.png", "7.png", "8.png", "9.png", "10.png");
BufferedImage[] levels = new BufferedImage[levelNames.size()];

for (int i = 0; i < levels.length; i++) {
try (InputStream is = LoadSave.class.getResourceAsStream("/levels/" + levelNames.get(i))) {
if (is == null) {
System.err.println("File not found: " + levelNames.get(i));
System.exit(1);
}
levels[i] = ImageIO.read(is);
} catch (IOException e) {
e.printStackTrace();
}
}

return levels;
}
public static BufferedImage[] GetAllLevels() {
List<String> levelNames = Arrays.asList("1.png", "2.png", "3.png", "4.png", "5.png", "6.png", "7.png", "8.png", "9.png", "10.png");
BufferedImage[] levels = new BufferedImage[levelNames.size()];

for (int i = 0; i < levels.length; i++) {
try (InputStream is = LoadSave.class.getResourceAsStream("/levels/" + levelNames.get(i))) {
if (is == null) {
System.err.println("File not found: " + levelNames.get(i));
System.exit(1);
}
levels[i] = ImageIO.read(is);
} catch (IOException e) {
e.printStackTrace();
}
}

return levels;
}
It seems that I am loading them with system paths (and all the images are found within the "res folder" of my repository
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Tysm once more!
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Hopefully this is not something inherent to my game as it is runnable via cmd prompt.
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
No description
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Once again thanks for your help!
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
No description
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
No description
55 replies
LTLeaning Technologies
Created by Can eater on 10/9/2024 in #support
CheerpJ issue returned
Never mind the error is gone
55 replies