Rotate Sprites / Joystick

Questions, comments and discussion about the Game Editor development.

Rotate Sprites / Joystick

Postby akr » Tue Mar 09, 2010 9:48 am

Hi,

2 questions today.

(a) Rotation
Is there a way to rotate sprites? I thought Kyra can do this with tiles.

Is GE using kyra sprites or tiles. If tiles, is it a big effort to implement rotation?

(b) Joystick
It maybe interesting on iphone to have a joystick. SDL13 translates the accelerometer to joystick movements.
Whats the effort to do this?

Thx
Andreas
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: Rotate Sprites / Joystick

Postby Hblade » Tue Mar 09, 2010 1:52 pm

Well, there is one way. It's called bmprotation or something like that. It loads a BMP into a canvas which can then be altered.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Rotate Sprites / Joystick

Postby makslane » Tue Mar 09, 2010 5:18 pm

akr wrote:Is there a way to rotate sprites? I thought Kyra can do this with tiles.
Is GE using kyra sprites or tiles. If tiles, is it a big effort to implement rotation?


The rotation can be implemented if use the OpenGL ES support (there are some test points in the code to enable the OpenGL ES tests).

(b) Joystick
It maybe interesting on iphone to have a joystick. SDL13 translates the accelerometer to joystick movements.
Whats the effort to do this?


There are no joystick support on the current engine.
For iPhone accelerometer , I think is better we have some function thats can be called by the user on script like this:

Code: Select all
Vector g = getAccelInfo(); //g is a struct of x, y, z doubles
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Rotate Sprites / Joystick

Postby akr » Wed Mar 10, 2010 10:08 am

Maks,

Thanks for your reply! Btw iphone prototype is now working. 1945 runs at full realtime speed! Really fun.

I am asking about rotating sprites because I am interested to implement more physics in future (chipmumks or box2d). So a rotation
around a defined point is required. Will have a look at the code. Maybe I can find the points you mentioned.

Regarding joystick. Do you think joystick support is not something which is really required or is it a lot of effort?

Good idea to have the code as you suggested in script editor:

Vector g = getAccelInfo(); //g is a struct of x, y, z doubles

But doesnt that mean games would become incompatible? Or should we just have this function available on all plattforms?

We could

-Have that function available on all plattforms for compatibility reasons
-Return 0,0,0 if its not iphone

Then it shouldnt be any more an issue.


Sound
====

My testcase 1945 seems to use filename.mid which seems to be a midi file. Am I wrong? Pls advise. You said midi isnt available in general.

Thx
Andreas
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: Rotate Sprites / Joystick

Postby makslane » Wed Mar 10, 2010 1:46 pm

akr wrote:Btw iphone prototype is now working. 1945 runs at full realtime speed! Really fun.


Are you sure?????? I'm really happy now :-)

I am asking about rotating sprites because I am interested to implement more physics in future (chipmumks or box2d). So a rotation
around a defined point is required. Will have a look at the code. Maybe I can find the points you mentioned.


But is better finish the iPhone port of the current code first.
After that, the changes like this will works on all platforms thats have a hardware acceleration card.

Regarding joystick. Do you think joystick support is not something which is really required or is it a lot of effort?


I don't think is required for mobile devices!

Good idea to have the code as you suggested in script editor:

Vector g = getAccelInfo(); //g is a struct of x, y, z doubles

But doesnt that mean games would become incompatible? Or should we just have this function available on all plattforms?

We could

-Have that function available on all plattforms for compatibility reasons
-Return 0,0,0 if its not iphone


Any mobile phone that's hace an accelerometer will can use this function.
If the device doesn't have an accelerometer or (the case now) the accelerometer code is not ported for the other devices, we can just return (0,0,0)

My testcase 1945 seems to use filename.mid which seems to be a midi file. Am I wrong? Pls advise. You said midi isnt available in general.


The 1945 game uses a midi file. The mid playback isn't available on the Pocket PC port too. So, if you can hear the other sound effects, your port is ok :-)

BTW, Can you send me your changes? So I can start integrating on the main code base :-)
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Rotate Sprites / Joystick

Postby skydereign » Thu Mar 11, 2010 5:52 am

Got it working already? This will be a huge step for gameEditor if you can get it fully functioning. When do you think you'll finish it?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Rotate Sprites / Joystick

Postby akr » Thu Mar 11, 2010 7:32 am

I just moved to makslanes iphone thread. See there for more details.
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: Rotate Sprites / Joystick

Postby Hblade » Thu Mar 11, 2010 6:51 pm

For the joystick, use Xpadder :3
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron