Java Game Development Moving Object Collisions

  Рет қаралды 7,196

RealTutsGML

RealTutsGML

Күн бұрын

Find Source Code and Courses www.codingmade...
in this tutorial we'll expand on the previous collision system and make it operational for moving objects in the game world.
Previous collision tutorial - • Java Game Development ...
Twitter ► / realtutsgml
Have fun learning!
• Java Game Development ...

Пікірлер: 16
@younlok1081
@younlok1081 5 жыл бұрын
bro try javafx its cool
@rataV7517
@rataV7517 11 ай бұрын
I know this is from 4y ago but what if the block moves faster than the player and the player is moving to the same direction as the block? (with the block "chasing" you)
@emanuelk
@emanuelk 5 жыл бұрын
Hey man, what's in the KeyInput class? What's different here from the Zombie Game tutorials? Could you please share the source code?
@MarSe32m
@MarSe32m 5 жыл бұрын
Nice!
@shadmilkgod7115
@shadmilkgod7115 3 жыл бұрын
how do you make it so if an object gets pushed onto another object it doesent like go through
@FraternalHouse
@FraternalHouse 5 жыл бұрын
Which Platform are You using.
@Runseedoy
@Runseedoy 5 жыл бұрын
I got an idea what if the player got crushed if they are stuck against the wall?
@soni801
@soni801 5 жыл бұрын
So I have a couple of questions and recommendations; 1: Why are you using "tempObject.getVelX() < 0" instead of "tempObject.velX < 0"? 2: To put a single if statement inside of an if statement is much more performance hungry. You should do something like "if (tempObject.velX < 0 && x < tempObject.x + tempOject.width / 2)". 3. This still has some problems: when going diagonal, the player should move with it is both directions, not just one. This is easy to fix, but for all the people that are not so experienced with Java, you should briefly explain it. 4. I would really recommend switching IDE to IntelliJ. I know it is just a pain to switch because of all your settings and projects, but IntelliJ has an option to import settings and projects from eclipse. IntelliJ is much petter performance-wise, but also when it comes to productivity and customization. You get so much - free. They also have a paid option if you want more things though. You can learn more here: www.jetbrains.com/idea/
@StardragonEX2
@StardragonEX2 5 жыл бұрын
Hi Zack, you know, I bought a shoot 'em up course from you in Coding Made Simple long ago, but I'm not been able to log in since you disappeared. When I try to recover my password it says is an invalid email. Could you help me plz? It seems like I'm not registered anymore.
@RealTutsGML
@RealTutsGML 5 жыл бұрын
I’ve sent you an email
@StardragonEX2
@StardragonEX2 5 жыл бұрын
@@RealTutsGML thanks for helping me.
@dotlib1775
@dotlib1775 5 жыл бұрын
Um Zack can you tell me what music you use at the end of this video? Thanks
@RealTutsGML
@RealTutsGML 5 жыл бұрын
The track was custom made for the channel years ago
@LawZist
@LawZist 5 жыл бұрын
Not clearly understood why there are also blue and red boxes over the white one
@RealTutsGML
@RealTutsGML 5 жыл бұрын
Those are the horizontal and vertical collision boxes. They were created in the previous tutorial.
Java Game Development Precise Collision System
12:49
RealTutsGML
Рет қаралды 6 М.
Java Game Development #16 - Collision Detection
21:30
RealTutsGML
Рет қаралды 55 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 54 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 11 МЛН
Java collision detection 💥
17:34
Bro Code
Рет қаралды 37 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 488 М.
FizzBuzz: One Simple Interview Question
7:18
Tom Scott
Рет қаралды 3,5 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
How to Make 3D Fractals
7:48
CodeParade
Рет қаралды 1,6 МЛН
Java Programming: Let's Build a Zombie Game #4
12:14
RealTutsGML
Рет қаралды 11 М.
NEVER Memorize Vocabulary in a New Language - Use Artificial Immersion
10:04
GOLUREMI LANGUAGES
Рет қаралды 4,6 М.
Programming Balls #1 Circle Vs Circle Collisions C++
32:29
javidx9
Рет қаралды 138 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН