Log In  


Cart #43420 | 2017-08-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
27



Cart #43308 | 2017-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
27

Dungeon game inspired by Pixel dungeon for LOWREZJAM
https://egordorichev.itch.io/lowrez-dungeon

Controls

C/Z - use current item
X + arrows - select inventory slot
X + C/Z - delete item (be careful :D)
Arrows - move

27


Awesome game !


inspired by Pixel dungeon -- oh no! I've been playing a version of that for MONTHS on my Chromebook. Damn most addicting game I've ever played in my life! So this makes me weary of trying this one out :) (curses you in advance)


Nice work, played 'til I beat it. :)

One QoL suggestion: a 1-pixel funnel at doorways so a) traversing them isn't so frustrating and b) you can't exploit it when a mob gets likewise stuck off-by-one on the other side of a door.

Also, I'm assuming the no-vertical-attacks thing is to force you to strategize a bit, but man it's depressing when a chest is in a vertical doorway. :/


@elDaz2, @Vectorguy, thank you!
@Felice, yeah, I probably need to add grid snapping to the game. Will fix that ungettable chest thing :D


Updated the game, now chests don't spawn in walls/unreachable places.


Woo, thanks. :)


Woot! That was super fun! Excellent work. :) I did happen to get a chest in a wall, though. It was in the bottom-left corner of a room on the last level.


Thanks, @MBoffin :D I just can't beat this bug for some reason


Very nice game. Indeed some chests did appear in walls.
Another thing that I thought about, shouldn't the name of the potion be displayed after first trying it out?

At line 916:

new_chest(x1,y1+1)

Shouldn't that be:

new_chest(x1,y1)

?

[Edit]:
Also if I understand the code a little, you don't really delete the older chests when generating a new level.


Oh, that's so true ;D Thank you!


Anyway, awesome concept and game :)


Hello, sorry to bother you again. I think you're overcomplicating yourself with the ANDed is_frees. Firstly they should be ORs but for some reason it always ends up in the if i>999 then branch effectively hanging the game.
If left as is I noticed that there's actually a bigger chance of the chests spawning in the walls.

If you apply the next patch:

--- lowrez-dungeon-orig.p8	2017-08-19 01:22:27.905027832 +0300
+++ lowrez-dungeon.p8	2017-08-19 01:24:00.522982622 +0300
@@ -38,7 +38,8 @@
 to_update={},
 collidable={},
 enemy={},
[color=#aa0000]-items={}[/color]
[color=#00aa00]+items={},
+chest={}[/color]
 ]]

  for i=0,4 do
@@ -214,7 +215,7 @@

 function new_chest(x,y)
  return def([[
[color=#aa0000]-regs={to_draw1,collidable}[/color]
[color=#00aa00]+regs={to_draw1,collidable,chest}[/color]
 ]],{
   x=x*4,
   y=y*4,
@@ -792,6 +793,9 @@
 -- level gen

 function generate()
[color=#00aa00]+ for c in all(objs.chest) do
+  deregister(c)
+ end[/color]
  for e in all(objs.enemy) do
   deregister(e)
  end
@@ -917,15 +921,7 @@
  for j=0,2+flrnd(2) do
 	 i=0 
   x1,y1=flrnd(4+116),flrnd(20)+5
[color=#aa0000]-	 while not is_free(x1,y1) 
-	  and not is_free(x1,y1+1)
-	  and not is_free(x1,y1-1)
-	  and not is_free(x1+1,y1)
-	  and not is_free(x1+1,y1-1)
-	  and not is_free(x1+1,y1+1)
-	  and not is_free(x1-1,y1+1)
-	  and not is_free(x1-1,y1-1)
-	  and not is_free(x1-1,y1) do[/color]
[color=#00aa00]+	 while not is_free(x1,y1) do[/color]
 	  i+=1
 	  if i>999 then return generate() end
 	  x1,y1=flrnd(4+116),flrnd(20)+5


it should no longer happen.

Just wanted to add that I never thought this would turn out so addictive. I've been playing the game for almost 30 times (o.O).


Ok, thank you so much :D Did you win once?


I think I lost three-four times. :D Some of the times I would quit it so I could analyse it.

There's still one thing that I think makes it have the bug (I did meet a chest in a wall) on line 39 you have chests={} which should be chest={}. You're referring to that register as chest throughout the program.

I saw that you plan on expanding the game very much, with different slots for armour and the like. This is such an awesome project.

[EDIT]: Crap it's still reproducing... these must be ghost chests... :| Now I'm at a loss for thoughts...
[EDIT2]: Aah, found the reason... line 919 new_chest(x1,y1+1)
[EDIT3]: Just finished the game twice, and no more ghost-chests :D


Horay :D Thanks for playing! Are they totally fixed?


Well I did play it again a few times and with the modifications I made on lines 39 and 919, it seems to no longer produce the ghostly-chests bug :D

What I noticed is that after you find one of the armours the game is considerably easier :) especially if you also find a better weapon.

I love exploring the whole level before actually going to the next. Sometimes it's just too easy to find the stairs and even take them accidentally. I wish you'd have to attack while being on the stairs to actually trigger it. :)



[Please log in to post a comment]