string vertexShader = @"#version 330 core
layout (location = 0) in vec2 aPosition;
layout (location = 1) in vec3 aColor;
out vec4 vertexColor;
void main()
{
vertexColor = vec4(aColor.rgb, 1.0);
gl_Position = vec4(aPosition.xy, 0, 1.0);
}";
string fragmentShader = @"#version 330 core
out vec4 FragColor;
in vec4 vertexColor;
void main()
{
FragColor = vertexColor;
}";
#⌨coders-cave
1 messages · Page 51 of 1
Shader language
I dont think its a problem with the shader
If its showing nothing
The code for displaying the ahader
Send now
Or i kell u
uint vs = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vs, vertexShader);
glCompileShader(vs);
uint fs = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(fs, fragmentShader);
glCompileShader(fs);
glCreateProgram();
glAttachShader(shader, vs);
glAttachShader(shader, fs);
glLinkProgram(shader);
VAO = glGenVertexArray();
VBO = glGenBuffer();
more shader code
uhh
Tbh
idk why its so spaced out
Modern opengl has to use shaders
idk the guy said i need shaders for a shape
And put a texture on it
and learning legacy first isn't good idea because you should never use it in production
i watched the tutorial like 3 days ago
I just used the one that was in lwjgl
Idk if its legacy or modern

if it doesn't have shaders it's legacy for sure
legacy is easy and fast to write but gosh damn is it inefficient and hard to read
it was made in 1990s
1.0 is a mess in everything
but you can use legacy in never opengl versions too
tru lol
3.something
4.6
Just mixes them
i think
Sometimes its GL11
Sometimes its GL31

Idk man its giving me 1k fps on 2d Minecraft
Sounds efficient enough

Ill search more on this
im getting 100fps/second on a black screen 

yeah it does that
the guy in the tutorial was getting 4000
i wrote that code for a week and its 200 lines im not going through that hell again
I'm watching tutorial series from the cherno and damn his videos are good
vut they're all about c++
He keeps my intrest so well even for the boring parts and I learn so much better from most tutorials
goddamnit exams suck, the worst part is that i wont use litteorly anything from them in coding due to the fact the ones are bulgarian exams which...well bulgarian isnt used in coding at all
and maths...i will probably use them tbh
I have 4 exams next week. Physics, biology, religion and hunting license exam
Ahh shir
i don't even know why I'm getting hunting license
Gotta rewrite the rendering system
damn
fun
my exams are on 16 and 18 of june, but my teachers have been hyping them ever since 5th grade
Ill watch a tutorial tomorrow morning
My finals are after 14 days
And im making a gam engine

Last year of school
HEngine
Hardest year of school
Biology book thiccer than u mom
I mean i have to implement shaders anyways
how do you find time foe everything tho, it feels like i dont get enough time to breath nowdays
So i have to rewrite it sooner or later
then I go to school for 2 weeks, fuck around and do nothing useful
i have like...6 more years if i decide to take some soft uni courses
From the raymarching thing i did
goddamnit how did i get from making a simple roguelike in unity to setting up a rendering system for a game engine
well I have to go to another school but still final year of secondary school
our teachers have been hyping these exams so much that i went to volleyball matches for 2 days after the spring break so i couldnt do my homework, the next day i got completely destroyed for deciding to leave my city a month before the exams
damn
Got a question about swimming behaviour
go to #🎲game-room this channel is for telling everybody how smart you are
even if it is true or not
xD
You can tell me how smart you are by answering my question.
It is very simple. Where can I find the condition that decides if a unit will swim across the water or will take a boat.
*(  ̄皿 ̄)/#_(╯‵□′)╯︵┻━┻ damn itttt
i just wasted 2 hours just to find out why the occlude was half the tile off
turn out it was these little *****#@$#$#@$
run synchronous code in async function or run synchronous code in another thread

im just logging things
but the framework doesn't wanna run synchronous function normally
its the same thing
async functions just do it for u
dont reinvnet the wheel
just use the god damn wheel
fair
i mean all im doing is logging
which doesn't require async
but the god damb framework doesnt want to run function normally
instead either run async function or run normal function in another thread
What if I make wheel 2.0
Wheel: The sequel
Rip.in pwace HEngine
I just packed my laptop
Gotta focus on my studies
Did you just finish your coding session 
Was that just one coding session 
I have so many questions
Isn't the sequel of wheel just sphere 
Bruh
A week long code session
I have 1500 biology questions to memorise
Did u think im gonna start 14 days before the finals
Idk that's what I would do
Anyway so I am interested in renting hengine for until you finish with your exams...do you accept dogecoin
100000 🐶 coin
Anyway, how do you script for a game?
Script what
Like scripting NPCs or something
As i said before programming is the ability to google effectively
which game engine are you using
I think he doesnt even know anything about programming
R o b l o z
Idc, I help everyone equally
Yeah I don't.
NPCs in Roblox studio 
Everyone has to start somewhere
Yes lol
Do you even have a language to use in mind (probably Lua)
I'm a beginner HOW DO YOU EVEN FUCKING DEVELOP GAMEEEEESSS
Are you trying to make a roblox game?
this should help:
https://www.youtube.com/watch?v=-RHYlyZrPiQ
Learn how to make a custom NPC in your Roblox games!

With effort, time and google.
Uh... no...
I'm not speaking so you might not understand me
I wanted to edit an inventory thing in a Soviet game I am an admin in...
On roblox?
if you want to start making roblox games this tutorial series seems good:
https://www.youtube.com/watch?v=vCpl5M_9mcQ
Want to know how to make a Roblox game and make Robux? AlvinBlox will show you how to make a game on Roblox with scripting. Learn how to make a sword fighting battle royale game in this series, for any skill level. You don't need any experience to get started with Roblox Studio!
To take the code from this video, watch it entirely and copy it do...
I know mostly python and I hate Lua so much I won't be doing Roblox game any time soon
Yeah

I am learning to make my own game engine which is way cooler
Make me admin too uwu
Lua looks easy but idk I have never tried it
game engine?!
Time to watch
what’s a game engine
yes

software you use to make games
Like unity
So like your own platform to make games?
not an actual game?
yes
Ohhh nice
lol nice
Then I atleast know 100% what is going in at all times
making a game engine is great until you have to deal with renderers
so you meet your first problem as soon as you start
Making rendered is fun ngl
its fun when it works
but before thatr you are stuck trying to figuere out why shaders dont work for 3 days straight
I watch tutorials so the learning is really fun Imo
wait where did that cat coder guy go
Who exactly
why is hamza a bandit
Silly cat i think
Din"t he appear most of the time in here showcasing his police mod thing
ohh yeah
i feel it's stupid to do a game engine cuz it's just making what is already made for free at a level we will never reach
that's just my opinion
they are public so they are stupidly oversimplified
no
unity for example isn't new-user-friendly
half the time you dont even understand whats going on
its VERY new user friendly
trust me
i have been learning it for 1 year
its so simple
compared to real c# code
exactly
but that doesnt mean its good
because for instance, 2d physics suck in unity
so you will have to rewrite them
3d physics are fine because they dont really exist other then rigidbodies and collisions
but making your own engine means you can customize it however you like
for your games
with your own library
its hard as shit to setup
creating game engine means u create ur own game dimension right ?
and use opengl
not really
for rendering you use opengl
you have to create your own shaders in a comletely different langauge
doesnt matter what you use to make the engine the shaders are always in some strange language
i know
the language is called glsl
its not hard actually, very smol
made for rendering and visual purposes
you can learn it in a couple of days even
i feel liek this stuff is so amazing to do and code once you get the hang of it, but while you dont its hell
i cant get my thing to work because something something code is bad and i just get a dark screen
Not very strange
glsl is pretty much easy lol
when you get the grasp of it you'll know why
I just don't like any public engines. Godot is probably the best free one but I don't really enjoy it either. But I really enjoy creating game engine from scratch, it motivates me to learn shit ton of new stuff needed for programming industry like opengl
Guys Codenet from IBM is a thing (From news not sure for official Release for there Dataset)
But just think of it The Power 
Maddox is just stupid
Making your own engine is better performance wise
Lighter
And gives you more freedom
You will keep enjoying it for the first couple of weeks
Until the apocalypse hits
And it drains you
enjoy working with notches
And dont overburn yourself
You work on it 7 hours a day for a week then you get burnt out and stop for a month
You're not mastef you dont get money to keep you motivated 
money as motivation? what?
i didn't start coding games for the money 
From what I've seen best programmers never do it for the money
You never start it for the money
But any kind of hard work becomes more of a chore if theres nothing to motivate you
Look at haydot
He tried to learn rust
Which is hard
He did it for fun
He got burnt out in the first day

If he was working for q company and they told him we need rust devs and that he would get a raise he wouldnt get burnt out
Because he has a goal
A goal is like q fountain of motivation
Money is a fountain of motivation
That's the secert to keep studying for very long times
Goals > motivation
I used to study around 7-10 hours every day
I finished my goal now i cant complete 3 hours 
I need some new goals dud
Heres someone who explains it better than me
Good video to watch before exams
@orchid frigate you have exams coming right ?
Ye
And failed, due to the fact there are like no tutorials on it and I don't have time to read documentations
How are you gonna do good code without reading any documentation
Well I have work to code 7th of june to 21st of june so I am probably gonna need to read docs quite a lot there
Heya there, all! In this video, I make a game with Microsoft PowerPoint - the most powerful game engine of all time xD
Find the SQUARES ALBUM with these links below! :D
Spotify – https://open.spotify.com/artist/3EEi7koBkQ75dO80bdaeEc
Apple Music – https://music.apple.com/artist/1545540854
SoundCloud – https://soundcloud.com/icoso
YouTube - http...

Should've used HEngine instead
One of the first animations I have done on PC was in PowerPoint
A jet crashing into the ground with a big explosion, it looks so bad

this takes the phrase "running like a powerpoint presentation" to a whole new level
still havent fixed the shader/rendering issue, im giving up for now
it doesnt make any sense
imma start reading LearnOpenGL(a very nice free book) and see if i learn anything, it looks good
you make a window on the first pages of it which took me 3 days otherwise
lol
I just watch The Cherno videos to learn most things about opengl lol
How is ur engine going jupe
I'm still working on renderer
Do you guys know about this mod called trait editor?
I saw it on a discord page there might be a bot or something
https://steamcommunity.com/sharedfiles/filedetails/?id=2491408959
wohoo new mod with new script
nothing much though but, new script in back XD
deployInto
awesome
typical
I thought you were talking about mods firat
well- isn't mods are also relate with coding
Only making them is
visual studio snippets are so convenient, it just auto laid out a whole switch statement for me when i gave it an enum
Rider is even better at these
hit enter -> it lays it out entirely
that sounds hard to read
Thats why comments exist

I never do it tho
Cuz linq is a bit slower
Most of the times im doing something that requires performance
But it also has a lot of recommendation
S
Like making your variables names more consistent
But its a bit expensive

