## Elements BETA(my first game in lua)

Show off your games, demos and other (playable) creations.
Rhion
Prole
Posts: 6
Joined: Thu Apr 23, 2009 7:36 pm
Location: Sweden ;P

### Elements BETA(my first game in lua)

New here and I must say I LÖVE löve So much in fact that i decided to code a clone of my favourite puzzle game.
ELEMENTS is based on Tetris Attack. A puzzle game from the SNES era that have been revived by Nintendo several times. The goal of the game is to switch around blocks so they form 3 or more blocks in a row either horizontally or vertically. The more blocks that disappear together the more points each of them are worth. New blocks will continue to be added from the bottom and the game is over if any blocks touch the celling for 5 seconds.

Observe that this is BETA. Many features are on the to do list:
• "Game Over > Menu" transition.
Rare blocks
Manual Speed increase
Different difficulties
Caster Mode
More backgrounds
High score listing
Use Z to select options in the menu and switch blocks around.
Use X to make the blocks rise faster.
Game can be reset by pressing Escape. This will be removed in the final version!

Please provide constructive criticism as I would like to improve

All credits to MaestroRage for the background song: http://www.newgrounds.com/audio/listen/228382

Changelog:

0.7.5:

Fixed speedbug. Will hopefully work good on all comps now.
Added a "turbo" button. X will now increase the speed at which the blocks rise while you hold it down.

Older versions:
Last edited by Rhion on Fri Apr 24, 2009 10:26 pm, edited 4 times in total.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: Elements BETA(my first game in lua)

Rhion
Prole
Posts: 6
Joined: Thu Apr 23, 2009 7:36 pm
Location: Sweden ;P

### Re: Elements BETA(my first game in lua)

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: Elements BETA(my first game in lua)

HINT: Use z!

• The game goes WAY to fast (did you use dt?)
• Z?! What's wrong with return?
• I got an 'attempt to index nil value' at line 309 if I remember correctly.

qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

### Re: Elements BETA(my first game in lua)

nice!

I don't like the sound effect though, not gentle enough.

I also think the blocks are too glow-brighty.

I helped once with gfx in a game like this
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

Rhion
Prole
Posts: 6
Joined: Thu Apr 23, 2009 7:36 pm
Location: Sweden ;P

### Re: Elements BETA(my first game in lua)

bartbes wrote:HINT: Use z!

• The game goes WAY to fast (did you use dt?)
• Z?! What's wrong with return?
• I got an 'attempt to index nil value' at line 309 if I remember correctly.
Seems like a bit of fail today ;P

about the movement what OS are you using? It doesn't move that fast on my comp :/ Will look into it.
And yes Z. Forgot to write down the controls
(The reason for Z was for using X and shift for coming features. Though Z does feel kinda "small"
qubodup wrote:nice!

I don't like the sound effect though, not gentle enough.

I also think the blocks are too glow-brighty.

I helped once with gfx in a game like this
Was hard to find sound effects. Got no skills in audio editing. If you got any good site for sound effects I would be happy
Block graphics are not final. I personally hate the fire and wind blocks.
Last edited by Rhion on Fri Apr 24, 2009 6:22 pm, edited 1 time in total.
(>^^)>

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: Elements BETA(my first game in lua)

It's really WAY too fast, if I don't move I lose in a few secs. OS = Ubuntu Linux, and shouldn't matter.
This is a common mistake, you can use dt to correct for speed, apparently my pc runs the code a lot faster. (using dt you can limit movement to.. for example 1 block/second)
Example:

Code: Select all

movementPerSecond = 300

function update(dt)
x = x + movementPerSecond * dt
end

Another thing that should help is enabling vsync (don't know if my driver respects it though, so it might already be on)

Rhion
Prole
Posts: 6
Joined: Thu Apr 23, 2009 7:36 pm
Location: Sweden ;P

### Re: Elements BETA(my first game in lua)

@ Bartbes:

Thanks for the tip Will try with dt.
(>^^)>

qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

### Re: Elements BETA(my first game in lua)

Rhion wrote:Was hard to find sound effects. Got no skills in audio editing. If you got any good site for sound effects I would be happy
Check out http://love2d.org/forum/viewtopic.php?f=3&t=12
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

Rhion
Prole
Posts: 6
Joined: Thu Apr 23, 2009 7:36 pm
Location: Sweden ;P

### Re: Elements BETA(my first game in lua)

New Version: 0.7.5

Hopefully I fixed the speed bug ;O It would be nice if you could test it for me.

Check first post for changelog.
(>^^)>

### Who is online

Users browsing this forum: Google [Bot] and 7 guests