You are browsing as a guest. Sign up (or log in) to start making projects!

8h 33m 13s logged

Lighting & Dropping stuff

i’ve been slacking off recently, and I mean it. I’ve coded less, and played more games due to the uhhh looming school season starting again but like… i’ve still managed to make things like lighting, dropping stuff, and shuffeling stuff in ur inventory by using the number keys.

Features

Lighting

At first, this was one of the reasons why I decided to switch to little js, but like their system is not designed for 2d minecraft use, so I had to improvise. The lighting system consists of two basic things. One is the ambient lighting, which basically fills the whole screen with light / filling the whole screen without light, and the second thing is like “light objects” by that, I mean like point lights, which are like round lightbulbs per say, and they emit light. Those would be used for stuff like torches.

Q

Dropping things with q didn’t exist in the 2 part drops update, cuz i was too lazy to implement that. But now, I added that. It’s simple really, it just creates a new droppped item every time u press q. and if u press q with control, then it drops everything in the hotbar slot hovered, and u can drop things in ur inven by hovering over it.

Moving things around in ur inventory with the top number keys

I added that cuz im just used to that in uhhh…. bloxd.io so yeah, i just added that.

Attack anim

press mouse button 0 to attack. currently just attack animation for now

Changes & Bug fixes

  • Random tick events for stuff like grass turning into dirt or vice versa
    *greijodkmgrfd idk, it was in my commits smth to do with promises
0
25

Comments 0

No comments yet. Be the first!