Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (776)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
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  
  Risk type game  (Read 8364 times)
0 Members and 1 Guest are viewing this topic.
Offline aleczandru

Innocent Bystander

« Posted 2011-09-29 08:42:06 »

Hi I am new to this forum and also to programming.I started learning Java 3 months ago and now I finally feel ready to start creating my first project.Since I always liked games I tought
that my first project should definetly be a game.So I was thinking of creating a risk type game ,I have a couple of ideeas on how I could achive that but nothing concrete on how I could
implement my ideeas.

So my first order of busines would be to study someone else is Java code on this type of game.Problem is kind find any source code for it (I did find a couple of games but couldent find it's source code).So can anyone point me to a site or book that has the source code for this game or for a strategy games(i'm realy fond of strategy games).Thank you!
Offline theagentd
« Reply #1 - Posted 2011-09-29 09:01:03 »

How much programming experience do you have in general? Is Java your first language?
A risk game should be doable using only Swing, but a full Risk game is going to be hard for a beginner to make IMO. It would however be a very good learning experience, but depending on how fast you learn and how good you are at programming, you should be ready for it not being completed anytime soon.
Looking at other people's source code is not a very good way to learn programming for a beginner. If you can't write your own code, you're just gonna copy the source. What's important when looking at other peoples code is to understand what it's doing, and this is a lot harder than it seems. I found it easier in the beginning to learn an algorithm by reading a description of it or a maybe some psuedocode, but looking at source code was just confusing.
Tutorials are awesome. If you haven't checked out tutorials on how to bring up a Swing window (JFrame), do that and play around with it a little.

Offline Skarion

Senior Devvie

Medals: 2
Projects: 1

« Reply #2 - Posted 2011-09-29 09:03:29 »

I agree with theagentd in general, though if you don't listen to him, then:

Don't steal code.

Otherwise if you just wish to look at code you can decompile a .jar with:

Even if my game is a strategy game I'd advice to not try to look at it as it's a hobby project and therefor quite a mess and probably not readable.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2011-09-29 12:11:58 »

Don't steal code.

Well keep your shirt on, it's obviously for educational purposes... D=

Offline sproingie

JGO Kernel

Medals: 202

« Reply #4 - Posted 2011-09-29 21:44:23 »

Looking at decompiler output is not what I'd recommend for a beginner.  There are gigabytes of open source java projects out there that anyone can look at.

Games are really complex bags of state, and pretty difficult for a beginner to start off with.  I might recommend creating eye candy with something like Processing as a first project instead.

Offline ReBirth
« Reply #5 - Posted 2011-09-30 05:41:30 »

There're tow types of strategy games, real-time and turn-based.
you can start by designing gameplay (chars, stats, weapons etc), making simple actions (move, punch, tickle etc), creating world, adjusting gamerule and so on.

So no need to look a completed game's source code (tutorial is allowed)! they're messy and hard to understand. Just click new project on your IDE and start Smiley

Offline Skarion

Senior Devvie

Medals: 2
Projects: 1

« Reply #6 - Posted 2011-09-30 06:53:42 »

Don't steal code.

Well keep your shirt on, it's obviously for educational purposes... D=

I just consider it a good policy to have that sentence in a reply if I link to a decompiler. Not only him that read the thread and would feel bad if I helped someone to steal a game, change the credits and then start selling it in their own name.
Offline Bonbon-Chan

JGO Coder

Medals: 12

« Reply #7 - Posted 2011-09-30 09:44:57 »

With those replies, I double that he will come back  Grin

I agree on the fact that you should not start from studying the code of a full game (too confusion and too mush copy/paste).

I don't think that a risk type game is that mush difficult (unless you want to do networking and if you stick with a "dumb" AI).
You don't need fancy graphics or even animations. So a Graphics2D / Swing application is good enough.

So I was thinking of creating a risk type game ,I have a couple of ideeas on how I could achive that but nothing concrete on how I could
implement my ideeas.
I think it is the best starting point. You should give us your ideas on the gameplay/design and how you think it could be done. Then you will get feedbacks and advices on them.
Offline Zushii

Senior Newbie

« Reply #8 - Posted 2011-10-04 16:45:45 »

You can check our what I posted on HoI / Total War style maps in this forum and think about your Risk game again.

I'm just saying, go with something like Pong (make your own version, trippy, stylish etc.) or even better a simple 2D Plattformer.

Don't go overboard with yourself, you will only become frustrated. And 3 months of programming experience is basically nothing.
I'd say come back when you mastered GUIs and all the important aspects, especially OOP (Object-oriented Programming).

I'm just saying, but I can't stop you, if you feel confident go for it.
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

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

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

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

nelsongames (1594 views)
2018-04-24 18:15:36

nelsongames (2241 views)
2018-04-24 18:14:32
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

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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‑
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!