Jump to content




Opinions of the idea of this game?


  • You cannot reply to this topic
21 replies to this topic

#1 Tjakka5

  • Members
  • 256 posts

Posted 30 June 2013 - 10:59 AM

Hey guys,

Me and my friend had a idea for a game (Mainly me), and we want to know your opinions on it.


The basic idea is that you are a person, stuck in a weird world, where floating objects... float around, and all have their own gravity force.

The goal is to use these objects in your advantage to solve puzzles, and get to the end of a level.
All the objects are interactive, meaning you can move them around, crash them into other objects, and even 'move' gravity(mass) from 1 object to another.

The game will be programmed in c++ and will be 2D.


This is just our basic idea for now, what do you think of it?



Edit: Wow, that's awesome 150th post. :)

#2 oWave

  • Members
  • 23 posts

Posted 30 June 2013 - 11:07 AM

It sounds really interesting and funny. You should try and create an alpha for testing. Then I could tell you more

#3 Tjakka5

  • Members
  • 256 posts

Posted 30 June 2013 - 11:16 AM

We won't start development for a couple weeks as we're both quire busy.

However, I will try to make a littke sketch and post it herebto show how ut looks like.

#4 Tjakka5

  • Members
  • 256 posts

Posted 01 July 2013 - 11:28 AM

Humpediebump-a-dumb?

#5 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 01 July 2013 - 11:39 AM

you realise that theres some pretty complicated physics if you wanna have multiple objects with gravity interact with each other?
It'll be very hard to simulate if you're not using an engine.. So good luck with that ;)

#6 Tjakka5

  • Members
  • 256 posts

Posted 01 July 2013 - 12:12 PM

View Postikke009, on 01 July 2013 - 11:39 AM, said:

you realise that theres some pretty complicated physics if you wanna have multiple objects with gravity interact with each other?
It'll be very hard to simulate if you're not using an engine.. So good luck with that ;)

We know, we might even switch up the whole idea of the game. :D

#7 TorakTu

  • Members
  • 231 posts

Posted 02 July 2013 - 06:55 AM

View PostTjakka5, on 01 July 2013 - 12:12 PM, said:

View Postikke009, on 01 July 2013 - 11:39 AM, said:

you realise that theres some pretty complicated physics if you wanna have multiple objects with gravity interact with each other?
It'll be very hard to simulate if you're not using an engine.. So good luck with that ;)

We know, we might even switch up the whole idea of the game. :D

If this was more in 3D I would have been interested in seeing this for myself. I love indie games, just not 2D ones. I left the 80's behind. I'm all about 3D games now.

#8 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 02 July 2013 - 07:13 AM

View Postikke009, on 01 July 2013 - 11:39 AM, said:

you realise that theres some pretty complicated physics if you wanna have multiple objects with gravity interact with each other?

Actually the physics for Newtonian gravitational forces are pretty easy to calculate. The force of object A pulling object B is the inverse square of the distance between the objects, multiplied by their combined masses. Basically: F = (GM/d^2). Where G is a gravitational constant you want to impose, M is the combination of masses, and d is the distance between the objects.

#9 billysback

  • Members
  • 569 posts

Posted 02 July 2013 - 07:19 AM

but it's not as simple as calculating the force, you have to then decide which direction... I guess you could just get the forces acting on you, split them to left and right (off of the current trajectory), add up the forces acting in both directions, make the left force negative and add both sides together, this then gives you your change in trajectory, so a negative one would push you left and a positive one would push you right, the hard part would be deciding how much it changes your direction based off of the force...

I dunno, there is most likely a far more mathematical way to do it, this is just me thinking out loud.
also, this is a little off topic, sorry

#10 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 02 July 2013 - 07:56 AM

View Postbillysback, on 02 July 2013 - 07:19 AM, said:

but it's not as simple as calculating the force, you have to then decide which direction...

The force vector (direction) is just the normalized difference between the two object vectors. Don't ask me how to normalize a vector, because I kind of forgot. :P

You can use this equation:

Posted Image

If you don't know about vector normalization, it basically makes it so that the vector points in the same direction as the original, but its length is also equal to 1.

#11 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 02 July 2013 - 08:29 AM

Seems cool but that the code will be complicated.

#12 billysback

  • Members
  • 569 posts

Posted 02 July 2013 - 08:57 AM

View PostYevano, on 02 July 2013 - 07:56 AM, said:


You can use this equation:

Posted Image

If you don't know about vector normalization, it basically makes it so that the vector points in the same direction as the original, but its length is also equal to 1.

could you link to an explanation of this equation? I couldn't find anything via google..

#13 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 02 July 2013 - 09:09 AM

View Postbillysback, on 02 July 2013 - 08:57 AM, said:

could you link to an explanation of this equation? I couldn't find anything via google..

I found the formula on an eHow page. :P The formula looks complex, but it just divides the vector by its length. Length, in case you don't know, is the distance of the vector from the origin vector (0, 0). So if we want to normalize a vector like (24, 32), we start by getting its length, which is the square root of the sum of the squares of the vector's components (this is using the Pythagorean theorem). We get sqrt(24^2 + 32^2) = 40 (what a nice even number :P). Remember that this just means that (24, 32) is 40 units away from (0, 0). To normalize the vector, we dive the vector by its length (40). Our resulting normalized vector is (0.6, 0.8). This vector points in the same direction as our original vector and has a length of 1. I hope my explanation was easy to understand.

#14 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 02 July 2013 - 12:28 PM

View PostYevano, on 02 July 2013 - 07:13 AM, said:

View Postikke009, on 01 July 2013 - 11:39 AM, said:

you realise that theres some pretty complicated physics if you wanna have multiple objects with gravity interact with each other?

Actually the physics for Newtonian gravitational forces are pretty easy to calculate. The force of object A pulling object B is the inverse square of the distance between the objects, multiplied by their combined masses. Basically: F = (GM/d^2). Where G is a gravitational constant you want to impose, M is the combination of masses, and d is the distance between the objects.

Oh I didn't know that. That is by the way almost exactly the same function as the force between two atoms, but in chemophysics we use that function to calculate the vibration frequency between atoms in infrared spectroscopy.. Funny how those formulas can be scaled up so much..
On topic though, how would you simulate such a thing.. The only way I can think of is by using differential equations (dV/dt), which would be a fun bit of homework given your last functions for unit(V)

#15 Tjakka5

  • Members
  • 256 posts

Posted 02 July 2013 - 12:35 PM

13 posts, and only 1 posts of someone else that stayed on topic, xD
Also, I see Lyqyd down there...
I wonder what he's up to...

#16 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 02 July 2013 - 12:43 PM

No, the physics/mathematics are actually quite complicated, such that no general solution to the n-body problem is known to exist.

#17 Tjakka5

  • Members
  • 256 posts

Posted 02 July 2013 - 01:13 PM

Goodness, even a moderator didnt stay on topic?


Remember guys, we want opinions, not math. xD

#18 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 02 July 2013 - 01:22 PM

View PostLyqyd, on 02 July 2013 - 12:43 PM, said:

No, the physics/mathematics are actually quite complicated, such that no general solution to the n-body problem is known to exist.
Yeah that's more like the math I imagined for this xD
It's still possible to simulate though I think, though maybe in a simplified form.. If you differentiate the vectors for each moving planet you can probably give this equation for every planet without breaking the whole simulation:
Vx(t+dt) = Vx + ((dVx/dt induced by other planet 1) + (dVx/dt induced by other planet 2) + ...)*dt

I have no idea if that would actually work though, but it seems legit :P

by the way tjakka, welcome to the world of forums, where no post is ever completely on-topic and where you should just go with the flow of the conversation
My opinion though: Don't do gravity, it hurts your brain

#19 Tjakka5

  • Members
  • 256 posts

Posted 02 July 2013 - 01:25 PM

Hehe, wi'll use simple gravity then. :P

But does anyone like the idea of the game, thatz what I am wondering.

#20 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 02 July 2013 - 01:56 PM

The math to the n-body problem is complicated, but one does not need to know all future and past motions of a system of point-masses in order to approximate a simulation of gravity between an arbitrary number of objects. For the simulation, you can simply apply the gravitational force to all bodies per game tick.

@Tjakka5: I would try to make something like a sandbox game out of this. It's a cool idea, but I think I've seen it done on the forum here before. Not to say that means you shouldn't try, just a suggestion to find a way to make your game unique.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users