Mobile controller for shoot em up

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
axehigh
Prole
Posts: 10
Joined: Sat Jan 18, 2020 10:12 am

Mobile controller for shoot em up

Post by axehigh »

Id like to add a 'mobile' controller system to a vertical shoot em up game.

Fex want to either move the ship by 'holding the ship' or press on the left and right side to move it left or right.
And also would like to launch missiles or special weapons by pressing a special icon.

Any examples of this somewhere?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Mobile controller for shoot em up

Post by raidho36 »

Touchscreen routines return touch coordinates, you can simply move the ship to those coordinates. And you can implement a screen button which will be pushable on a touchscreen.
flutherlens
Prole
Posts: 2
Joined: Mon Dec 24, 2018 4:39 am

Re: Mobile controller for shoot em up

Post by flutherlens »

Is there any copy-paste code out there?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests