Author Topic: Lua Galaga Progress  (Read 9540 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua Galaga Progress
« Reply #15 on: December 27, 2011, 02:06:01 pm »
Then when the bullet has hit, you can erase the data while keeping the object, so then you can reuse it later.
Just delete the object since you have its ID and create another :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline 3rik

  • LV3 Member (Next: 100)
  • ***
  • Posts: 92
  • Rating: +8/-0
  • My TI-84+ SE
    • View Profile
Re: Lua Galaga Progress
« Reply #16 on: December 28, 2011, 12:52:07 am »
Hello everyone! I missed a lot of posts.

I was using a system much like the one adriweb was proposing. I have classes with all the necessary data and methods for each object type. Then when I create a new instance of the class, I store it to a table. When each missile moves, I check to see if it is touching any enemy object. If it is, a method is called which in this case, deletes both the enemy and the missile. In the future, it will probably trigger an explosion animation too.

The scrolling will be skippable. I just wanted to emphasize that this was a demo and not the final product yet.

I hope every one had a happy holiday season this year!
« Last Edit: December 29, 2011, 02:45:38 pm by 3rik »
Userbars

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Lua Galaga Progress
« Reply #17 on: December 30, 2011, 06:13:19 pm »
Welcome back 3rik :) Good luck on this game.

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: Lua Galaga Progress
« Reply #18 on: January 03, 2012, 05:40:03 pm »
3rik, is this how I add  the userbar?

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua Galaga Progress
« Reply #19 on: January 03, 2012, 05:42:16 pm »
lol
better place it in your signature, otherwise you'll have to copy it everywhere xp
just go to profile > Forum Profile Information, Look and Layout and paste that link you pasted here in the signature box
« Last Edit: January 03, 2012, 05:42:36 pm by Nick »