Reading Resource Files (Images) with IntelliJ IDEA

This is a supplemental video for Part 3 ( • Sprites and Animation ... ) of my 2D Game tutorial series.
It seems some people have been struggling to create a resource directory and read images with IntelliJ IDEA, I decided to make a quick video to show how I do it.
Hope this helps you to resolve your issue!
効果音:ポケットサウンド - @pocketse
#java #gameprogramming #loading

Пікірлер: 51

  • @VinicinConhecimentos
    @VinicinConhecimentos Жыл бұрын

    men, you are incredible. Such an excelent teacher and coder, and it os so clear your worry to give us a high quality content. Just thanks, men. You´re the guy

  • @newcolux742
    @newcolux7428 ай бұрын

    love your content! You teach us without wanting to show off your skills with overly complicated code. You are a real teacher!

  • @loop_light
    @loop_light20 күн бұрын

    It's an amazing series of tutorial to follow. The way you explain complex ideas are really clear

  • @bibekpokhrel2392
    @bibekpokhrel23924 ай бұрын

    Man I was struggling to load up my image icons in my jar file using intellij . You came in as a Savior . Great content man, you saved me a lot of time...

  • @Timed-Automaton
    @Timed-AutomatonАй бұрын

    Oh man, thank you so much you made video on how to do that in intellij. It took me days to figure it out 😄😃

  • @Victor-fs3yc
    @Victor-fs3yc5 ай бұрын

    very nice video, thanks you!!

  • @slavwaifu1216
    @slavwaifu1216 Жыл бұрын

    Nice video as always!

  • @angminhquan2819
    @angminhquan281911 ай бұрын

    Thank you so much for this clip, I need it so much. But can I have a question that is what design pattern do you using in this 2d game.

  • @rdfdsfs
    @rdfdsfs10 ай бұрын

    Thanks a lot!

  • @realzguardian
    @realzguardian Жыл бұрын

    I was waiting for this since the 3rd episode released but I figured it out on my own

  • @itsnotnkey

    @itsnotnkey

    Жыл бұрын

    same 😂

  • @Often_Guy
    @Often_Guy10 ай бұрын

    Oh my god I can fully relate rn, thanks, this fixed it for me. Anyway, good music, what's the song?

  • @UnderArea51
    @UnderArea5111 ай бұрын

    I am temped to try the Intellij IDEA! One of my favorite modern games is the Stranger Things 1984 = on mobile game platform. I downloaded the Earthbound game on my old NES, and currently grinding through it now - it's a VERY inspiring game. I'm also currently developing a RPG attack scene simular to Earthbound, (Mother2.) in Java. It's a just a solo-package piece right now, creating as a mini game to later add in my larger game project. Inspired by Earthbound, when my main character hits an invisible collision detections, an attackWindow() class will take player to battle or conversation screen between NPC or enemies . Pull player in - to those simular experence of Earthbound - player experiences - to hunt for story from NPC. I really LOVED the first Zelda game!!! I remember playing the game - without peeking into the game instruction book, and everything was a mystery! The opening overview was all I knew... Stranger Things and Undertale kinda hit these marks! LOL! Earthbound's original game is the best! On an old pixel NES!

  • @RyiSnow

    @RyiSnow

    11 ай бұрын

    Earthbound 0 (the NES version) is definitely my favorite in the series!

  • @frauddetector560
    @frauddetector5606 ай бұрын

    thank you so much bro i love u

  • @schee4887
    @schee48875 ай бұрын

    THANK YOU SO MUCH, doing a hackathon with only a sem knowledge of AP comp sci and we dont even touch any of this stuff!

  • @simpgaming2993
    @simpgaming29939 ай бұрын

    i dont use IntelliJ but i love you and i want to support u by watch this video

  • @hosein2681
    @hosein2681 Жыл бұрын

    Hello, I have a question How to make an object moving so that when the player is placed on that object, the player also moves For example, an object moves from left to right and when the player stands on that object, it starts moving in the same direction

  • @gregoryfir3841
    @gregoryfir3841 Жыл бұрын

    Another nice video @RyiSnow! Thanks! Give me a hint, please, how to add a timer to potions? For example, so that the speed potion gives a boost for 5 seconds (I'm sorry that the question is not on the topic of the video)

  • @RyiSnow

    @RyiSnow

    Жыл бұрын

    That's actually pretty easy to implement. Here's an example: 1. Create a boolean boostOn. 2. When you use the potion, set the boolean true and increase the player's speed (store the default speed value somewhere so you can restore it later). 3. Use a counter and count 5 seconds (300 frames) 4. Set the boolean false and restore the player's original speed value.

  • @gregoryfir3841

    @gregoryfir3841

    11 ай бұрын

    ​@@RyiSnowthanks! I did it! I'm really worried about the last question. I can't think of a solution. Help me, please, master) How to make the projectile be selected as a weapon or shield? I want to implement magic staff. To do this, I made a "currentStaff" and the staffs in the inventory change, but the fireball does not change. How to write a code correctly? (I'm waiting for your new videos)

  • @azelkayepascasio9405
    @azelkayepascasio940510 ай бұрын

    is it possible to add instruction to the game because im trying to add it but i dont know how

  • @markocrni1200
    @markocrni12009 ай бұрын

    behind the string on the path to the file is name: how do i do it

  • @nazmusshakib194
    @nazmusshakib194Ай бұрын

    in vscode i used new fileInputStrem to make it happen I couldn't find anyother way of doing it

  • @demiannecahiles9818
    @demiannecahiles98186 ай бұрын

    Hii RyiSnow, how'd you do this in eclipse?

  • @kevinperez6451
    @kevinperez6451Ай бұрын

    how can i fix it? I use Apache Netbeans IDE 20.

  • @narlock
    @narlock Жыл бұрын

    Great video! Would love to see you make a executable JAR file with IntelliJ for BBA.

  • @hoooooney21
    @hoooooney213 ай бұрын

    Thank you so much | Спасибо большое ты спас мои 3 часа жизни

  • @samg5183
    @samg518311 ай бұрын

    great, thank you, can you make java 2d game platformer tutorials

  • @dech4641

    @dech4641

    11 ай бұрын

    agrees

  • @samg5183

    @samg5183

    11 ай бұрын

    @@dech4641 Yes, his tutorials are very good. And I understand it easily

  • @DanFromIran
    @DanFromIran10 ай бұрын

    Man what was that "guitar" song?

  • @shahriarzaman4715
    @shahriarzaman47155 ай бұрын

    Those using gradle as build tool, specify resource directory in the build.gradle file as: ``` sourceSets { main { resources { srcDir "src/main/res" } } } ```

  • @BloxxingDinosaurus

    @BloxxingDinosaurus

    2 ай бұрын

    Thank you for this comment.

  • @the_guy01
    @the_guy01 Жыл бұрын

    Bro how to make this for android? And how to make this multiplayer lan?

  • @tophyy906
    @tophyy906 Жыл бұрын

    Nice video 😊 I was wondering if you could make one for turning blue boy adventure into a java exe then a normal exe so people don't need java. I'm really struggling with that part and if you could help I would appreciate it very much man thanks again for all these videos.

  • @ayamax-channel

    @ayamax-channel

    Жыл бұрын

    a long time ago he did make a video about how to export project as executable jar file and then converting it to an executable file, and including java files in the folder so that people without java installed could still run the game He used an application called Launch4j That's the video: kzread.info/dash/bejne/mmpsuc56nsK8lso.html I hope it can be helpful

  • @tophyy906

    @tophyy906

    Жыл бұрын

    @@ayamax-channel I think he uses eclipse though and the process is different thanks though

  • @krooby5048
    @krooby5048Ай бұрын

    how do i fix it in vs code?

  • @pradnyasamant4308

    @pradnyasamant4308

    28 күн бұрын

    same i also wanna know that

  • @smallC0ckBo1
    @smallC0ckBo17 ай бұрын

    you are literally a god.

  • @RyiSnow
    @RyiSnow Жыл бұрын

    This is a supplemental video for Part 3 (kzread.info/dash/bejne/qYht17CAqrCrfZc.html) of my 2D Game tutorial series. Since some people have been struggling to create a resource directory and read images with IntelliJ IDEA, I decided to make a quick video to show how I do it. Hope this helps you to resolve your issue!

  • @ruzhibbbvdgsjwh1097

    @ruzhibbbvdgsjwh1097

    11 ай бұрын

    My problem can’t solve please help me

  • @TORMENTUMM

    @TORMENTUMM

    10 ай бұрын

    can't solve it from vscode and neither google or chatgpt are helping in this one :/

  • @overdamcz
    @overdamczАй бұрын

    It still says input == null

  • @g_host98

    @g_host98

    Ай бұрын

    remove the first slash before the player in the path and add getClassLoader() so it looks like this: up1 = ImageIO.read(getClass().getClassLoader().getResourceAsStream("player/player_walk1.png"));

  • @The_Fox2Creator
    @The_Fox2Creator6 ай бұрын

    it doesn’t work!

  • @g_host98

    @g_host98

    Ай бұрын

    remove the first slash before the player in the path and add getClassLoader() so it looks like this: up1 = ImageIO.read(getClass().getClassLoader().getResourceAsStream("player/player_walk1.png"));