Shooter Demo

by Forum_account
[Share] [Zip]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Forum_account.ShooterDemo##version=2

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Forum_account.ShooterDemo##version=2

369 downloads
Version 2
Date added: Oct 16 2011
Last updated: Feb 25
3 fans
A sample top-down shooter. [More]
A basic top-down shooter that uses the Dynamic Lighting, Mouse Position, and Pixel Movement libraries.

Look through the code to see how things work, or expand on it to make your own game. You can make simple modifications - new maps and graphics. Or more complex changes - new enemies and attacks.

More Info

development updates by Forum_account

Advertisement

Comments

Kiohstuff: (Mar 2, 5:11 pm)
thank you, changing control,params to anything,anything,anything,params fixed it, although why the original code worked just fine in a program that did not contain your mouse movement or pixel movement libraries still escapes me.
Forum_account: (Mar 2, 7:27 am)
Kiohstuff wrote:
For some reason when using these libraries I am unable to enable the right mouse button properly. When I enable it, right-clicking still registers as a left click. Here is a snippet of code in case it helps.
MouseDown(control,params)
params = params2list(params)
if("right" in params)
world<<"right-clicked"
else if("left in params")
world<<"left-clicked"

I always get the output "left-clicked".
This code works when it is separated from these libraries.
Thanks in advance.

Add "world << params" as the first line of the MouseDown() proc to make sure that the params are what you think they should be.

The atom's MouseDown() proc takes three parameters, the client's takes four. So what you're calling "params" there is actually the control parameter. I don't think this has anything to do with what libraries are included.
Kiohstuff: (Mar 1, 10:37 pm)
For some reason when using these libraries I am unable to enable the right mouse button properly. When I enable it, right-clicking still registers as a left click. Here is a snippet of code in case it helps.
MouseDown(control,params)
params = params2list(params)
if("right" in params)
world<<"right-clicked"
else if("left in params")
world<<"left-clicked"

I always get the output "left-clicked".
This code works when it is separated from these libraries.
Thanks in advance.
Forum_account: (Nov 30 2011, 6:43 am)
Tsfreaks wrote:
Clicking W. ASD do nothing.
runtime error: Cannot read null.x
proc name: apply (/light/proc/apply)
Warning: further proc crash messages are being suppressed to prevent overload...

It looks like a problem with the Pixel Movement library. If you switch it back to Native mode it should work. The PM library will be getting a big udpate soon, so I'll just make sure that fixes this problem.
Tsfreaks: (Nov 20 2011, 7:49 pm)
Clicking W. ASD do nothing.
runtime error: Cannot read null.x
proc name: apply (/light/proc/apply)
Warning: further proc crash messages are being suppressed to prevent overload...