Author Topic: RPG  (Read 4569 times)

y00tz

  • Autococker
  • Posts: 2742
RPG
« on: April 23, 2007, 08:28:11 PM »
I learned Java last night, and I'm going to make a simple RPG (for fun, to see if I have it mastered) any tips or advice? Anyone else here ever programmed one? (2d, top down, maybe 3/4 isom.)

Cheers,
y00tz

Cobo

  • Autococker
  • Posts: 1362
Re: RPG
« Reply #1 on: April 23, 2007, 08:41:07 PM »
Good luck. But in the words of Jesus (or former :P) himself:
Quote
Java makes me cry.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: RPG
« Reply #2 on: April 23, 2007, 08:43:31 PM »
I learned Java last night, and I'm going to make a simple RPG (for fun, to see if I have it mastered) any tips or advice? Anyone else here ever programmed one? (2d, top down, maybe 3/4 isom.)

Cheers,
y00tz

I've used Java before, but I never actually made anything with it. :P

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #3 on: April 23, 2007, 08:49:12 PM »
Yeah, Java is very slow, I wouldn't even learn it if it weren't for my growing clientbase

lekky

  • Autococker
  • Posts: 2449
Re: RPG
« Reply #4 on: April 24, 2007, 07:35:43 AM »
You learned Java in one night??!??!??!??!

And Java is a nice language :)

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: RPG
« Reply #5 on: April 24, 2007, 07:57:48 AM »
You learned Java in one night??!??!??!??!

Well, the concepts are easy, and the syntax is easy to understand.

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #6 on: April 24, 2007, 10:51:33 AM »
You learned Java in one night??!??!??!??!

Well, the concepts are easy, and the syntax is easy to understand.

True, I'm a web-developer, I knew JavaScript, took a night, yeah.

b00nlander

  • Autococker
  • Posts: 784
Re: RPG
« Reply #7 on: April 24, 2007, 11:14:02 AM »
Java is cruel. No good debugging possible. Which is really bad. :P

lekky

  • Autococker
  • Posts: 2449
Re: RPG
« Reply #8 on: April 24, 2007, 11:27:48 AM »
I develop web-based apps using Java :P

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #9 on: April 24, 2007, 11:37:25 AM »
Here's the map structure

4 arrays exported to dats and placed in a zip.
(campaign1.zip)

the first array is the ground, this is a 64x64 array.
0's in the array represent dirt, 1's grass, 2 floor, etc
The number found in the array tells the gfx class what tile to draw, corresponding to editor.dat which is a shared file from both the map editor and the main game.

the 2nd array is the items drawn over the ground but characters can't walk over (rocks etc)

the 3rd array is monsters locations
(similar to the tiles)
 
and the final array is items


4 x 4 example

ground:
0 1 0 2
0 1 0 2
0 2 1 1
0 0 0 0
draws:
dirt grass dirt water
dirt grass dirt water
dirt water grass grass
dirt dirt dirt dirt



GreenAffairz

  • Autococker
  • Posts: 515
Re: RPG
« Reply #10 on: April 24, 2007, 12:52:52 PM »
nice, i love playin RPG's so i will check this out for sure once your done

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: RPG
« Reply #11 on: April 25, 2007, 11:37:01 AM »
I learned Java last night, and I'm going to make a simple RPG (for fun, to see if I have it mastered) any tips or advice?
Tips or advice?  Don't use java. :)

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #12 on: April 25, 2007, 02:15:46 PM »
Hmm, what do you recommend?

ALE

  • PGP
  • Posts: 5
Re: RPG
« Reply #13 on: April 25, 2007, 03:50:55 PM »
lol use RPG Maker PRO

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #14 on: April 25, 2007, 03:58:50 PM »
lol use RPG Maker PRO

What?

I'm a professional web-developer and computer science major.  The reason I am learning Java is to produce cross-platform database supplements, as well as a client for an update server my company is making.  Tell me, how would RPG Maker Pro help me?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: RPG
« Reply #15 on: April 25, 2007, 04:07:16 PM »
C and OpenGL would make a good combination (naturally, I'm biased).  While OpenGL is mostly known for 3D stuff, it does have a lot of 2D functionality.  If you master C, you'll have a very good understanding of how computer programming works in general and be able to write better, more efficient code.  From there you could take a step over to C++ or another OO language and use some object oriented features, though be careful not to abuse them.

An SDL base would also be helpful if you're worried about cross-platform compatibility.

y00tz

  • Autococker
  • Posts: 2742
Re: RPG
« Reply #16 on: April 25, 2007, 04:28:11 PM »
Ehh, I mean, I know C++ I know C, mastered? Nope.  Just enough to make some proof of concepts in OpenGL.  I guess what I should have stated before is that I'm not interested in making games or desktop applications - I'm going to school for that.  I am the lead coder at a web-dev startup, and I need to know Java simply for applets - not for applications.  I agree with anyone that says C or C++ and arguably C# beat Java time and again in applications.

Outside of Flash (FS scripting is perhaps my native language :p) I'm limited on browser based platforms.

When I learn a language, this first thing I do is make something others can test... i.e. a multilayer browser-based RPG for ASP...  A wiki for php, or a social networking site for ASP.net...   With Java a 2d RPG seemed natural...

Cheers,
y00tz

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: RPG
« Reply #17 on: April 25, 2007, 05:18:17 PM »
I'd take flash over java. :P

Silly

  • 68 Carbine
  • Posts: 324
Re: RPG
« Reply #18 on: April 25, 2007, 05:31:42 PM »
Yeah. I am building an RPG game with flash and it is 10x easier to build the platforms and movement. Plus actionscript is easy to learn.

Eiii

  • Autococker
  • Posts: 4595
Re: RPG
« Reply #19 on: April 25, 2007, 06:17:06 PM »
I wouldn't want java anywhere near my webpage...