Tbh i would still use VS
But it doesnt work on Linux
But I've heard rider is very fuckin good for unity
why tf would you make code fucking hard to read and debug to have it on one line. It works the same either way so why not use the more readable one
When you have 2 for loops
With 4 if statements in them
You will understand
Too much nesting makes your code look bad
But there are other ways to solve this
And reading linq is sometimes easier
Depends on how well you know it
I don't know how to read linq and i want performance
So i dont use this feature
only took 2 hours but i made shitty blackjack
uh.. dealer hit on 21
so not quite there yet, but almost
okay now he stands properly
Why the frick would god need money
why not
God's a gambling addict
👀
you try to get 21 or as close as possible
over = bust
once you stand/stop going higher, the dealer tries
if you dont get 21 and the dealer goes higher, you lose
dealer gets 17-21 they stay
theres probably stuff im forgetting but thats most of it
Highest number under 22 wins ?
right
or if you hit 21 from 2 cards its auto-win usually
ace + face card = "blackjack", the best hand you can get
i need to rewrite how the deck and hands are generated if i want this to be "legit"
right now it pulls from the same deck and acts like the cards never get removed
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@north dune Here if you dont wanna wadte 10 mins of ur life
Made them like a couple of months ago
i have what i need its just that it could be easier to use
as far as making sure its mechanically perfect
is list of integer faster than list of objects
Makes the code cleaner
but for some reason class name can be long as frick 
Now you have to make a shuffle method inside that class
no i dont
How would u shuffle then
UseThisIfYouWantToGetTheDataFromAWebWithCachedResponsesAndFasterLookup
Thats because you dont want to display it
Yea it makes sense from what ur using it for
then i could remove the random card and keep getting new ones, itd shuffle after each pull
but
still not quite how itd work realistically
Damn I played this game for years and didnt know there was a PC release 😄
In my code i had the console as an interface so i overrode the ToString
And stuff like that
Stuff that you dont need in your case
isnt that just overriding the prototype methods or whatever its called
i had this 5 if statement long thing checking if the first 2 cards made a blackjack for the REALISM
said fuck it and simplified it to save my brain
usually 9 + 12 wouldnt be blackjack
but with this it is
only time i make new classes is for independent menus in some mods
Just a preference
Reminda me wheb i used to never make classes
simplegui has like 15 for no reason
it sounds bad but its not hard to organize within one project
1 class = coolest line count
my online mod takes 1100 lines of code in one class
no idea how many itd be if i split it up like a normal person
harder to track either way
Its just preference
also every mod has the same helper methods for reflection 
You prefer less classes
I prefer more
If you make a gamengine
You will start prefering more classes

You need an abstract class for almost everything
And then you will have like 3 classes derived from that class at lwast
Ah shit
I should be studying
Bye

bye
me after making a code 0.15s faster
lmao
0.15s faster is a lot actually
i know
Its like 5 more fps
i just added caching
Ehat are u coding ?
thats useful for playing worldbox considering my fps is 20 ish
a turn based rpg
What den
secret 
s o r e
Not even gonna tell what programming language
Thats one hell of a secret
You better be making some mills every couple of days

let data = await connection.get(user.id);
yes
apparently not
Then why JS
secert
You can keep your js game development secert
None probably wants to know anyways

But i guess for a turn based rpg performance isnt a probelm
true 
my drawing is shit and is probably gonna be pixelated
so a 1gb ram machine can run this
When the imposter is = sus amongus.get(user.sus);
@barren shale so yesterday i tried to code for longer then 30 minutes
ended up passing out at 9:30 pm on my desk and woke up at 1 am confused as all hell
but anyway i didnt end up fixing the shaders so i just ended up reading the learnopenGL book that is in c++, should still use the same methods
plus c++ aint that difficult to read even if you havent learned it
same
apparently
after i put my code on the production machine
it slows down and is now back to 0.8s
instead of 0.6s
oh wait nevermind
its just my wifi being a [DATA PURGED]
I don't
today i realized that my machine can process image faster than requesting from a website
what does it mean when using ps a -o %cpu,%mem,cmd a process is using 1.8 mem and other uses 0.0

does it mean 1.8% of memories
or 1.8gb
nvm my process just took 300mb of memories
idk though
although i read up and ps doesn't return the process actual memory
i have to use pmap
remaking the whole thing i did, will be using these to work off of, thank you very much
I love watching this guys videos. I find this one especially intresting
https://youtu.be/hhgxsrAFyz8
Almost everyone has opened an EXE file in a text editor and been mystified by the apparent nonsense. How does a computer make sense of it? Let’s uncover the illusion.
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Patreon: https://patreon.com/Bi...
Good video, I need a good hex editor / hex compare tool now, became interested in Planet Coaster mods again because of that video.
hxd was the universally recommended one when i messed with hex stuff years ago
using @barren shale card and deck thing but with some changes
Player drew card: Eight of Clubs. New total: 8. Cards left in deck: 51
Player drew card: Ace of Spades. New total: 19. Cards left in deck: 50
why is it always added as 11
oh man im just being a big idiot
Player drew card: Three of Clubs. New total: 173. Cards left in deck: 30
Player drew card: Ace of Hearts. New total: 174. Cards left in deck: 29
works as expected, i just wasnt testing properly
used a label + goto in c# for the first time
the if statements all return and prevent the loop from going infinitely
back to where i was 12 hours ago.. except it outputs to the log and the code is actually readable
should i make my own LFU caching as a hashset instead of hashmap
or should i just store 0 in them
or its a bad idea
for both of my ideas
Why are tou using goto 
WHY
its the worst thing that came to C#
Pls use a while loop
Hurts my eyes
nah
usually id use a loop
this time i dont see a reason, label and goto worked perfectly
Its unreadable
In your case its a small one so its kinda readable
But still a shit habbit
And having a isRoundOver method is good
doing it for the first time and only once
cant call it a shit habit
it just fits the use case best
While loop or recursion looks way better imo
maybe

okay i swapped the label for a loop
just to be consistent
i will still be stubborn and say a label was perfectly fine
and even took less lines
anybody know the regex for ```
hello [matched ll]
hi [not matched]
aaaaaa [matched aaaaaa]
i found the regex for one that's not able to search between the string
so mine is ```
aah [match]
haa [not match]
but i want both to be match
I'm really really bad with regex
I just copy regex from google
that's literally me
but my keyword suck
"how to find substring between characters in regex"
that showed me solution completely different
@barren shale learning a lot from your small example
trying to use classes a bit more proper i think
contained all the blackjack logic/behaviour in one class, calling it all from the menu in a seperate class, and created AI players that each have their own window/board
looks dumb, but thats from this
also figured out "= null" after a parameter makes it optional
so now i can create players with specific names, or without one at all
User reported to the proper authorities!

I try to add classes
And fill them up with methods
Even ones that im not gonna be using now
It just makes code look cleaner
Btw that example was wrote on phone
For playing
Id suggest making a Player class
Abstract class
And deriving a HumanPlayer and AIPlayer from it
Have an abstract method called play
And a Variable storing the hand
In the base class
Then if you want to implement more advanced AI
You can just make a new AdvancedAIPlayrr
And derive it from the base class
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Heres a quick one i made
What apps in play store good for coding?
Termux definetly
apparently i installed ffmpeg super fast but long
for some reason
usually it took me a few minutes even half an hour for the building part
agree
also you also might wanna use andronix with that
hm frick
after installing libsodium my process took 500mb
null
still no idea what null fucking means
undefined
basically just doesnt exist
ouh
@weak holly null basically means nothing, kind of like unassigned
It's kinda rare to use it but still a very good thing to know
basically the state of my dad when he say he's buying milk
exactly maybe

Wait what language is you learning @weak holly
Because I'm pretty sure null is different in some languages
Usage wise
yss
yes
i usually use null to the absence of value
like in a object
something like Me.BankAccount = null;
Null still takes space in memory tho
If they are in an array only
So dont think you can make an array with 5 millions nulls

yes
basically
true is 1
false is 0
null is a whole object
containing a few bits or bytes
you can
just handle the memory leak next

Jokes on you i have very slow phone and using more than like 100000 null will warn me of memory error

But the empty reference still takes space
yes
I will make a roguelike so I don't give a shit about memory 

I still need to make the engine tho
or maybe garbage collector
Uae hengine 
Lol no
🇦🇪

The H stands for hbest
When i made it no im not turkish
H stands for Hen
lmao
H stands for ham
🍔
Ham engine
Minecraft 2D 😳
Minecraft is already 2d 😳
Finish it when
just illusion
After exams dud
Fokin exams ruining Minecraft 2d
Yesterday i had to wait in the queue for one hour
To get my exams cqrd
It was so hot
If I didn't have exams I would have finsiahed my game engine by now
Final year of school
Or atleast finished setting up open GL
After which you make minecraft 2d 😳
😳 😳
Idk 😳
It should ngl 😳
should i work on my game or just watch memes
This is probably the least smart conversation I have had in #⌨coders-cave
Cuz if i dont get 230/240 i cant go to computer science college
focus exam = more time to work on mc 2d
Game better then memes
rip
i got 40
on my exam
40/100
fair
Bye
But 90 is downright impossible
bye
Gotta fo study
Cya coder man
agreed
From Turkish
90 points is for the People who never get out of their homes to study or do anything else
yes
oh also how do we install redis in windows
Reddit?
yes
Ah
Shit idk
That redis
shit

