Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (800)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (866)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Looking for source code resources  (Read 1356 times)
0 Members and 1 Guest are viewing this topic.
Offline hasen

Junior Newbie





« Posted 2019-12-13 12:20:30 »

I'm new to Java and LibGDX and find I learn well by examining source codes from games. I see a lot of platform games for LibGDX and a lot of overhead RGPs...but I want to make a top down shooter/rogue-like, and haven't found many source codes for them...at least not in the last year or so.

Thanks.
Offline VaTTeRGeR
« Reply #1 - Posted 2019-12-13 22:29:20 »

If you want to learn you better start at the LibGDX wiki and not by sifting through convoluted bodged-together hobby projects on github.

Also, literally the second thing you find when searching for "libgdx rpg site:github.com" on google already looks pretty damn polished and nice: https://github.com/mingli1/Unlucky
Offline hasen

Junior Newbie





« Reply #2 - Posted 2019-12-14 04:08:55 »

If you want to learn you better start at the LibGDX wiki and not by sifting through convoluted bodged-together hobby projects on github.

Also, literally the second thing you find when searching for "libgdx rpg site:github.com" on google already looks pretty damn polished and nice: https://github.com/mingli1/Unlucky
But that IS on Github? Also it's an RPG but I said all the source codes I found so far were RPGs and platform games...?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline VaTTeRGeR
« Reply #3 - Posted 2019-12-14 10:16:10 »

You wanted to make a top down shooter right? Adding some shooting mechanics to a top down rpg is piss simple. The hard parts are map/asset loading/handling, menu transitions, save states and basically everything except spawning a bullet and doing some intersection testing.

Quote
But that IS on Github?
The repo i linked does most of what you would need for a top down shooter in a seemingly professional fashion and assets are included, if that doesn't help you i don't know what could.

LibGDX provides all the facilities to implement a top down shooter out of the box, circle/ray<->box/triangle/etc collision and all kinds of easy to use abstractions, just read the manual and get accustomed to the framework.
Offline SugarBlood
« Reply #4 - Posted 2019-12-14 11:22:47 »

I wanted to do top-down shooter too Grin With LibGDX something like Alien Breed will be relatively easy, so yeah "just read the manual and get accustomed to the framework."
Offline hasen

Junior Newbie





« Reply #5 - Posted 2019-12-14 12:04:04 »

You wanted to make a top down shooter right? Adding some shooting mechanics to a top down rpg is piss simple. The hard parts are map/asset loading/handling, menu transitions, save states and basically everything except spawning a bullet and doing some intersection testing.

Well it's all hard in the beginning. I think you mean those parts are 'harder'.

The repo i linked does most of what you would need for a top down shooter in a seemingly professional fashion and assets are included, if that doesn't help you i don't know what could.

So there's hope for github after all.  Wink

LibGDX provides all the facilities to implement a top down shooter out of the box, circle/ray<->box/triangle/etc collision and all kinds of easy to use abstractions, just read the manual and get accustomed to the framework.

The reason I'm looking for source codes is because I hate reading manuals. Video tutorials are alright but I tend to get the most from analysing source codes, that's why I'm looking for them. The only element a top down rpg has in common with a top down shooter is the movement, everything else is different. RPGs also tend to be huge and bloated with all kinds of other stuff too. Those source codes tend to be the biggest of all.

I wanted to do top-down shooter too Grin With LibGDX something like Alien Breed will be relatively easy, so yeah "just read the manual and get accustomed to the framework."

Well I posted this because I hate using manuals to learn. I much prefer going through a source code to get used to the framework and how a game is put together in LibGDX. I found this useful for example https://github.com/ingriddev/Libgdx-Box2d-Platformer since it's quite bare bones but still has structure. Although it's not a top down shooter.
Offline VaTTeRGeR
« Reply #6 - Posted 2019-12-14 15:02:50 »

Quote
The reason I'm looking for source codes is because I hate reading manuals.
The LibGDX wiki is basically a collection of simple source code examples plus a brief explanation, it doesn't get much better than this Cheesy
Offline hasen

Junior Newbie





« Reply #7 - Posted 2019-12-14 15:53:12 »

Quote
The reason I'm looking for source codes is because I hate reading manuals.
The LibGDX wiki is basically a collection of simple source code examples plus a brief explanation, it doesn't get much better than this Cheesy

Ok that sounds good. I couldn't see where the source codes are from the index though: https://github.com/libgdx/libgdx/wiki
Offline VaTTeRGeR
« Reply #8 - Posted 2019-12-14 21:08:38 »

You're almost there buddy, keep your eyes wide open for that sweet sweet source code Cheesy
Offline hasen

