The Crawler of Dungeons™ [!RENAMED! AND !REBORN!]

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Dungeon Crawler [SAVING DONE]

Post by Davidobot »

coffee wrote:
Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
LOADING IS NOT (MISSION FAILED)
if you press L it "blues"...
Just don't load the first time. So, start game go to a level. Exit. Start again. Press l
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Dungeon Crawler [SAVING DONE]

Post by Banoticus »

coffee wrote:
Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
LOADING IS NOT (MISSION FAILED)
if you press L it "blues"...
really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2. ;)
are you sure you re using the new version
:ehem:
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Dungeon Crawler [SAVING DONE]

Post by coffee »

Davidobot wrote:
coffee wrote:
Banoticus wrote:SAVING IS (MISSION ACCOMPLISHED)
LOADING IS NOT (MISSION FAILED)
if you press L it "blues"...
Just don't load the first time. So, start game go to a level. Exit. Start again. Press l
Well, things don't work that way. "Use L to load." So I did. You enabled "Loading" without a safe precautioning when file isnt created. Not my fault but yours. Just fix it because the solution is simple. But don't even tell me it's my fault. lol. :)
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Dungeon Crawler [SAVING DONE]

Post by coffee »

Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2. ;)
are you sure you re using the new version
:ehem:
Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Dungeon Crawler [SAVING DONE]

Post by Davidobot »

coffee wrote:
Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2. ;)
are you sure you re using the new version
:ehem:
Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?
I'll be sure to fix that in v0.0007 ;)
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
kesac
Prole
Posts: 49
Joined: Tue Apr 03, 2012 12:29 am
Contact:

Re: Dungeon Crawler [SAVING DONE]

Post by kesac »

Hey, just tried it out. The movement is very smooth, especially when I'm trying to go around corners really quickly. The one thing I really want to be able to do though is just hold down one of the arrow keys to move continuously. Repeatedly tapping an arrow key to go straight for multiple squares is just so tiring! Anyway good stuff, I look forward to future releases.
Have you met the Child of Winter?
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Dungeon Crawler [SAVING DONE]

Post by Davidobot »

kesac wrote:Hey, just tried it out. The movement is very smooth, especially when I'm trying to go around corners really quickly. The one thing I really want to be able to do though is just hold down one of the arrow keys to move continuously. Repeatedly tapping an arrow key to go straight for multiple squares is just so tiring! Anyway good stuff, I look forward to future releases.
Noted, will be added in the near future.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Dungeon Crawler [SAVING DONE]

Post by Banoticus »

Davidobot wrote:
coffee wrote:
Banoticus wrote: really it works fine for me i play until level 2 quit and then open it up again and press l and voila level 2. ;)
are you sure you re using the new version
:ehem:
Hello, welcome to the project. The problem is that you after create the code you forgot to test it and think in all possibilities. You were working always with a file created in your directory but forgot what would happen if one is not there. Just use https://love2d.org/wiki/love.filesystem.exists and disable load option if a file isn't present. Users can't guess that they shouldn't press load when playing for the first time right?
I'll be sure to fix that in v0.0007 ;)

Thanks for the advice, I should have considered that. :awesome:
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Dungeon Crawler [SAVING DONE]

Post by Banoticus »

I am trying to add a death system: when you die or are killed the screen turns black and the words GAME OVER appear. Can anybody tell me how this is done.
:huh: :cool:
User avatar
jradich
Party member
Posts: 100
Joined: Mon Dec 12, 2011 8:44 pm

Re: Dungeon Crawler [SAVING DONE]

Post by jradich »

Banoticus wrote:I am trying to add a death system: when you die or are killed the screen turns black and the words GAME OVER appear. Can anybody tell me how this is done.
:huh: :cool:
How about something like:

Code: Select all

player = { --Assigns stuff to player. 1(exept for background) is true, 0 is false
        grid_x = 256,
        grid_y = 256,
        act_x = 200,
        act_y = 200,
        speed = 10,
	direction = 1,
	health = 100,
	sword = 1,
	shield = 0,
        death=false
	level=1
}
       deathtext=' GAME OVER'
In love.update(dt), you could put something like

Code: Select all

if player.health==0 then
     player.death=true
end
You cancel a bunch of other stuff with player.death, too.
the love.draw would be:

Code: Select all

function love.draw()
  if not player.death then
	love.graphics.print("This is the help for this game.\nUse the arrow keys the control the player.\nUse L to load. You save when you exit the game.\nAlpha v.0.0007\n\n\n\nDebugging Info:\nFPS:"..fps.."\nRandom:"..monster.."\nMonsters(True/False):"..mon.."\nHealth:"..player.health.."\nSword(True/False):"..player.sword.."", 500, 30) --help
		for y=1, #map do --draws the map
			for x=1, #map[y] do
				if map[y][x] == 1 then
					love.graphics.draw(wall, x * 32 , y * 32)
				end
				if map[y][x] == 2 then
					love.graphics.draw(checkpoint, x * 32 , y * 32 )
				end
				if map[y][x] == 3 then
					love.graphics.draw(decheck, x * 32 , y * 32 )
				end
				if map[y][x] == 0 then
					love.graphics.draw(flor, x * 32 , y * 32 )
				end
				if map[y][x] == 4 then
					love.graphics.draw(chest, x * 32 , y * 32 )
				end
				if map[y][x] == 5 then
					love.graphics.draw(boss_1, x * 32 , y * 32 )
				end
			end
		end
		if player.direction==1 then --prints the direction of player
			love.graphics.draw(guy_u, player.act_x, player.act_y)
		elseif player.direction==2 then
			love.graphics.draw(guy_d, player.act_x, player.act_y)
		elseif player.direction==3 then
			love.graphics.draw(guy_l, player.act_x, player.act_y)
		elseif player.direction==4 then
			love.graphics.draw(guy_r, player.act_x, player.act_y)
		end
	end
	if player.death then
		love.graphics.print(deathtext,100,300)
	end
end
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 3 guests