Torch and Multiple Lights Demo in Java 2D

The game was made from scratch, using the default Java class library.
Timestamps:
0:00 Buying some torches
0:50 Placing some torches on the field
2:30 Placing some torches in the dungeon
#javagamedevelopment #java2dgame #javaretrogame #gameprogramming

Пікірлер: 68

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

    Hi guys, still a bit swamped with work and have no enough time & energy to create new tutorial videos. That said, I decided to upload a little footage to show what I implemented a while ago, to say hi! Hope you'll enjoy it 🙂 P.S. I want to send a huge shout-out to Daniel who gave me a great hint and inspiration to implement this.

  • @winhax4344

    @winhax4344

    Жыл бұрын

    Welcome back! Following through in Android Studio is so much fun! Although I am reverting back from Kotlin to Java.

  • @vipmember3315

    @vipmember3315

    Жыл бұрын

    ty ryi wb man

  • @nrgepic1929

    @nrgepic1929

    Жыл бұрын

    Hey Ryi, love the content maybe could we get another game tutorial maybe

  • @indoorteacher1653

    @indoorteacher1653

    Жыл бұрын

    Hello, I am needing help with a line of code for this tutorial. It is in the TileManager in the loadMap method. The line giving me issues is where we parseInt the numbers[col] String. it is giving me a numberFormat Exception. It says that it throws that when a String doesn't contain a parseable number. If you have any idea on what I could look at to fix this because I do not see where my problem is.

  • @johnwinters1705

    @johnwinters1705

    Жыл бұрын

    Thanks for another video would love to see another tutorial when you get enough time

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

    He's back!!!

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

    Great to see you back! I have been loving following along with your tutorials and learning more about Java programming!

  • @jacobcano5704

    @jacobcano5704

    Жыл бұрын

    AWESOME

  • @Void-xy9nb
    @Void-xy9nb11 ай бұрын

    This type of games will always be in my heart.I remembers playing simple java games on my old nokia phone,they had such a good storyline and kind of a mysterious lore.And for that reason I decided to research more into java games.I like that your are making secret hideouts and all that stuff.I might try to make a game myself

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

    This is amazing, Ryisnow! It's great to see you back! I've been trying to implement this in my game, but it was way too difficult for me. I hope you upload a video on how to use multiple placeable lights!

  • @milicaradojnjic4313
    @milicaradojnjic43138 ай бұрын

    Hello I am struggling to make this. How you did this? Any tips? Please

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

    Love this! Great to se some content from this series again! I am on ep 54 and can't wait to see more! Great work!

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

    This is so awesome! I wanna be able to make my own game some day so i don't wanna rip off everything lol, but you've inspired me to try. Right now I'm developing an rpg in unity but so much of it has transferred over and I'm figuring out ways on how to implement things you add/remind me of in my own way.

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

    "Hi guys, this is Ryisnow! Last time, we implemented..." I followed you tutorial and I'm still developing my own game, it became something big and a demo is already available! All thanks to this amazing serie Ryisnow, so again, thank you and welcome back!

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

    Commenting on this vid to say Please keep going. I am on the 3rd video in the playlist and loving it. Cant wait to get here!!!

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

    Just a tiny supporting comment:), great to see you posted a new video👍👍👍

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

    Very cool! Also great to see a new upload :D

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

    It's great to see you back, man.

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

    Great new video, they are very fun and informative

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

    Look whos back making vids! :D

  • @josemarioespinoza6652
    @josemarioespinoza665210 ай бұрын

    Amazing effort man, I have learned a lot from your tutorials, it may not be much, but hey, buy a beer with this!

  • @RyiSnow

    @RyiSnow

    10 ай бұрын

    Thank you so much! It's been crazily hot here in Tokyo lately so I'll definitely enjoy a beer. Gracias!

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

    Welcome comback guy.... Thia is amazing.... 😂👍

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

    Great its back up!

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

    Glad you're back

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

    So great i love your video it's really helping me

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

    Welcome back!!

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

    Hooray!!! You're the best!!!

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

    Awesome!

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

    Hello, I am needing help with a line of code for this tutorial. It is in the TileManager in the loadMap method. The line giving me issues is where we parseInt the numbers[col] String. it is giving me a numberFormat Exception. It says that it throws that when a String doesn't contain a parseable number. If you have any idea on what I could look at to fix this because I do not see where my problem is. any suggestions from anyone. LOL

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

    Which API'S did you use???

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

    amazing!

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

    Finally a new video!!!!

  • @PedroHenrique-hy7yw
    @PedroHenrique-hy7yw Жыл бұрын

    long time no see, hope u doing just great

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

    This was really good but i would make the map have a day and night cycle and say the days that you have send in the game so you can use the torches to see at night

  • @cedricsahaghian1605
    @cedricsahaghian16053 ай бұрын

    Hey RyiSnow! Still a big fan of this tutorial, again: a thousand thanks. I've made (like so many of us) a game thanks to your teachings and I'm now trying to implement a multiple source of lights system like you're showing in this demo. I understand you're swamped (and tired) but could you possibly share with us at least some clue as to how you did it? Pleeeeeeeaaaaaaase ha ha ha

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

    Thanks so much for all you have done! Any chance you would share this? I have been trying to give my house and eventually other buildings light but no luck. So far thanks to you I have created a storage chest, treasure chests that drop from mobs and contain loot, and many other small things that really make this game my own. Without your base code none of it would have been possible. Thank you again even if you keep the lighting source for yourself. :)

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

    wow! it would be great if you start a series of LWJGL :D

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

    HES BACK !!!!!!!!

  • @Mrtargi
    @Mrtargi8 ай бұрын

    Hey Ryi, how are you doing? Can you give me a hand with implementing multuple lights. I ve created second class extending Lighting class checking all the objects with the light radius, then call it from environment method. I'm struggling that objects light circles are not drawing, so i'm little stuck🤦‍♂️

  • @RyiSnow

    @RyiSnow

    8 ай бұрын

    What I did is basically create a world-size darkness filter as a light map and then update the filter whenever a new light source is added. Also, crop the filter to the screen size in every loop to reduce the performance drop. Hope this helps!

  • @Mrtargi

    @Mrtargi

    8 ай бұрын

    @@RyiSnow thanks a lot

  • @Mrtargi

    @Mrtargi

    8 ай бұрын

    @@RyiSnow but yo know, many of us are still waiting blue boy adventure returns😁

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

    Greate job!!! Сan you make an edit so that the player moves diagonally?

  • @lennartharp7958
    @lennartharp795811 ай бұрын

    Can you do a video about animated objects and circumstances?

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

    Can you teach us how to add a black and white filter and/or a daltonism color filter to the game?

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

    Will you make a tutorial for this?

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

    Please next lessons platform game with java :)

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

    Long time no see.

  • @bossman6167
    @bossman616711 ай бұрын

    Hey been following the series and i would like to start some coding myself can you please tell me which software you have used for this and the settings you have set when making the project as well as any downloads that will be great thanks!! Or maybe even make a video on it 👍

  • @RyiSnow

    @RyiSnow

    10 ай бұрын

    I used Eclipse for this project!

  • @bossman6167

    @bossman6167

    10 ай бұрын

    @@RyiSnow thanks for the reply is there any add-ons or preset settings u used thanks again love the content!!

  • @RyiSnow

    @RyiSnow

    10 ай бұрын

    No add-ons or external libraries. As I explained in the first video of the series, we only use the default Java class library.

  • @bossman6167

    @bossman6167

    10 ай бұрын

    @@RyiSnow thanks !!!

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

    Well friend when you have time you can start making a tutorial on how to create a Top-Down 2D game in java

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

    Could you release code of this or make a tutorial video on how to make this?

  • @guareck5557
    @guareck555710 ай бұрын

    Oh mighty Java wizard, could you please share some of your visdom and give a hint on how you achived this? I am struggling so hard on trying to do this on my own but I can't ;-;

  • @RyiSnow

    @RyiSnow

    10 ай бұрын

    Can you be a bit more specific about the point that you're struggling with?

  • @schoolprojects9180

    @schoolprojects9180

    10 ай бұрын

    ​Glad you're back@@RyiSnow! I am also in a quite similar situation. My game implements the stop screen moving feature when it reaches the edge of the map that you uploaded way back before as an extra video. Now, I'm having trouble because the light stays at the center of the screen, and doesn't follow the player when I reach the edge of the map. Upon seeing this video, It seems like you managed to give a specific entity its own light source, with its own location on the map. Can you enlighten us how to do so? I think with that, I'll be able to solve this bug. I would really appreciate it :). I've been following your tutorial and have learned a lot about programming since I started watching. You are the best!

  • @RyiSnow

    @RyiSnow

    10 ай бұрын

    @schoolprojects9180 The lighting method I introduced in the series always draws the light at the center of the screen. If you have adopted the extra method (stopping the camera at the edge), you must also offset the light position when the player is close to the edge.

  • @schoolprojects9180

    @schoolprojects9180

    9 ай бұрын

    Thank you for the response! @@RyiSnow

  • @ze_kangz932
    @ze_kangz9325 ай бұрын

    Amazing Stuff here man. The game is so simple yet the amount of work into it, makes me appreciate the effort into more realistic and professional games. Thank you again and farewell!

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

    👋🧡👋🧡👋🧡👋

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

    Je suis pret

  • @rauk5551
    @rauk55514 ай бұрын

    Is crazy how you made a game using a tool(Swing), who is not maked for making games hahaha.

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

    First