Hey, we have forums!

Author Topic: Coding Questions  (Read 11880 times)

0 Members and 2 Guests are viewing this topic.

Offline McLintock85

  • Mini Bit
  • **
  • Posts: 2
    • View Profile
Coding Questions
« on: April 10, 2007, 02:06:23 pm »
Hi everybody!

I'm dabbling in the dark arts of 2D side scroller programming myself. After taking a look at your screenshots and the awesome new "Aquaria" trailer, a few tech questions came to my mind:

1. Do you guys use AABBs or OBBs for collision detection? Maybe even a pixel-based or swept-polygon approach?

2. Why did you use DirectX instead of say, the SDL, wouldn't that have made the game more portable to other platforms (e.g. Mac)?

3. Is the blur effect of the background parallax layers created at runtime or is it pre-rendered?

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Coding Questions
« Reply #1 on: April 10, 2007, 02:18:06 pm »
1. Circles + Grid

2. Didn't use DirectX for graphics. Used OpenGL. The game is up and running on Mac OS X as of yesterday, actually. ;)
(but of course using OpenGL will become a pain in the ass if/when we port to XBox360 or other platforms)

3. Blur for the bg is "premade". We have a pixel shader blur effect, but we don't use it very often.

What project are you working on?
« Last Edit: April 10, 2007, 02:20:57 pm by Alec »

Offline xander

  • Extra Bit
  • *****
  • Posts: 146
  • IV Migrant
    • View Profile
    • Reno Silver Blades Fencing
Re: Coding Questions
« Reply #2 on: April 11, 2007, 12:22:00 am »
The game is up and running on Mac OS X as of yesterday, actually. ;)
Huzzah!  That makes me feel all warm and fuzzy.  Will you be publishing the Mac version yourselves, or will you be working with a publisher to get it out there (e.g. Ambrosia Software)?  Also, for that matter, will you be self-publishing the Windows version, or working through some other company?  I assume that, having won awards at the IGF, there are offers on the table...

xander
FROG BLAST THE VENT CORE!

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Coding Questions
« Reply #3 on: April 11, 2007, 12:38:02 am »
We're planning to release the Windows version ourselves for now. We're likely going to go with a publisher for the Mac version. More info later. ;)

Here's a screenie from my girlfriend's 13'' Mac Book. (with a crap onboard video card) Unfortunately I could only borrow her 'Book for a couple days. Hopefully I'll be able to buy my own Mac Book Pro soon...

Note: We're hoping to make the Dock Icon dynamic.

Offline McLintock85

  • Mini Bit
  • **
  • Posts: 2
    • View Profile
Re: Coding Questions
« Reply #4 on: April 11, 2007, 02:03:19 am »
Nice news on the Mac front (I'm more of a Linux guy myself).

I wrote a tile-based 2D sider-scroller engine a few years ago. Working on the project was fun, I also created a map editor and a bunch of other tools. A friend from highschool and myself were going to turn it into some big epic 2D RPG... which never happened, of course ;) It's quite impressive that the two of you managed to pull such a project off, and what a gorgeous looking game it is.

My coding fingers have been itching for a while to attempt this again. I'm currently in the process of writing design documents (both for a game and the engine driving it) and researching possible APIs and techniques to pull it off. So far I've chosen the SDL for input & sound (used this on my other game projects), OpenGL for video (used software rendering in the past, except for one funky 3D OpenGL demo) and C++ for the actual code magic. And of course FLTK (http://www.fltk.org) for crafting the tool GUIs (easy to use cross-platform GUI API).

Oh, and getting collision detection done riiiiight can be a bitch, it's usually the hardest coding part for me  ;)

I'm always interested in the tools other people write to create their game worlds and animations, so screenshots of your Aquaria tools would be much appreciated. I read that you even created a custom application for handling the 2D skeletal animation stuff. Sounds fun :)

Offline xander

  • Extra Bit
  • *****
  • Posts: 146
  • IV Migrant
    • View Profile
    • Reno Silver Blades Fencing
Re: Coding Questions
« Reply #5 on: April 11, 2007, 04:55:05 pm »
Here's a screenie from my girlfriend's 13'' Mac Book. (with a crap onboard video card) Unfortunately I could only borrow her 'Book for a couple days. Hopefully I'll be able to buy my own Mac Book Pro soon...
* xander drools

Note: We're hoping to make the Dock Icon dynamic.
That icon is really quite nice.

xander
FROG BLAST THE VENT CORE!

Offline ski309

  • Mini Bit
  • **
  • Posts: 6
    • View Profile
Re: Coding Questions
« Reply #6 on: April 23, 2007, 07:36:08 pm »
Nice news on the Mac front (I'm more of a Linux guy myself).
I'm a bit of a Linux guy myself.  If you were able to port it to Mac OS X, would it possible to port it to Linux as well?

Offline imwill

  • Mini Bit
  • **
  • Posts: 5
    • View Profile
Re: Coding Questions
« Reply #7 on: April 25, 2007, 04:54:05 am »
McLintock85 ... I think your project is analogous to my project.
me too. making 2D tile-based Action game. it's top-view.

sorry ,I can't write in english very well.. beacuse iam asian.so I couln't explian details.very regrettable.

you can see some screen shots . -> blog.naver.com/imwill (it's KOREAN)

Offline PHeMoX

  • Bit Bit
  • ****
  • Posts: 83
    • View Profile
    • Innervision Software (c)
Re: Coding Questions
« Reply #8 on: May 19, 2007, 04:43:53 am »
Nice news on the Mac front (I'm more of a Linux guy myself).
I'm a bit of a Linux guy myself.  If you were able to port it to Mac OS X, would it possible to port it to Linux as well?

I don't think OpenGL on Linux is such a big problem actually, but that depends on a few things I guess ...
"Fun is never superfluous."

Offline nestor

  • Bit
  • ***
  • Posts: 23
    • View Profile
Re: Coding Questions
« Reply #9 on: May 30, 2007, 10:35:36 pm »
would it possible to port it to Linux as well?

I know the man for the Job.  His name is Ryan C. Gordon.  He runs http://icculus.org.  His list of ports is ridiculous.  its longer than this forum page.   He also does ports to Mac.  He's ported Second Life to Linux, Unreal2K4, Postal2.  Google Earth is the last Linux port that I'm aware of.   and he's a helluva nice, cool funny guy too.  I have no idea what it costs though.  and am not even sure if its a cost effective thing to do.