Lua 3d RPG v3.6, 1st person tunnel game experiment

zardOz2 - Custom level - from Android
PlayEdit53 players liked this.Log in to like this level.

Playing with Line draw, made a cool tunnel effect.

v1.1: fixed the arch appproach speed by squaring the per bit counters
v1.2: changed the floor color and made the arch timing better
v1.3: made a distant pulsing light color effect
v2.0: changed to a walkable tunnel with improved color depth and "magic"
v2.1: added camera shift with every step and changed the sound a bit. 2.1.1: fixed the camera shift drifting
v2.2: Fully noted lua code, should help the inquiring minds understand.

v3.0: Big update, added a hp, mana, stamina bar with great difficulty, harder to add new stuff now. The Hp and Stamina are working, no spells yet.

Had to do a ton for stamina, stop walking, sounds, camera move when holding button etc... but the real trick was I had to make it so the hp combo bar didnt move with the step based camera shift, Also my notes arent so good anymore lol.
3.0.1: minor color shading changes and a "too tired to walk" prompt.
3.1: added a stamina boosting spell, hold [f] to cast your spell.
3.2: added a healing spell with fx, sound and a timer reset indicator... changed the camera so it auto-centers during build testing... removed outdated notes
3.3: fixed up the User interface and repositioned everything, made a screenshot that doesnt suck.
v3.4 Added a locked gate for a proper entrance to my tomb with touch activated keyhole, sfx and the works... it was a tough one. 3.4.1: fixed the graphics on the gate bars lowering.
3.5: Start screen touch feature added with fade in and a pain in the ass arch, Jammer's text writer(u11) povided the words.3.5.1: camara shift fix
3.6: New wood support and and gate limit draw and fixed the red damage flashing and added a visible barrier at the end.

Views: 4967 Downloads: 1993 Unique objects: 16 Total objects: 185

Discuss this level

