Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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 3106 times)
0 Members and 1 Guest are viewing this topic.
Offline aleczandru

Innocent Bystander





« Posted 2011-09-29 10: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 11: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.

Myomyomyo.
Offline Skarion

Senior Member


Medals: 2
Projects: 1



« Reply #2 - Posted 2011-09-29 11: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:

http://java.decompiler.free.fr/

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 14:11:58 »

Don't steal code.

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

Offline sproingie
« Reply #4 - Posted 2011-09-29 23: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 07: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 Member


Medals: 2
Projects: 1



« Reply #6 - Posted 2011-09-30 08: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 11: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 18: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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (55 views)
2014-04-15 18:08:23

BurntPizza (53 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (151 views)
2014-04-08 23:06:04

tom_mai78101 (246 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!