Love2D Tutorial | Simple Main Menu UI

  Рет қаралды 37,447

SkyVaultGames

SkyVaultGames

Күн бұрын

Пікірлер: 88
@GR-uh7me
@GR-uh7me 5 жыл бұрын
I like this tutorial but I think the music is distracting
@Codethe_Road
@Codethe_Road 5 жыл бұрын
True;
@nac9880
@nac9880 4 жыл бұрын
Focus on the tutorial
@winksplorer
@winksplorer 4 жыл бұрын
Music:stop()
@EndlessMike
@EndlessMike 4 жыл бұрын
As a general principle it's best to let the user determine tha background sure, but I am diggin this track
@Andy-Christian
@Andy-Christian 2 ай бұрын
Yup. I was thinking the same thing.
@Lopoi
@Lopoi 5 жыл бұрын
That is a good base for a menu system. You could also use printf to draw formatted text and align it to center to not need to calculate the position of the text, but that would prevent you from rotating the text. (at least thats what I did)
@SkyVaultGames
@SkyVaultGames 5 жыл бұрын
Thats a great point, Ill talk more about printf when I do a tutorial on message boxes :)
@stanosipenko7305
@stanosipenko7305 5 жыл бұрын
I was literally stuck on making a good UI system for my game, thanks for the video dude!
@stop8576
@stop8576 5 жыл бұрын
u the guy on love2d discord
@drakien3214
@drakien3214 4 жыл бұрын
It helped me out programing game with writer freind
@domsau2
@domsau2 3 жыл бұрын
I'm not native English: please, the music is too loud. No music is better. I've my own music. Thanks.
@29void71
@29void71 2 жыл бұрын
Amazing video. Clear and concise and it WORKS!
@KasperKenDev
@KasperKenDev 4 ай бұрын
I’ve been looking for something more text editor friendly since I like Vim too. Did you have any challenges vs godot or unity?
@vaishnav_mallya
@vaishnav_mallya 5 жыл бұрын
Hey man! Thank you for making love 2D tutorials. Very few people still make tutorials on it. Btw are you in love2D discord server?
@SkyVaultGames
@SkyVaultGames 5 жыл бұрын
Glad you enjoyed! I'm not, I totally should join though.
@vaishnav_mallya
@vaishnav_mallya 5 жыл бұрын
@@SkyVaultGames here you go discord.gg/tmcWnqe
@zwillx3953
@zwillx3953 4 жыл бұрын
Thanks for the video! It may seem small but I went through a year of programming class and didn't learn what you did with the button# reference for vertical spacing. That kept so much out of the for/ do loop!! Can I ask what that reference is called so I can learn it in other languages? The array index button# is definitely concise- is that an example of why people swear by Lua? Thanks for the vids, excellent work
@marklee8022
@marklee8022 2 жыл бұрын
Everything works fine up until around 10:40, where we start using the 'bx' and 'by' variables to print the actual text onto the buttons. I've been through the whole video up to that point several times and I'm pretty sure my code painstakingly duplicates yours, but the words don't appear on the buttons! I tried changing the color of the text hoping for some kind of clue and, indeed, way off to the left, partially off - screen & nowhere near the buttons, a couple of the text labels can be seen all tiny & smooshed together. I'm an amateur, so I'm sure the problem is obvious to others, but after several hours of this I'm ready to throw my computer against the wall. Anybody feel like enlightening me? Would be most grateful. Thanks
@zzzman9287
@zzzman9287 2 жыл бұрын
It sounds like it could be your "love.graphics.print" code. Do you have these values: love.graphics.print( button.text, font, ( ww * 0.5 ) - textW * 0.5, by + textH * 0.5 ) Try copying and pasting this into your code if it looks different to yours because it works for me.
@DimitrisVasil
@DimitrisVasil 5 жыл бұрын
Can I get the source for this anywhere?
@cgme9535
@cgme9535 2 жыл бұрын
Thank you for this quick and informative video!
@МадиТургунов-у5л
@МадиТургунов-у5л 5 жыл бұрын
it only works for the last button for me somehow
@samanthaperry4543
@samanthaperry4543 4 жыл бұрын
same this happened to me and I'm not sure why the loop doesn't display all of the buttons...
@МадиТургунов-у5л
@МадиТургунов-у5л 4 жыл бұрын
@@samanthaperry4543 ask it on reddit.com/r/love2d there are a lot of helpful people there
@broomybroomybroomy
@broomybroomybroomy 5 ай бұрын
To get started, turn your music up to 300% volume
@technov1king
@technov1king Ай бұрын
what editor are you using, seems like it is predicting sometimes exact what you need. Like pasting the formula or the colors.
@zakatsu_8637
@zakatsu_8637 2 жыл бұрын
thanks for the video helped a lot in my love 2d journey👍👍
@darksidebidi
@darksidebidi 5 жыл бұрын
Hi, loved the video, how do i make it start my game?
@r50142
@r50142 4 жыл бұрын
You edit the function and make it so it starts the game.
@d1ssolv3r
@d1ssolv3r 4 жыл бұрын
thanks for the tut. seems you changed a few things in the process & never defined button_height (not sure how yours worked?) but it is working after some messing around. thx
@agmailuser5415
@agmailuser5415 3 жыл бұрын
kzbin.info/www/bejne/rH62m4mrf5uqetU
@technov1king
@technov1king 22 күн бұрын
Why not use absolute positioning? this is a little complicated, at least it seems like that
@fabriceatlan7992
@fabriceatlan7992 5 жыл бұрын
Excellent ! Good job ! But I have a question. Is it the best area to write in the draw ?
@gachastorys5129
@gachastorys5129 2 жыл бұрын
If your talking about drawing text or anything graphically then you can only do it in love.draw() if you decide too do it on the load or update method than it straight up just won’t work
@Isaacthemaniac
@Isaacthemaniac 4 жыл бұрын
It is not working for me it says syntax error ambiguous syntax, function call x new statement. The window height is broken.
@EndlessMike
@EndlessMike 4 жыл бұрын
Been waiting for this how did I miss it.
@jiyokun
@jiyokun 3 жыл бұрын
I really find this useful but is there also a keyboard input version of this code instead of mouse input?
@jimmyporter8941
@jimmyporter8941 5 жыл бұрын
Thanks for the video, but the music makes it really hard to watch through.
@MARVELVSEDITZ213
@MARVELVSEDITZ213 6 ай бұрын
not working brother showing black sceen
@syarifhidayatullah298
@syarifhidayatullah298 3 жыл бұрын
Really Work Thank you
@Pandemius
@Pandemius 4 жыл бұрын
Awesome tutorial. Thank you! Are you using Linux?
@christopherwillson
@christopherwillson 5 жыл бұрын
Nice music choice
@neithancrack7649
@neithancrack7649 3 жыл бұрын
Do u know how to make a touch screen controlss?
@tolistoza9382
@tolistoza9382 5 жыл бұрын
First. I need menü system. Tnx for upload!
@r50142
@r50142 4 жыл бұрын
It doesnt do the hover effect. my code: b.last = b.now local bx = (game.Width * 0.5) - (button_width * 0.5) local by = (game.Height * 0.5) - (button_height * 0.5) + cursor_y local ButtonColor = {0.5, 0.5, 0.5} local mx, my = love.mouse.getPosition() local Hovered = mx > bx and mx < bx + button_width and my > by and mx < by + button_height if Hovered then ButtonColor = {1, 1, 1, 1} end b.now = love.mouse.isDown(1) if b.now and not b.last and Hovered then b.fn() end
@thefusionfire2235
@thefusionfire2235 4 жыл бұрын
Help! What editor are you using in this video? Thanks!
@ttttt_
@ttttt_ 4 жыл бұрын
He's using vim or neovim.
@thefusionfire2235
@thefusionfire2235 4 жыл бұрын
@@ttttt_ thanks
@legna7262
@legna7262 4 жыл бұрын
Hi, Newbie in Lua. Run your code and it gives this Error in line 6: bad argument #1 to 'getWidth' (string expected, got function). Did I do something wrong?
@legna7262
@legna7262 4 жыл бұрын
Gosh, sorry. It was my mistake. I forgot to write the string msg where we insert data into the table at load. :-) Thank you for your great tutorial. Good job, man.
@brandonphilander661
@brandonphilander661 5 жыл бұрын
Hi man great video once again, any update on your Love2D roguelike/RPG?
@SkyVaultGames
@SkyVaultGames 5 жыл бұрын
Yes, I am working hard on it. Its a tricky one because of how many systems there are, so it's taking a bit of time.
@brandonphilander661
@brandonphilander661 5 жыл бұрын
SkyVaultGames Keep up the good work, looking forward to it.
@sombrerorosso6889
@sombrerorosso6889 4 жыл бұрын
I followed your tutorial, and everything works fine (great video!). I'm trying to put a background image, but without success (i have always a black background). Could you tell me where to put it? Thanks
@cjn9ne
@cjn9ne 2 жыл бұрын
Looking for the solution to this problem. Did you ever figure it out?
@stanosipenko7305
@stanosipenko7305 5 жыл бұрын
I have a concern, I would often define window width and height in the love.load function, any reason for putting it in love.draw instead?
@Lopoi
@Lopoi 5 жыл бұрын
On love.load it will not update if you change the size of the window. On love.draw it updates the value everyframe. I think thats the reason.
@aukondk
@aukondk 5 жыл бұрын
@@Lopoi That's true. There is also a callback function for when the window is resized (love.resize) that could be used so it isn't constantly being updated.
@InternetSandman
@InternetSandman 4 жыл бұрын
Is there a way to see your print outputs like that in VSCode? I know there's an output window that can monitor Love2D but I haven't been able to get any print statements into it for debugging or monitoring
@hussein0762
@hussein0762 2 жыл бұрын
Thanks thats really helpful. just a question, if we want to let a game be started when start game butten is clicked do we just have to write the code of game in place of print("Starting Game"), since when I try it the code runned normally but function love. draw() didnt run the screen kept black, can anyone tell me the problem?
@fahadjahandad1653
@fahadjahandad1653 5 жыл бұрын
what editor are you using?
@germanantivero8939
@germanantivero8939 5 жыл бұрын
that's vim www.vim.org/ but it seems like he has themes and pluggins I don't know what pluggins does he use but it's something
@Tpkanimations
@Tpkanimations 2 жыл бұрын
source code?
@kiljupullo
@kiljupullo 5 жыл бұрын
Could you remove music?
@stian8889
@stian8889 4 жыл бұрын
What text editor you use?
@ahmadayazamin3313
@ahmadayazamin3313 4 жыл бұрын
it's vim (or could be neovim, I use neovim).
@Milk-yi9hg
@Milk-yi9hg 3 жыл бұрын
What code is this?
@SkyVaultGames
@SkyVaultGames 3 жыл бұрын
This is Lua
@leonardolopes2139
@leonardolopes2139 2 жыл бұрын
thanks for the video! pretty helpful
@Browncoyote
@Browncoyote 11 ай бұрын
Good tutorial. Slow down a little bit. Just feedback, I had to pause a lot and you made some mistakes.
@poisonicecream4916
@poisonicecream4916 4 жыл бұрын
"SIMPLE" :)
@Sunshine-fv1xj
@Sunshine-fv1xj 4 жыл бұрын
Aí é foda
@msddvisage
@msddvisage 2 жыл бұрын
After looking into this video, i see this guy is using some edit of vim, lol.
@LexeresBrest
@LexeresBrest 3 жыл бұрын
Flashing all the buttons if choose the first button and flashing okey if last, mistake in the code in video
@crochetestilo4991
@crochetestilo4991 4 жыл бұрын
Por que no usar unity?
@Starpelly
@Starpelly 5 жыл бұрын
You're going WAY too fast. Also the music is really distracting.
@josuecabralmatos2267
@josuecabralmatos2267 3 жыл бұрын
YOUR CODE NEVER WORKS
@SkyVaultGames
@SkyVaultGames 3 жыл бұрын
Its literally working in the video
@josuecabralmatos2267
@josuecabralmatos2267 3 жыл бұрын
My text editor is literally fine but this video never works
@loafbunmerp8050
@loafbunmerp8050 3 жыл бұрын
@@josuecabralmatos2267 Have you tried doing it correctly
@josuecabralmatos2267
@josuecabralmatos2267 3 жыл бұрын
m sorry I was on visual studio code and I think I forgot to download the pack
@tHe_bAgeL
@tHe_bAgeL 2 жыл бұрын
@@josuecabralmatos2267 which pack is it
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
2429. Minimize XOR | Bit Manipulation
13:52
Aryan Mittal
Рет қаралды 1,1 М.
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 325 М.
The game of the year was written in Lua
5:32
Tom Delalande
Рет қаралды 290 М.
Making a Game in Lua with No Experience
5:52
Goodgis
Рет қаралды 380 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 789 М.
Falling in LÖVE with Lua
1:12:27
CS50
Рет қаралды 73 М.
2024's Biggest Indie Hit Was Made With... Love!   LÖVE 2D that is.
9:50
Coding Flappy Bird with Love2d
9:20
Ardens
Рет қаралды 28 М.
Love2D | Shader Tutorial 1 | Introduction
13:42
SkyVaultGames
Рет қаралды 23 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2,1 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН