Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Looking for a game engine.  (Read 2460 times)

Anvilfolk

  • Bay Watcher
  • Love! <3
    • View Profile
    • Portuguese blacksmithing forum!
Re: Looking for a game engine.
« Reply #15 on: July 11, 2013, 09:32:20 am »

In SFML? Wait, intersection of two rectangles? That should be trivial to implement yourself, no?

Can you give a simple example?

Anvilfolk

  • Bay Watcher
  • Love! <3
    • View Profile
    • Portuguese blacksmithing forum!
Re: Looking for a game engine.
« Reply #16 on: July 11, 2013, 01:35:52 pm »

Also, just found this, for Java: http://libgdx.badlogicgames.com/index.html

I was looking at the source code for Catacomb Snatch that someone mentioned in Other Games, and they are actually using libGDX along with a component-based design, which is pretty cool!

cerapa

  • Bay Watcher
  • It wont bite....unless you are the sun.
    • View Profile
Re: Looking for a game engine.
« Reply #17 on: July 11, 2013, 03:02:07 pm »

Unfortunately, I just discovered a pretty terrible bug; the method that checks for intersection between two rectangles is broken. It seems like a really great library, but until the next version comes out and they've fixed that, it looks like I'm not going to be able to use it for very much :(
That is completely trivial to do yourself.

Code: [Select]
bool CheckCollision(rect a, rect b) {
    if (a.x+a.w < b.x or a.y+a.h < b.y or b.x+b.h < a.x or b.y+b.h < a.y) return 0;
    else return 1;
}
I program in C++, so if there are any differences with declaring functions, just change em. Plus of course change it to whatever the rectangle is called as a class.

EDIT: And this of course only works for rectangles that are completely straight. You can ignore this post if you wanna spin the suckers.
« Last Edit: July 11, 2013, 03:07:05 pm by cerapa »
Logged

Tick, tick, tick the time goes by,
tick, tick, tick the clock blows up.

itisnotlogical

  • Bay Watcher
  • might be dat boi
    • View Profile
Re: Looking for a game engine.
« Reply #18 on: July 12, 2013, 01:54:00 am »

Unfortunately, I just discovered a pretty terrible bug; the method that checks for intersection between two rectangles is broken. It seems like a really great library, but until the next version comes out and they've fixed that, it looks like I'm not going to be able to use it for very much :(
That is completely trivial to do yourself.

Code: [Select]
bool CheckCollision(rect a, rect b) {
    if (a.x+a.w < b.x or a.y+a.h < b.y or b.x+b.h < a.x or b.y+b.h < a.y) return 0;
    else return 1;
}
I program in C++, so if there are any differences with declaring functions, just change em. Plus of course change it to whatever the rectangle is called as a class.

EDIT: And this of course only works for rectangles that are completely straight. You can ignore this post if you wanna spin the suckers.

I'm new to thinking about programming in terms of geometry. The most complex project I undertook in Python before making a serious attempt to create graphical games was a simple text adventure that used the RNG and some basic math during battles.
Logged
This game is Curtain Fire Shooting Game.
Girls do their best now and are preparing. Please watch warmly until it is ready.

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Looking for a game engine.
« Reply #19 on: July 12, 2013, 04:19:35 am »

Good luck on this! It might be good to write out a checklist of everything you want in the game along with a description of how things will interact with each other. Usually helps me formulate a game plan (hehe) for how I will go about implementing things. This can also help you narrow your choice for an engine to the specific needs of your project.
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Looking for a game engine.
« Reply #20 on: July 13, 2013, 01:26:54 am »

Good luck on this! It might be good to write out a checklist of everything you want in the game along with a description of how things will interact with each other. Usually helps me formulate a game plan (hehe) for how I will go about implementing things. This can also help you narrow your choice for an engine to the specific needs of your project.
Well I see what you did there.
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Looking for a game engine.
« Reply #21 on: July 17, 2013, 11:58:45 pm »

I use Slick2d (for java). It's very easy to use, just takes a bit of work to set up if you have no clue what you're doing.

It's not quite what you've described in the OP, but if you know what you're doing it shouldn't take too much work to put something together.
I think we've already established that none of us know of any complete RPG engine for java, so making your own seems like your best bet.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)
Pages: 1 [2]