Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 19:29:02 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: Lua Galaga Progress -  (Read 1291 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: Today at 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197


Total Post Ratings: +185

View Profile WWW
« Reply #15 on: 27 December, 2011, 21:06:01 »
0

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 Smiley
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
3rik
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 02 April, 2013, 22:45:02
Date Registered: 09 August, 2011, 04:04:54
Location: Right over there.
Posts: 92


Total Post Ratings: +8

View Profile
« Reply #16 on: 28 December, 2011, 07:52:07 »
0

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: 29 December, 2011, 21:45:38 by 3rik » Logged

Userbars
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 18:03:25
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50227


Total Post Ratings: +2615

View Profile WWW
« Reply #17 on: 31 December, 2011, 01:13:19 »
0

Welcome back 3rik Smiley Good luck on this game.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Topic starter
Total Post Ratings: -5

View Profile
« Reply #18 on: 04 January, 2012, 00:40:03 »
0

3rik, is this how I add  the userbar?

Logged


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!


Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Today at 17:13:44
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #19 on: 04 January, 2012, 00:42:16 »
0

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: 04 January, 2012, 00:42:36 by Nick » Logged

Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.399 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.