Re: My new Game
Posted: Fri Jul 17, 2015 9:48 pm
Yeah I still need to add obstacles and enemies
Yeah I still need to add obstacles and enemies
the new version should workGuard13007 wrote:
Hmmm... :/
sorry that it took me so long to respond but I was at the International music camp for the last week but anyway.Guard13007 wrote:Wait..is the link in the first post not updated?
Okay so I tried the new version, which runs...but nothing spawns. I assume something is supposed to spawn, I'm just in a tunnel going left to right.
At this point it doesn't really matter what spawns, you just need to have some difficulty. Enemies that move in a straight line against you are the most obvious. What about enemies moving at different speeds? Enemies that shoot? (in a line? Horizontally? At an angle? Fire outwards in a circle burst? Shotgun-style? There are many options.) Enemies moving along a sine curve?CanadianGamer wrote:sorry that it took me so long to respond but I was at the International music camp for the last week but anyway.Guard13007 wrote:Wait..is the link in the first post not updated?
Okay so I tried the new version, which runs...but nothing spawns. I assume something is supposed to spawn, I'm just in a tunnel going left to right.
the reason that nothing spawns is because I haven't got to that point yet I was just wondering If anyone had Ideas
Guard13007 wrote:At this point it doesn't really matter what spawns, you just need to have some difficulty. Enemies that move in a straight line against you are the most obvious. What about enemies moving at different speeds? Enemies that shoot? (in a line? Horizontally? At an angle? Fire outwards in a circle burst? Shotgun-style? There are many options.) Enemies moving along a sine curve?CanadianGamer wrote:sorry that it took me so long to respond but I was at the International music camp for the last week but anyway.Guard13007 wrote:Wait..is the link in the first post not updated?
Okay so I tried the new version, which runs...but nothing spawns. I assume something is supposed to spawn, I'm just in a tunnel going left to right.
the reason that nothing spawns is because I haven't got to that point yet I was just wondering If anyone had Ideas
(Additionally: Power-ups? Power-downs? Something increasing your speed, something decreasing your speed, something that only increases or decreases speed on one axis?)
Maybe give the player a gun? Maybe no? Maybe that's a power-up? Or removing a gun as a de-buff? Just start trying stuff!
Code: Select all
function love.update()
--enemy spawn code
if game == true and
beenThereFor == 20 then
newEnemy = {x = 1000, y = math.random(200, 340)}
table.insert(enemies, newEnemy)
end
--update enemy positions
if game == true then
for i, enemy in ipairs(enemies) do
enemy.x = enemy.x + (level * 20)
if enemy.x < 0 then
table.remove(enemies, enemy)
end
end
end
end
function love.draw()
--enemy draw code
for i, enemy in ipairs(enemies) do
love.graphics.draw(enemyImg, enemy.x, enemy.y)
end
end
Thanks for suggestion I think I wont put the goal to the left but rather put the spawn point to the left.Kasperelo wrote:Just a suggestion: You should make the goal a little bit more to the left, so you can see if any enemies are going to hit you. It's a bit unfair if you die to an enemy that you didn't even see at the edge of the screen