Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Jan 2016 08:23
Ok i'ma makin a shooter like galaga only i want to use the accelerometer only to control the action player will constantly fire and will have to pickup ammo to keep firing.
Just got the swirly movement in. Soooooooo much more to do


Sign up for NaGaCreMo!
shadey
9
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 18th Jan 2016 09:43 Edited at: 18th Jan 2016 13:55
x#=getdirectionx()
y#=getdirectiony()

value will be positive or negative, so if I was to say

if x#<0
moveshipleft...
endif
if x#>0
moveshipright...
endif


These of course need to be within a loop.
Hail to the king, baby!
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Jan 2016 11:07
thanks shadey. this will be critical. they way the game interprets then accelerometer will be key

Sign up for NaGaCreMo!
shadey
9
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 18th Jan 2016 14:06 Edited at: 18th Jan 2016 14:07
probably an easier way though,now it is explained, is to simply use the example under getdirectionx() which is:




Slightly changed it so it moves up and down also, but just substitute the text for sprite and use floats instead!
P.S.. game looks pretty impressive already!
Hail to the king, baby!
Yodaman Jer
User Banned
Posted: 18th Jan 2016 20:07
I like the look of it so far! Definitely a catchy graphic style.

Sign up for NaGaCreMo!
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Jan 2016 23:06
Thanks shadey. I'll be getting into that today


Ok, i maxed out the bugz on the splash screen (I wanted the player to think there was bugz crawling all over their phone....ick!)
There's a lotta sprites but it runs ok on my samsung galaxy tab.
I've attached an .apk if someone would like to check the performance (splash screen only!) on a slower device
Thanks heaps in advance if you can do this! I would hate to publish it and find it runs like a dog on slower devices
PS: Yeah i know, i'm procrastinating. I'll get onto the gameplay today

Sign up for NaGaCreMo!

Attachments

Login to view attachments
Digital Awakening
AGK Developer
17
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Jan 2016 17:18 Edited at: 19th Jan 2016 17:18
The game looks nice so far and it is an interesting concept for sure. I did a gyro + render image based program for the AppGameKit 2014 competition take a look at the code if you want, requires no media to run.


blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Jan 2016 21:11
beautiful. thank you very much

Sign up for NaGaCreMo!
Digital Awakening
AGK Developer
17
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Jan 2016 21:25
Thanks And you are welcome.
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Jan 2016 06:51
I bought the cheapest android phone i could find $29. Performance is not too shabby huh?

Sign up for NaGaCreMo!
Digital Awakening
AGK Developer
17
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 28th Jan 2016 12:37
I have not kept up with the power of smartphones. I am sure they are way more powerful now. One problem you can run into is a phone with a high resolution screen without the hardware to back it up. Not sure how big of a problem that is nowadays. The Tegra 3 chip can easily run out of fill rate at 1080p. Not sure if you can even buy one now. But you can always change the resolution of the game if the framerate drops. This works on mobile devices but not on PC/Mac.
Digital Awakening
AGK Developer
17
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 28th Jan 2016 20:13
BTW, I think you are fine on any hardware since you're not drawing that much to the screen. At least that's my experience. You have one solid background. the bugs cover perhaps half a screen and then a half screen logo with transparency. Should run on anything really.
CJB
Valued Member
15
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 3rd Feb 2016 11:39
I remember being hooked on Galaga 88 at Roller-City back in the day. Loved that game! The bonus section where if you didn't fire you got the secret 10k bonus was sweet!
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Feb 2016 22:02
My experiments with the accelerometer produced this;


Download it and see what you think

See how many hits you can get. Ball gets faster as you go on

Sign up for NaGaCreMo!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2019-09-21 03:56:05
Your offset time is: 2019-09-21 03:56:05