Activity

haohaohaoyan

I added a couple of features this time and polished a few:

  • Resizing windows is now possible. It’s controlled by two invisible divs on top of the bottom and right edges of the window, and works similarly to the drag function, but it only tracks the change in position of one axis and changes the width/height css attributes of the window accordingly. The resizing is also clamped so that the windows can’t be too small.
  • Dragging and resizing windows are smoother thanks to setting pointer-events on the iframes to “none” when dragging, so that you won’t stop dragging when your cursor accidentally moves into them.
  • I fixed that header thing last time by first making the function wait for the iframe to load before continuing, then using querySelector for the title. For the pages that I get security errors on, the page link is a fallback (the or operator is SO useful). As an added bonus, it automatically returns “Error” when there’s an https error that I can’t really figure out yet.
  • There’s a right click context menu now. At the moment, it just opens a dialog to open another file, but it will expand as I add more features. It suppresses the regular context menu with event.preventDefault, which is a pretty neat function.
  • The aforementioned file opener was added. It’s a bit goofy now, but it works and even handles errors when you leave the field blank.

After adding a file explorer, I should be ready to add content and actually put it online (the github pages is still set to my old website to keep it clean)

0
haohaohaoyan

I got the windows to hold content through iframes, which was initially confusing because I couldn’t embed most websites. I initially wanted the window headers to have the title of the page instead of the link, but I couldn’t get it to work because it always returned null before the content loaded (I’m not going to use jQuery yet). The taskbar is active and syncs with the actual windows, so I’ll get the minimize button working and some resizing next, then I can start working on some pages to display.

Attachment
0
haohaohaoyan

I was initially thinking of a webOS-type thing, so now there’s a draggable window system in place. These are all div elements that have a couple of event listeners tied to them that start moving it once you start holding onto the header bar. (It’s mostly copied from w3schools with a few tweaks, so check out their tutorial.) The copiable windows come from cloning the contents of a template tag, which took a bit to figure out because it kept returning the document fragment (which was somewhat useless at the moment) until I had it return the document fragment’s first child instead, which was the window. The fullscreen system was one that I made up, which was adding windows to a div that made all children 100% viewport size and locked to the top left, but I’m thinking of changing that to just a class because the div idea was something I thought of earlier while eating lunch.

Attachment
0
haohaohaoyan

I worked on plenty this weekend! Screen wipes! Better transitions! More stuff for the first area! Figuring out particles! Context tooltips! A start of level design! Some work in loading and unloading sections!!!!11!!!!!!!11!!! I’m not even sure I’ll make it in time !!!!! btw i can’t record rn so here’s an image (i’ll edit later witha video)

Attachment
0
haohaohaoyan

at this point i’m just going essentially weekly, but loads of changes happened! (mostly due to deadlines and stuff pressuring me)

  1. grappling hook is working and essentially finished
  2. loads of menu things: a title screen with a (placeholder) name, level/chapter select, and an options menu for the pause menu
  3. checkpoint and death system
  4. tweaks to other things (you can wallrun cleanly on curved surfaces now)
    hopefully i’ll have something done by next week but i’m not sure anymore
0
haohaohaoyan

Schoolwork has been ridiculous lately so not too much work, but I added a camera effect for wallrunning, slide and fast movement sound loops, a slightly different pause menu, and started reworking the grappling hook (now with an actual model) and midair movement. I’m also beginning work on a puzzle thing for level design, and you can see the progress on it below!

Attachment
Attachment
0
haohaohaoyan

ok so there’s loads of new stuff now. 1. fixed the speed doubling bug (velocity doubled when slide-jumping) 2. added pause menu 3. some fancy effects and better speed-lines 4. started work on the grappling hook but it’s kinda broken rn 5. fixed a wallrun-jump bug (sliding momentum wouldn’t change upon walljump so they kinda got broken)

0
haohaohaoyan

I added ANOTHER new gym (that looks better) and am currently fixing up the movement and sliding. It isn’t bad, but it’s super buggy in some cases. The video attached is an example of some ridiculous acceleration that I find amusing, but bad for gameplay.

0
haohaohaoyan

I added camera movement, a wallrunning prototype, and a new gym. It’s looking pretty good so far.

0
haohaohaoyan

ok so I got some basic movement, collision, and jumping working. i’ll be working on camera movement next.

Attachment
Attachment
0
haohaohaoyan

I didn’t get to the AI training yet, but I changed the movement system a little and got dragging to work.

0
haohaohaoyan

I started working on this early today but just added it to Flavortown, at the moment it has camera view for debugging, point finger for mouse movement and close fist to click. I can’t wait to start making my own gestures….tomorrow!!!!!!

0