Idk I don't work with databases
Just use mysql
iam
I make shitty engines
Whats wrong
Ive never managed to get redis working
GTA 5 in js 😳
by 0.3 second
Probably cuz i never tried that hard
if im not using cache
fair
GTA 5 in binary
i actually never used one before but now im using it
GTA 5 in moon runes 😳
😳
Assembly isnt that complex tbh
Unity sucks
Ima leave on that note
But better than roblox engine
Depends on what ur doing
cuphead be like: ??
also hearthstone be like: ???
monument valley 2 also be like: ???
hitman sniper be like: ???
Alto’s Adventure also be like: ???
the logic behind unity isn't simple at all
and tbh they're prob better than what you could do in 1 year
it's pretty simple compared to other stuff
I'm learning to make game engine on my own and idc how bad it's gonna be but I'm gonna do it
those are all made in 3d but made look 2d
that's common practice in unity
true lol honestly was just looking for a good argument
but unity was formally made only for 3d
so it's kinda normal that the 2d isn't the best
yep
never said i can, i just said i dont like it
plus im making an engine for roguelikes meaning that the most difficult thing in it will be the collision lol
plus im sure that alot of these games modified the physics of unity 2d to fit their game style
alot of pluses lol, its like i forgot i wrote one like 2 seconds ago
but i guess i was too harsh on the physics of unity which is my bad for which i apologize
after 2 weeks of thinking i finally have a shiny rectangle
whut
just remember one thing from me
im a dumbass and i dont understand codes no matter how easy they are
i just hear about it
and sometimes i watch coders do stuff i dont know what it means
by that i mean codebullet and dani
codebullet is really damn good at what he does
i have been coding for over...idk how much and i cant even think of how he does the things he does
mainly because i dont really work with ai
i mean self learning ai
just like ssundee in crazy ass mods
he just keeps
automating
end the series?
make a new one and automate
dani is also cool
he seems really good for only coding for an year and something
**i feel like we shouldnt talk about this here
**
english 100
do u even know when an gets used
but i guess he has enough motivation to keep learning at a goof rate
yes, i forgot what y is
aeoi
motivation is one of the hardest things in coding
because you will learn stuff and do stuff, until you dont burn out
then you wont want to even go near visual studio or the IDE you use
So unfortunate if you have that
r
basically starts with r
so your name is r
just r
Rain
wrong
its an arabic name
which makes sense because im from iraq
good luck there finding it out 
Still semi have that
semi auto
its bad
Because of a worldbox mod I didn't get completely finished
but once you get it out of you then its amazing
"i didint get finished"
-daniel 2021
I don't SeA anything wrong with that
Sea
there once was a ship that was put to sea
nd it hit a rock and died
And the name of the shit
wrong word 
Nah exactly right word
fat
was the "Billy o'Tea"(dont know how to write that lol)
Bo''le o' Wa'er
the winds blew hard... blow o bully boys blow shout(dont know either lol)
Alright now let's code Wellerman: The Game
aight
how about potato farm simulator 
potato ultra simulator X
lets code it in the Eternal engine Library
the eternal engineer gaming library
Yeah but bools use an entire byte.
C++'s std::bitset can be used to store 8 booleans in a byte, if you live and breath efficiency.
yes
But like, why?
You could be much faster.
Why be slow?
When you could be zoomin'?
wait how much bytes does an int contains
Depends.
that gives me nightmare
especially when the teacher called my name
that's why i skip school for 3 month
4 bytes (Android 64 bit)
got it
so apparently use the actual datatype instead of integers
since its smaller in size than actual integers
the fok is wrong with me finger
I don't know.
Speech 100
-100
Nice ugly crads
these ugly cards look beautiful
c# says its 4...oh wait its already answered

amazing now i can lose money in worldbox

Text should be white
Bruh


@barren shale can I get a free copy of Minecraft 2d when it releases 😳
On all platforms
Ez

Will Minecraft 2s have diamond 😳
Its shiny indeed





