Search found 98 matches
- Mon Dec 13, 2010 5:34 am
- Forum: Support and Development
- Topic: Scrolling Background / Enemies Updating.
- Replies: 7
- Views: 1929
Re: Scrolling Background - Working but ugly
I don't like this code is because I have to repeat it for each additional scroller image. Put state data for a scroller in a table, then you can store a list of them. In your update handler, iterate through all the scrollers in the list and do your update logic. Here's a crude refactor (not changin...
- Sun Dec 12, 2010 9:28 pm
- Forum: Support and Development
- Topic: Sloppy code?
- Replies: 6
- Views: 3147
Re: Sloppy code?
when I try to draw the images, I get an error [..] "Incorrect parameter type, userdata expected." love.graphics.draw(tset1 ,200, 120) love.graphics.draw(images.tset1 ,200, 120) Tables are just collections of key=value pairs. t = {} -- new table t["foo"] = "bar" print(t...
- Sun Dec 12, 2010 9:08 pm
- Forum: Support and Development
- Topic: Sloppy code?
- Replies: 6
- Views: 3147
Re: Sloppy code?
I'm currently studying up on the free primer of LUA. Which primer, if you don't mind me asking? formatted incorrectly? Indent your code to reflect it's block structure (i.e. indent the bodies of functions, control flow statements, etc.). Makes it a lot easier to follow the code, to see it's structu...
- Sun Dec 12, 2010 12:51 am
- Forum: Games and Creations
- Topic: MetaMorphEyes
- Replies: 23
- Views: 12630
Re: MetaMorphEyes
Looks cool. A couple of suggestions: Given that you never do anything but move, you could get rid of the requirement to hold the mouse button down. You could get rid of the 'click to move' instruction (players will figure it out real quick), and save some wear and tear on payers' tendons. It would b...
- Sun Dec 12, 2010 12:40 am
- Forum: Games and Creations
- Topic: Not Pac-Man
- Replies: 13
- Views: 9365
Re: Not Pac-Man
Fullscreen is disruptive and unfortunately has the tendency to mess up desktop settings, resolutions not changing back, the works. So especially for a small, arcadish game, it is annoying. I greatly prefer fullscreen in games (I want to be immersed; I didn't buy a big-ass monitor for nothin'). But,...
- Sat Dec 11, 2010 11:53 pm
- Forum: Games and Creations
- Topic: Not Pac-Man
- Replies: 13
- Views: 9365
Re: Not Pac-Man
Very cool idea. Looks great, too. A couple tweaks I tried:
- Holding shift to triple rotation speed. This made it a lot more fun in keyboard mode.
- Ghosts rolling around with you that you have to avoid. Made it a lot more challenging and interesting to play.
- Fri Dec 10, 2010 10:37 pm
- Forum: Support and Development
- Topic: Sound Effect / Forward + Jump? / Collision (kinda)
- Replies: 27
- Views: 6765
Re: Sound Effect
The problem I foresee with the 10 second war method is that if you have 10 sounds going at once, that will work, but if you have 10 sounds followed by another 10 sounds quickly, the last 10 sounds will go unheard. Yeah, my solution was to use the same circular buffer idea, but start with only 1 sou...
- Fri Dec 10, 2010 4:51 am
- Forum: Support and Development
- Topic: Sound Effect / Forward + Jump? / Collision (kinda)
- Replies: 27
- Views: 6765
Re: Sound Effect
If a given sound source is currently playing and you call play again, it won't start over. You have to either wait until it's done, or call 'stop' on it. love.audio.stop(sound) love.audio.play(sound) If you want another instance of the same sound to sound to play, such that it overlaps with the curr...
- Fri Dec 10, 2010 3:14 am
- Forum: Support and Development
- Topic: Game making help.
- Replies: 12
- Views: 4790
Re: Game making help.
And it won't work (because it was never tested) and he won't know why.Ryne wrote:What's going to happen now is the person asking for help is going to copy and paste your code
- Wed Dec 08, 2010 5:14 am
- Forum: Games and Creations
- Topic: Mouse Mania
- Replies: 5
- Views: 2522
Re: Mouse Mania
Music!Kingdaro wrote:Mouse Mania is a rhythm game [..] I'd like to know of any future features you guys might like to see.