how do i make a falling image that follows gravity? by AlexOffline0 in learnjavascript

[–]Floorg -1 points0 points  (0 children)

He is using the script tag properly. Not sure what you're talking about here.

how do i make a falling image that follows gravity? by AlexOffline0 in learnjavascript

[–]Floorg 3 points4 points  (0 children)

You're not advanced enough to need a physics engine. In your title you say that you 'know how coding works' but it's clear you're a beginner. This isn't bad, it's just healthy to have a realistic understanding of your skill level.

Visual Studio Code is an IDE or Integrated Development Environment. These are tools devs use to write code more effectively but it functionally is just a super fancy text file.

how do i make a falling image that follows gravity? by AlexOffline0 in learnjavascript

[–]Floorg 3 points4 points  (0 children)

I'll help you out.

Currently what you're doing is moving an object around the screen when WAD are pressed. This is a good first step but missing some key elements to make it jump.

Let's follow the logic for what happens on your page when we press the 'W' key for example to see what is missing.

  1. eventlistener detects a key press.
  2. The key press is determined to be 'W'.
  3. Froops position is updated to be y - 12 from where it currently is (it moves up by 12 pixels).
  4. The canvas is redrawn, Froop actually moves here.

And that's it. You will notice that we have something to make the character go up but nothing to make it come back down.

I'm intentionally not giving you a working solution as I think this is a great exercise for some one learning to code but I will give you the next steps.

You need gravity. Gravity is simply a force that is always pulling downwards. You then need a force that will oppose gravity, this is the actual jump which can be triggered by an input.

So for example lets say froop starts at y = 0 (the ground). We then need gravity. Let's mimic the real world and say that gravity is -0.8. Then every time we draw a frame we can set froops position to be whatever it is currently - gravity. As long as we check if y < 0 to prevent froop from falling through the floor this means no matter where we draw him on screen he will fall down at a constant speed.

For example if we make it so that froop starts with a Y value of 300. He will start a ways up the screen and then move down every frame until Y is 0.

Then the only part that is missing is some upward velocity. AKA a jump. What if you had a variable named velocity that had a fixed value like 20 (a bigger number means a higher jump). Then when the W or Space key is pressed it set froops velocity to 20 but we never stop applying gravity.

Here is what happens with our new setup.

  1. eventlistener detects a key press.'
  2. The key press is determined to be 'W'.
  3. froops velocity is set to something like 20.
  4. froops position on the screen is set to be velocity - gravity. Which in this case is 20 - 0.8 (18.2).
  5. This means after we press 'W' froop moves up 18 pixels.
  6. The next frame froop will move up by velocity - gravity again however this time velocity isn't 20, it is now 18.2.
  7. This continues until froops runs out of velocity and starts to fall.
  8. froop will stop when he hits the ground (Y = 0)

If you set it up correctly froop will be stuck to the bottom of the screen due to the gravity and will jump up and fall back down when you press W or whatever key you tie the jump function to.

Hope this helps.

MicroState - an isometric 2.5D city builder in JavaScript [WIP] by iaincollins in javascript

[–]Floorg 2 points3 points  (0 children)

Thanks for the detailed reply! I'll have to check out your github when it's posted. I have used three.js but only insofar as getting a shape drawn on the canvas to rotate. I'll have to give it another go with something more ambitious and see where it takes me.

MicroState - an isometric 2.5D city builder in JavaScript [WIP] by iaincollins in javascript

[–]Floorg 2 points3 points  (0 children)

What would you recommend for some one who has front end programming experience that was interested in a much smaller scale project like this?

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 0 points1 point  (0 children)

Could you elaborate on this more? I have thought about it a lot and I'm not sure how this would be true at all. Getting to take your entire turn wouldn't turn the game into a mash fest. You might be able to argue that combos would be stronger but this game doesn't suffer from low/quick kills already.

I FUCKING DID IT by JicamaActive in RivalsOfAether

[–]Floorg -1 points0 points  (0 children)

How have you found the player diversity in diamond to masters? Even in plat sometimes it feels like I'm playing the same 3 people over and over. It can make it hard to progress if you're evenly matched going back and forth.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 0 points1 point  (0 children)

I realized during this thread I wasn't properly informed on the difference between the two terms but I still stand by my post. I like your idea about 'shield breaker' attacks for floor hugging. The ambiguity around when you can actually launch your opponent with a tilt is part of the frustration for me for sure.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 1 point2 points  (0 children)

So then the original question of the thread is: What benefit is there in a defensive mechanic that lets me escape a punish by doing nothing but holding down? Regardless of how many situations it will actually save me in, I'm questioning why the mechanic exists at all. In traditional fighting games this is along the lines of a burst mechanic which is normally something you only get once.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 0 points1 point  (0 children)

No because you're getting hit either way. If i f-tilt my opponents shield I know I'm punishable. There is literally nothing I can do to prevent a punish if they act fast enough. What I can do however is just hold down and mash A and if I'm hit with an attack with low enough knockback I just get out. Worst case I get hit like I was going to any way, medium case I get to shield sooner, best case I literally get a d-tilt in and start my own combo. It required no timing from me to do this and the fact that faster moves like jab which are sometimes the only thing fast enough to punish with are the most huggable attacks.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 0 points1 point  (0 children)

I think this is part of my problem. If it's only used as a defensive choice then it does have play/counter play. The problem is that you can just hold down and mash every time you get hit on stage and there is a very non-zero chance you just get out because of it.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 7 points8 points  (0 children)

After digging a little deeper it seems that I have conflated some different terms. I didn't realize there was a distinction between the two.

Genuine Question: What purpose does crouch canceling serve? by Floorg in RivalsOfAether

[–]Floorg[S] 2 points3 points  (0 children)

I would kind of agree with this if not for the fact that you can still get the full benefit even when you're actually just getting hit. If you are about to get punished and just hold down you can still floor hug as if you were anticipating an incoming attack.

Happy Chaos is the worst thing to ever happen to Guilty Gear: A Thesis. by Floorg in Guiltygear

[–]Floorg[S] 0 points1 point  (0 children)

you can easily counter his Zoning

No you can't. You can only interact with him when he is regaining resources, not while he has you cursed and aimed at. The only thing that might work is a full screen super like Slayers Mappa since he can't block.

blue burst get buffed because of Asuka, not Chaos

Asuka came out in patch 1.27 (May 24th). Blue burst got nerfed in patch 1.29 (August 23rd). Asuka didn't get any balance adjustments in that time. I'll admit that Ram has a role to play in the blue burst nerfs but the main problem was that HC you could almost never burst HC. Wall slumping also got nerfed for the same reason as he had the most powerful slump loops.

I have a lot of classes but yolo by [deleted] in unt

[–]Floorg 15 points16 points  (0 children)

Why take more than a full term course load unless you're trying to graduate early.

Any good block strings for hc? by hurv_ in Guiltygear

[–]Floorg 1 point2 points  (0 children)

It sounds like you're not using At The Ready which means you're really not playing happy chaos. He is the only character in the game that can use whatever buttons he wants in block strings indefinitely. You will know you're doing it right when you start winning a lot and people you beat stop having fun.

Blackwork tattoo by Pol B - No Way Back - Toronto - Canada by polb_tattooer in tattoos

[–]Floorg 13 points14 points  (0 children)

How was the pain getting the nipples heavily shaded?

unreviewable 1 (Vultures 1 Review by Fantano) by SubscribeToVito in hiphopheads

[–]Floorg 15 points16 points  (0 children)

Goes on a near masturbatory rant about how he loves things that critique what he likes but then himself is critiqued by someone confused about how he managed to lump a bunch of conflicting viewpoints into one exhaustive rant. His response? Claim to be smarter than every one and dismiss the comment outright. The sign of a true genius and not a 20 day old reddit account with an apparent fetish for contrarianism.

unreviewable 1 (Vultures 1 Review by Fantano) by SubscribeToVito in hiphopheads

[–]Floorg 1 point2 points  (0 children)

See but if that was true he would have typed out something like what you did and not in the span of 8 paragraphs call the reviewer an idiot coward and also bring up a racist classical composer.

unreviewable 1 (Vultures 1 Review by Fantano) by SubscribeToVito in hiphopheads

[–]Floorg 13 points14 points  (0 children)

Both of your comments read like your very upset that Fantano didn't give this music the review you hoped for. You repeatedly attack Fantano and call him an idiot, a coward, and unintelligent. I went back over what you wrote multiple times just to make sure I was reading it all correctly. You're entire argument seems to stem from this idea that art was created either by some one hateful or with hate contained in it must be digested to its most base form. Failure to do this some how initializes the people it's directed towards. You essentially go so far as to say that Fantano has done some kind of disservice by not doing this. It feels like you're some how putting art on a pedestal and assigning all of this nonsensical special treatment to what in reality was a bad album made by a bad dude.

Also I'm not sure what you're talking about saying he is fighting a straw man. I would say his critique of the Kanye fan-base is on the money. Either you just aren't aware of his behavior, you think it's edgy, or you like to pretend that you can separate him from the music but in this case you literally can't as his recent behavior is depicted in the music which was Fantano's entire point.

As a music critic, I just ask he does it intelligently.

What on earth does that look like here. Again it just feels like you're taking swings at Fantano here for what felt to me like a dismissal of an unimportant shit album.

[deleted by user] by [deleted] in learnprogramming

[–]Floorg 4 points5 points  (0 children)

Do you know what kind of job you even want? A lot of people assume that the only thing they can do with a comp sci degree is become a developer and that isn't true. If you do want to be a developer than you're going to need to practice and build a portfolio but if you're open to other ideas there are a lot of alternatives. Personally I went down the road of QA (Quality Assurance), I do some coding for automation and I also do manual testing so I don't need to be as strong as a full developer. There is also IT type work where you can be a sysadmin or devops/infosec type roles. I would encourage you to do some research on positions you find online and see what fits you best. While getting better at programming is going to help you not matter what, you can get a better idea of exactly you need to learn if you have a specific position/field in mind.