Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Are you still having trouble getting the jar to show? Getting the file structure right definitely seems frustrating :|

This seems to be the sort of applet wrapping and whatnot that itch does on their end. Meaning the entry point they need is the class that either 1) runs the main class that you first call in your application, or 2) is defined in your (Web Start?) settings as the launch applet.

Basically, whatever class starts your game is what they need. (If they want the package as well, it'd be something like myPackageName.myFirstClassName instead, or possibly myPackageName.myFirstClassName.class since they don't seem to add the .class on their end.) I'm not sure if they actually need that "io.itch." before everything or if it was just an example.

You'll have to play around with it and see what works :o

\ \ Just as an aside, since it looks like you were using them in "Fly Squirrel Fly": I also read that jFrames do not run on their own in browsers; they need to be replaced with jApplets (which are the web equivalent & function similarly) for web use. That may be the issue if you have the class right but it's not running.

(Again, I haven't done applets before, so double-check my facts here lol.)

Hey Holland, thank you so much! man, I'm so glad I joined itch, as these conversations have made me question my approach to creating games (Java not so ideal). So, I ended up asking the person that supplied the javacode on YouTube (ForeignGuyMike) and it's in Java "Swing".
He replied "I wouldn't use Swing for games anymore. Best if you just port this to some gaming framework".

Also, The more I talk to people on here, I believe this is to do with security concerns with Java in the future, and I'm not using jApplets, I am using jFrames, so that may be an issues also that I would have to iron out.

....I did learn a bit in eclipse about setting this entry point, but I'm feeling like overall I need to revamp my approach.

So, I'm going to change directions and spend my time learning C# and playing with Unity for beginners! Thanks again.

(1 edit)

No problem :) Glad you're figuring things out!

Yeah, doing games in Java is a little rough, especially Java/Swing. (Java/FX is supposedly a little easier to control graphics-wise but will have the same security issues.) It's great for desktop applications, but game design is way easier in engines dedicated to it.

Good luck with Unity! You'll enjoy C#. I found transitioning into it from Java was really nice.