Physics-based arena shooter

Show off your games, demos and other (playable) creations.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Physics-based arena shooter

Post by BlackBulletIV »

Here's what I've been working on for the past few days, a physics-based arena shooter. As usual, it's using Ammo. Note that this is a work in progress.

GitHub Repository

Controls
  • WASD/Arrows and Space/Enter to use menus
  • WASD/Arrows to move player
  • Mouse to aim and shoot missiles
  • Hold space to activate slowmotion
  • Escape to pause
  • As an alternative to the pause menu, you can quit by using Ctrl+Q
  • Tilde/backtick to open the debug console.
Instructions
  • While slowmotion is activated the slowmotion "bar" surrounding the player will be drained. It will slowly recharge afterwards.
  • When missiles hit something they explode into many pieces of shrapnel. To kill an enemy you must either hit them a missile directly, or hit them with shrapnel travelling at a high enough speed.
Screenshots (outdated)
arena-game-2.png
arena-game-2.png (56.74 KiB) Viewed 7198 times
arena-game.png
arena-game.png (89.14 KiB) Viewed 7198 times
Last edited by BlackBulletIV on Thu Dec 06, 2012 7:17 am, edited 7 times in total.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Physics-based arena shooter

Post by Roland_Yonaba »

Shame on my, my computer doesn't feature canvas.
Anyway, seems to be a good work, I like those screenies.
Besides, code looks clean. Keep up the good work.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Physics-based arena shooter

Post by coffee »

- Looking and working very nice.
- Maybe too fast for a start.
- You should add a "Esc" key in game.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Physics-based arena shooter

Post by BlackBulletIV »

Roland_Yonaba wrote:Shame on my, my computer doesn't feature canvas.
Anyway, seems to be a good work, I like those screenies.
Besides, code looks clean. Keep up the good work.
Ah yes, of course. Motion blur should now be disabled on computers which don't support canvases. There's also an option to turn it off on computers which do support canvases.
coffee wrote:- Looking and working very nice.
- Maybe too fast for a start.
- You should add a "Esc" key in game.
Thanks. I haven't fleshed the gameplay out all that much yet; I'll be sure to adjust the difficulty in future. And yeah, a pause menu is one of the top priorities right now.
User avatar
felix24
Party member
Posts: 163
Joined: Tue Jul 26, 2011 4:51 pm
Contact:

Re: Physics-based arena shooter

Post by felix24 »

this is pretty damn sweet man :ultraglee: the slow motion effect is pretty cool. keep up the good work.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Physics-based arena shooter

Post by Roland_Yonaba »

That is addictive as hell. I broke my left-click mouse button.
Actually, I like that slow-motion feature. I do love it.
Hey, isn't there a key to close the game ? As you used setGrab(), I'm obliged to force-close it.

Ammo is pretty neat, by the way. I'll look into it, may find some inspiring things.
Too bad I can't enjoy that blur effect. That's the price to pay, when you don't have Canvas enabled. I hate you. :x
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Physics-based arena shooter

Post by Nixola »

Roland_Yonaba wrote:That is addictive as hell. I broke my left-click mouse button.
Actually, I like that slow-motion feature. I do love it.
Hey, isn't there a key to close the game ? As you used setGrab(), I'm obliged to force-close it.

Ammo is pretty neat, by the way. I'll look into it, may find some inspiring things.
Too bad I can't enjoy that blur effect. That's the price to pay, when you don't have Canvas enabled. I hate you. :x
Try Ubuntu on a CD or an USB Key (or even in a virtual machine), it has software canvas support!
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Physics-based arena shooter

Post by BlackBulletIV »

Thanks for the feedback guys.
Roland_Yonaba wrote:That is addictive as hell. I broke my left-click mouse button.
Actually, I like that slow-motion feature. I do love it.
Hey, isn't there a key to close the game ? As you used setGrab(), I'm obliged to force-close it.

Ammo is pretty neat, by the way. I'll look into it, may find some inspiring things.
Too bad I can't enjoy that blur effect. That's the price to pay, when you don't have Canvas enabled. I hate you. :x
I found it quite addictive too. For a while I was spending far more time playing than developing.

You'll be able to quit from the pause menu which I'll add soon. I'm so used to using Cmd+Q on OS X that it didn't occur to me that it's not a natural thing to do on other operating systems.

Yeah, Ammo is the organisational library I've been developing on and off for around 1.5 years. I think it's nearly ready for its first release.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Physics-based arena shooter

Post by josefnpat »

It blew up for me :(

Code: Select all

Error: ammo/physics/PhysicalEntity.lua:97: bad argument #3 to 'newFixture' (number expected, got nil)
stack traceback:
	[C]: in function 'newFixture'
	ammo/physics/PhysicalEntity.lua:97: in function 'addShape'
	entities/Barrier.lua:17: in function 'added'
	ammo/core/World.lua:150: in function '_updateLists'
	ammo/core/World.lua:43: in function 'update'
	ammo/physics/PhysicalWorld.lua:42: in function 'update'
	worlds/Game.lua:62: in function 'update'
	ammo/core/init.lua:33: in function 'update'
	main.lua:60: in function 'update'
	[string "boot.lua"]:404: in function <[string "boot.lua"]:373>
	[C]: in function 'xpcall'
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
paranoiax
Prole
Posts: 40
Joined: Thu Aug 16, 2012 10:27 am

Re: Physics-based arena shooter

Post by paranoiax »

josefnpat wrote:It blew up for me :(

Code: Select all

Error: ammo/physics/PhysicalEntity.lua:97: bad argument #3 to 'newFixture' (number expected, got nil)
stack traceback:
	[C]: in function 'newFixture'
	ammo/physics/PhysicalEntity.lua:97: in function 'addShape'
	entities/Barrier.lua:17: in function 'added'
	ammo/core/World.lua:150: in function '_updateLists'
	ammo/core/World.lua:43: in function 'update'
	ammo/physics/PhysicalWorld.lua:42: in function 'update'
	worlds/Game.lua:62: in function 'update'
	ammo/core/init.lua:33: in function 'update'
	main.lua:60: in function 'update'
	[string "boot.lua"]:404: in function <[string "boot.lua"]:373>
	[C]: in function 'xpcall'
just add 1 as a the third Argument for each newFixture

Its a problem with the Linux version of love I guess. It doesn't set the default value.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests