Hello Guest

Input in the form of relative co-ordinates

  • 2 Replies
  • 4322 Views
Input in the form of relative co-ordinates
« on: November 17, 2011, 05:09:42 »
Hi,
I want to create a game which receives input in the form of some co-ordinates relative to current position on an object in display. Based on this input the object moves left or right. There is no keyboard or mouse input involved. Can anyone help me understand how I should approach this problem for LWJGL library. Kindly help.
Thanks!

Re: Input in the form of relative co-ordinates
« Reply #1 on: November 17, 2011, 11:51:47 »
LWJGL is a graphics library with some additional minor utilities. This isn't a graphics issue, so the majority of LWJGL is meaningless to your question. Additionally, if you don't want to use it's keyboard or mouse input, then there is literally no aspect of the library that you need to make that form of input work.

Basically, it's all up to you. That's a good thing, though.


I will admit however: what are you planning on doing where your input doesn't require a mouse or keyboard? How else are you giving instructions to your game?

Re: Input in the form of relative co-ordinates
« Reply #2 on: December 08, 2011, 09:36:26 »
Hi,
I want to create a game which receives input in the form of some co-ordinates relative to current position on an object in display. Based on this input the object moves left or right. There is no keyboard or mouse input involved. Can anyone help me understand how I should approach this problem for LWJGL library. Kindly help.
Thanks!

I guess, I don't understand your need. Is it related maybe to unit testing? Mocking and so on?

Maybe you can give an example?
S.