Junior Newbie





« Reply #9 - Posted 2019-12-15 04:51:56 »

You're almost there buddy, keep your eyes wide open for that sweet sweet source code Cheesy

Ok there's no source code...you must be so funny at parties.  Roll Eyes
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline VaTTeRGeR
« Reply #10 - Posted 2019-12-15 12:58:20 »

Almost every single topic there has example snippets of code, i'm amazed at how you can navigate around that so elegantly: https://github.com/libgdx/libgdx/wiki/Rendering-shapes

Don't you think this or this here is more up to your speed Roll Eyes
Offline philfrei
« Reply #11 - Posted 2019-12-15 20:31:30 »

We were all beginners once. If doing things right, we will be a beginner many times over in many different spheres. I can certainly understand checking for code examples if starting out in a new area. They can be a big time saver.

If I knew of a good example, I would point to it. Someone else may yet provide a link to something useful. I suggest asking at a couple other sites as well, but please follow up here if you get a solution worth sharing.

Sometimes attempts to help don't help, but one can still appreciate a good intention.

Is the request for a rare combination of genres? This could be a situation where the best course turns out to just push forward, reinventing the wheel so-to-speak. Then, make the reinvented wheel available to others via github and tutorial. Or post either or both on JGO. That helps build the community.

music and music apps: http://adonax.com
Offline FabulousFellini
« Reply #12 - Posted 2019-12-16 20:46:05 »

Like Phil said, we're all beginners first.  But you just can't come and ask how to do it...Whatever source code anyone gives to you will be an example of probably their game, and how THEY did it, and there's more than one way.   What you need to do, is study this forum, and google and SO, and try to do the first thing, and when you cant figure it out, post examples of what you have tried to do and ideas of why it won't work.   You will get a lot more help this way.   One thing at a time.

-FabulousFellini
www.fabulousfellini.com
Offline FabulousFellini
« Reply #13 - Posted 2019-12-16 20:50:06 »

I'm new to Java and LibGDX and find I learn well by examining source codes from games. I see a lot of platform games for LibGDX and a lot of overhead RGPs...but I want to make a top down shooter/rogue-like, and haven't found many source codes for them...at least not in the last year or so.

Thanks.

Also, you can just take the source and copy someones game and it magically works.   Even if the most successful person on this form gave you all the code, it wouldn't work when you try to run it.   Even the basics take years of learning.   Make pong or a flappy birds game with LibGDX first, so you get the basics.  I guarantee if you just look at source codes for all sorts of different games you'll be in the same place as you started.

-FabulousFellini
www.fabulousfellini.com
Offline SteveSmith
« Reply #14 - Posted 2019-12-17 15:10:04 »

I say, dive into whatever source code you can find, and aim high.  The worst that can happen is that you'll learn something.  Smiley

FWIW, I've got a few LibGDX repos, my best probably being https://github.com/SteveSmith16384/SimplePlatformer .  It's a multiplayer platformer (yes way) with collectables and mobs, and I designed it to be easy to understand and thus extended by others.  It's a side-view game, but the only difference between side view and top-down is the gravity component.

Java Multiplayer FPS Engine - https://github.com/SteveSmith16384/SteveTech1
Offline FabulousFellini
« Reply #15 - Posted 2019-12-18 14:33:36 »

I say, dive into whatever source code you can find, and aim high.  The worst that can happen is that you'll learn something.  Smiley

FWIW, I've got a few LibGDX repos, my best probably being https://github.com/SteveSmith16384/SimplePlatformer .  It's a multiplayer platformer (yes way) with collectables and mobs, and I designed it to be easy to understand and thus extended by others.  It's a side-view game, but the only difference between side view and top-down is the gravity component.

I agree with this...you put a lot of source code up that is very helpful.   If you dig deep enough in threads you can find the source code to my game (hint it's here: https://github.com/IanFell/GameTemplate/tree/master/MyGame-core/src  ) but I dunno if you wanna look at that because I dunno if it's technically correct, but it works.

-FabulousFellini
www.fabulousfellini.com
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (338 views)
2019-09-04 15:33:17

hadezbladez (5119 views)
2018-11-16 13:46:03

hadezbladez (2001 views)
2018-11-16 13:41:33

hadezbladez (5388 views)
2018-11-16 13:35:35

hadezbladez (1113 views)
2018-11-16 13:32:03

EgonOlsen (4527 views)
2018-06-10 19:43:48

EgonOlsen (5383 views)
2018-06-10 19:43:44

EgonOlsen (3075 views)
2018-06-10 19:43:20

DesertCoockie (3969 views)
2018-05-13 18:23:11

nelsongames (4519 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!