Author Topic: [LuaZM] pFighter  (Read 6305 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
[LuaZM] pFighter
« on: April 20, 2013, 03:12:56 pm »
Ported from adam Tree's nFighter to LuaZM(with permission). In this game, you have to destroy your enemy. There are bonus's too. You shoot them to collect them. B is bullets, S is score, and F is fuel. Try not to run out of bullets or fuel or it's GAME OVER.

You can use arrows or numpad to move. Use [5] or [SHIFT] to shoot. [x^2] to restart.

Here's the cemetech download: http://www.cemetech.net/programs/index.php?mode=file&id=888



Original: http://www.ticalc.org/archives/files/fileinfo/437/43729.html
I will upload it to Omni archives soon.
« Last Edit: April 20, 2013, 03:51:59 pm by Spenceboy98 »
I like milk.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [LuaZM] pFighter
« Reply #1 on: April 20, 2013, 06:10:55 pm »
wowow, looks great! Downloading it right now. :)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [LuaZM] pFighter
« Reply #2 on: April 20, 2013, 06:31:23 pm »
wowow, looks great! Downloading it right now. :)

Thanks! It wasn't too hard to port(commented out the code to draw arcs). I had to center everything. I hope you enjoy it!
I like milk.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [LuaZM] pFighter
« Reply #3 on: April 20, 2013, 07:17:23 pm »
Very fun, very nicely made. I would suggest using local vars instead of global though.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [LuaZM] pFighter
« Reply #4 on: April 21, 2013, 01:23:48 am »
This was a fun game a while back. Glad it was ported and I like the static effect.

You should add a color mode, since, after all, the PRIZM is a color calc :P
« Last Edit: April 21, 2013, 01:24:11 am by DJ Omnimaga »
Dream of Omnimaga

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [LuaZM] pFighter
« Reply #5 on: April 21, 2013, 08:15:05 am »
This was a fun game a while back. Glad it was ported and I like the static effect.

You should add a color mode, since, after all, the PRIZM is a color calc :P

I could try. I will when I get home from church today.


As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).
I like milk.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [LuaZM] pFighter
« Reply #6 on: April 21, 2013, 04:27:13 pm »
As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).

When you declare the variables, just tag local on them. Like this:

Code: [Select]
local var = blah
local var2



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: [LuaZM] pFighter
« Reply #7 on: April 21, 2013, 05:23:21 pm »
no is for CX...?
Keep trying.

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: [LuaZM] pFighter
« Reply #8 on: April 21, 2013, 05:25:18 pm »
Um, it's for Prizm.
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [LuaZM] pFighter
« Reply #9 on: April 21, 2013, 07:19:54 pm »
As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).

When you declare the variables, just tag local on them. Like this:

Code: [Select]
local var = blah
local var2

What difference will it make?
I like milk.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [LuaZM] pFighter
« Reply #10 on: April 21, 2013, 09:07:09 pm »
As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).

When you declare the variables, just tag local on them. Like this:

Code: [Select]
local var = blah
local var2

What difference will it make?

Well, for one thing, it will make running the program twice in a row not give Error: Not enough memory. ;)

Plus it could increase speed.
« Last Edit: April 21, 2013, 09:07:42 pm by flyingfisch »



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [LuaZM] pFighter
« Reply #11 on: April 21, 2013, 09:29:38 pm »
As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).

When you declare the variables, just tag local on them. Like this:

Code: [Select]
local var = blah
local var2

What difference will it make?

Well, for one thing, it will make running the program twice in a row not give Error: Not enough memory. ;)

Plus it could increase speed.

Would I do this with all the variables(ALL)?

Also, now more colorful:



Same download link as in first post.
I like milk.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [LuaZM] pFighter
« Reply #12 on: April 22, 2013, 12:04:11 am »
Wow I like it even more now :D. The addition of colors makes it more retro arcade style, like Defender.
Dream of Omnimaga

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [LuaZM] pFighter
« Reply #13 on: April 22, 2013, 10:17:49 am »
As for the global variables, I don't think I'll change those(I don't really know how, plus I'd probably end up screwing it up :P).

When you declare the variables, just tag local on them. Like this:

Code: [Select]
local var = blah
local var2

What difference will it make?

Well, for one thing, it will make running the program twice in a row not give Error: Not enough memory. ;)

Plus it could increase speed.

Would I do this with all the variables(ALL)?

Yes...

Doesn't the program declare all variables at the beginning anyway?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0