Log in to comment on this level.
  • TheBossMan: If you can't pass door 2
    why I see a 3rd door?
  • that guy2: Sometimes I wonder
    If secrets are to be held
    Within this small trick...
  • zardOz2: @TechMan101: cant, thats where I ended. Its just there so Something does damage
  • TechMan101: How do you pass door 2
  • zardOz2: @The Ohio One: Probably never at this point, It would be #6 on my list after the update.... I would need to start from scratch for a serious expansion on it.
  • The Ohio One: @zardOz: when will you update it
  • zardOz2: @Ridget: thx Ridget, I have several other actual games if you like, poker, mastermind, press your luck, hi card, and sprite racing
  • Ridget: This game now is gamemaker :D awesome
  • zardOz2: You probably backed up a tiny bit, it requires that you are all the way forward @incrazyboyy:
  • incrazyboyy: Nothing happens when i touch the keyhole... :(
  • zardOz2: @RasmusOlle: that's the end for now
  • RasmusOlle: or what its are called!
  • RasmusOlle: how to go behind the magical prompt door?
  • pajlada: @zardOz: Thanks, I'll take a look :)
  • zardOz2: @pajlada: I resaved the file and found the newest "last modified"... I sent the correct one I think with a brief description of the workings. Please dont reply to that gmail account I dont ever use it.
  • pajlada: @zardOz: Hm, right.. If you do bump into any such issue again and you're able to identify which level ID is the bad one (most likely the most recently changed if you do it immediately after), then you can send me an email.
    I'll look into adding a method of retrieving the level ID of your local levels for this purpose.
  • zardOz2: @pajlada: all my files are still mystery numbers
  • zardOz2: @pajlada: ill check, but im afraid to touch them at this point, Im afrraid you wont find any logic behind it.
  • ricardito08: The most revisioned level!
  • pajlada: @zardOz: If you have any of the bugged levels saved as copies (the ones where the sound didn't work) I'd love to study them.
    You can send them to me at my email pajlada@bithack.se
  • JOELwindows7: Broken! Pause is missing.
  • zardOz2: It's working for now, only took 10 republishes.
  • JOELwindows7: @zardOz: bugs in here. SFX emitter. Report now on forum please.
  • zardOz2: Nooooooooo the sound broke again! *!&#
  • zardOz2: Well Ive reverted to before the pause feature, It completely bugged the level, even erasing everything and adding a sfx emitter with a jumper couldnt restore the sound... Ill try again later
  • zardOz2: @The Ohio One: that's the end for now, ive ried to redo the whole thing sso it can be longer but It's not going well
  • The Ohio One: @zardOz: Cool, but how do you get past the prompt?
  • zardOz2: Nah It's some kind of bug, I have to change my pause code cause it was never intended to be paused.
  • JOELwindows7: @zardOz: certain device. Mine was Nexus 5. You?
  • zardOz2: @JOELwindows7: damn, Im annoyed. Bug I guess, I cant figure out how or why...
  • JOELwindows7: @zardOz: yup, except when entering the dungeon :(
  • zardOz2: @JOELwindows7: is the sound working for you?
  • JOELwindows7: Pause game Awesome!
  • zardOz2: Hmm, damn my spell sfx are mysteriously offline
  • zardOz2: @sdac: thanks bossman, I still can't even use functions and a bunch of other stuff yet lol but im getting there! IIm working hard to find codes which keep the lag down near zero... just noticed that imbedded for/do loops cause a huge amount of lag, attempting to put the two lower. for/do loops inside the top one(on the arch draw lua) caused it to lock right up. but if I spell them all out the long way, no lag at all.
  • sdac: Very impressive! Looking forward to seeing your creations when we have real polygon rendering support in Lua (possibly in 1.5).
  • RAY5D: @zardOz: lol
  • zardOz2: @RAY5D: yep, It's just there to give me something that does damage
  • RAY5D: @pajlada: thx
  • pajlada: @RAY5D: not possible yet, it's the current way to say "game over" :)
  • RAY5D: how 2 pass that ******* magical box?
  • Demon666: lmao nice additions to the tunnel
  • Wkmz: Excellent !
  • JOELwindows7: Wow better.
    @zardOz: hire someone draw Manga!
  • zardOz2: @FirePhenixFire: thx! @Wkmz: Just as soon as somebdy draws me a imrtal guardian, I really suck at drawing
  • JOELwindows7: @Wkmz: hmmm good idea. zardOz, how with about you
  • Wkmz: zardOz, you can maybe replace the magic prompt box with an immortal guardian if you can
  • FirePhenixFire: Nice Gate.
    :D
  • zardOz2: Hold forward at the end to lose health... ill add an enemy soon when I get the motivation
  • x32g: can you add a way to lose health like an enemy?
  • x32g: can you add a way to lose health like an enemy?
  • zardOz2: @The_Blacksmith_: thanks I haddto go back and add sounds it just didnt feel right, Now im kinda stuck since I based everything on the short hallway, Im gonna have to redo it all if I want it longer.
  • The_Blacksmith_: Nice effect with the key hole!
  • zardOz2: @Wkmz: thx, I'm pretty surprised how good it's turned out so far... lot's I still cant figure out though
  • Wkmz: I understand. I keep waiting for updates, this level is one of my favorites
  • zardOz2: @Wkmz: no, just adding different features... It's just there to give me something that does damage
  • Wkmz: Is it possible to pass through the magical prompt box ? D:
  • zardOz2: @Architecter: welcome to the show!
  • Architecter: Hey zard, its me the guy from apparatus
  • x32g: Good enough.
  • zardOz2: @x32g: no but you get a great phone signal;)
  • x32g: If all of the bars are at full, can we shoot lazers?
  • JOELwindows7: @zardOz: battle, yeah make some sort of fighting scene.
  • zardOz2: And thanks Leis;)
  • zardOz2: @Leis: can't pass yet...
  • Leis: First 1st person adventure game :D how to pass the block ?? Effect very good! Skill so cool
  • zardOz2: @JOELwindows7: thx, It turned out nice. If someone want to make me a descent looking sprite pattern for some kind of enemy ill see if I can get a battle on
  • JOELwindows7: Spell*
  • JOELwindows7: Cool again. Speel re-heal
  • JOELwindows7: @zardOz: yes! thx sir!
  • zardOz2: @JOELwindows7: too hard to make the color changes on the hallway... im gonna work on mapping and menus and spells/skills etc
  • JOELwindows7: Yes! Spell to refill stamina, but how with the block ahead? Any way Awesome!
    "Keep calm and build!" lol I know you are from UK
  • Demon666: alright ill look into it making it turn
  • zardOz2: @Demon666: I posted the code on the forum, returned it to a continuous loop and no flashing sprite, cam shift, hp/stamina
  • zardOz2: @Demon666: Ill check
  • Demon666: i do have an idea of how to make it look likes its turning... do you still have a copy of the 1.0 version of this that i can play with? all your additions makes it very difficult to experiment with it.
  • The_Blacksmith_: Oh. I never noticed that.
  • zardOz2: @The_Blacksmith_: is it twitching or is the camera simulating steps? Thats been there for awhile
  • The_Blacksmith_: After the update the hallway twitches. Thought you should know.
  • zardOz2: @pajlada: powerful magic that! A prophecy has fortold that one day a coder would come and program a turn in the hallway...
  • pajlada: I can't get past the magical prompt box :(
  • zardOz2: Lines are far less laggy for me, complex sprites add up quick I find
  • Demon666: lol yeah but the computer thats connected to that tv dosen't run principia very well unfortunately almost every level I've ever made lags on it this level dosen't lag on it tho. it makes no sense because that computer isnt that must less powerful then my tablet... your phone probably runs principia better then my other computer lmao.
  • Demon666: yeah currently the red lines are over the glow and make the glow look broken up.
  • zardOz2: Mmm, 32" Principia ....tasty
  • zardOz2: Glow over the red lines? Like illuminate them more?
  • Demon666: it actually looks really good on my 32 inch tv lol better then my tablet and galaxy note lmao
  • Demon666: it does look better on my galaxy note tho because of the smaller screen.
  • zardOz2: Yeah, I think I'll leave it since I cant really test the results, thanks
  • Demon666: also the red lines that you make it look even more separated. it would look better if you put the glowing light over the red lines
  • Demon666: on my 11.6 inch tablet the lines start to look more separated towards the end. mainly because of the glowing light
  • zardOz2: How does this look on a big screen? Do I need to make the lines at the far end thicker?
  • zardOz2: @Demon666: yeah I didnt really try to reduce it, that one has like 300+ sprites
  • Demon666: you could make a small animated flame like 3 frames or so just to give the illusion of a torch.
  • zardOz2: @Winfrid9: @Demon666: thanks... I tried to add a jammer fire torch that brightened the near wall but the lag went nuts:(
  • Winfrid9: :O
  • Demon666: the footsteps are a nice touch lol certainly helps with the illusion lol
  • roboz: @zardOz: oh ok thanks
  • zardOz2: @golden: @JOELwindows7: yeah the steps and sound really helps the illusion
  • JOELwindows7: First person. Awesome! Render!
  • Golden: Now i like it better ;)
  • zardOz2: Dang, camera shift is drifting
  • Leis: @zardOz: I very sure u will able to do it some day :D might became first 3D dungeon adventure in principia!
  • zardOz2: @Alfajim: thx, with vector graphic and no shading it shouldnt be too bad... that doesnt mean I could do it but it's definitely doable... @The_Blacksmith_: damn evil wizards and their prompt boxes! @Leis: Im a looong way from turning;)
  • zardOz2: @roboz: you use this:set_sprite_tint(#r,#g,#b,#density) there are many examples for you to experiment with.
  • The_Blacksmith_: Dang magical prompt box! Lol LIKE
  • Alfajim: Awesome work. It reminds me of the death star destruction run, how hard would it be to replicate that?
  • roboz: How do you colour the lines? What code do you type in
  • Leis: Can I turn? Lol
  • roboz: @zardOz: thanks
  • zardOz2: @roboz: write this... this:draw_line(0,0,10,0,0.5) ... that will make a line that starts at world position 0x,0y and ends at 10x,0y and is 0.5 width.
  • roboz: @zardOz: I wrote it in and it has has a little warning sign on it
  • roboz: @zardOz: oh thanks
  • zardOz2: @roboz: I replied in the chat page.. there is also a section in the lua object description button
  • roboz: What's the code for drawing a line?
  • JOELwindows7: Awesome! Realistic 8 bit walking effect!
  • zardOz2: @_vania_: @Leis: @nightman83: thx, big new update with walk function and some color detail upgrades
  • _vania_: WOW! amazing
  • Leis: Nice :D stair please `
  • nightman83: Awesome!
  • zardOz2: I think I can pull off a corner...but turning is a whole nother story
  • woodnut2: @zardOz: what about a corner? Very complex ?
  • zardOz2: @woodnut: I can do dead ends like a champ! Now I just need a beholder sprite
  • woodnut2: @zardOz: sorry dude , 'zard0z'
  • woodnut2: Nice work. Zord0z crypt entrance :)
  • Golden: Now it is working
  • zardOz2: @golden: ok I nailed it to a pixel below the start point
  • Golden: @zardOz: when i edit, then played the level and it dosent show up, i dont know where Luascript is?
  • zardOz2: @golden: works for me... anything in particular? Or doesnt work at all?
  • Golden: It dosent work in edit
  • Demon666: hmm i was thinking of doing something similar to this.... i was thinking of making a lua temple run game.... but i have no idea how to make it look like the ground is turning lol.
  • zardOz2: @Rubicon: yep, I still have virtually no clue about functions, repeat/until, while/do, in pairs and several other things... you can do a great deal with only if/then, for/do and tables
  • zardOz2: @Rubicon: yep, I still have virtually no clue about functions, repeat/until, while/do, in pairs and several other things... you can do a great deal with only if/then, for/do and tables
  • Rubicon2: Very nice ZardOz, it's hard to believe you didn't know Lua before the Christmas update, that means I still have a chance of learning it :) now I just need the time and will to do it :S
  • zardOz2: @yo man: see Lua 101 part X and swipe controls... light cycles are on my rather long list
  • yo man: I feel like its a tunnel to an arena for a tron like battle haha
  • Hobbit: Why does light speed always look so freaky?
  • Builder2000: Awesome*
  • Builder2000: Awesme!!!
  • zardOz2: @Leis: @JOELwindows7: @RAY5D: @roboz: @golden: @The Ohio One: @The_Blacksmith_: @coby: thanks everyone! @Wkmz: you gotta start somewhere... I didnt know anything about programming before christmas update, everything I know I learned from other levels so check out something simple and start changing numbers to see what happens:)
  • JOELwindows7: Hmmm idea template more Awesome!
  • coby: I could use it as a.mini game where you dodge cars
  • The_Blacksmith_: Awesome one zardOz! LIKE
  • The Ohio One: Cool
  • Wkmz: That's epic, I wish I would know some lua lol
  • Golden: Sh*t my head O.o
  • RAY5D: cool!
  • roboz: Whoa so cool!
  • JOELwindows7: Whoa! It's 1080p! Awesome!
  • Leis: Ah already no amazing when see u create amazing stuff..nice!
  • zardOz2: Hmm, the speed needs a parabola, that'll be tricky.

LEVEL ID: 4801