#⌨coders-cave

1 messages · Page 50 of 1

barren shale
#

Added mouse inputs

#

(yes i used the same picture)

wet girder
#

lmao

barren shale
#

mouse inputs are much easier than keyboard inputs

#

who wouldve thought

wet girder
#

sounds kinda logical

#

what language are ya using

barren shale
#

java

#

cameras now can ZOOM IN :OO

#

(was easier than expected)

#

imagine not making ur own engine

#

cant relate

wet girder
#

why am I temped to learn Java

barren shale
#

its C# but a bit different

#

C# is pretty easy to learn

#

so is java

#

java is good for things like games

#

meanwhile C# is better for applications

#

and web

#

and everything thats not games

wet girder
#

But I have 3 projects to do on amp + I have summer work where I'm gonna so websites in 4 weeks and I'd want to learn about web dev before it

barren shale
#

unless ur using unity

#

websites

#

in what language

#

or is it whatever u want

wet girder
#

I have no fucking idea. My contract says technical details of the work will be explained the first work day

#

which is annoying

barren shale
#

bruh

#

then its probably whatever u want

wet girder
#

I could technically message my employer and ask

barren shale
#

unless they expect u to learn whatever language they want in the first day

wet girder
#

The work description said "No knowledge of the topic is required, you're only required to have intrest in the topic"

#

so I think I'm fine peepoShrug

barren shale
#

and how much do u get

#

1$/h

#

xd

#

ahhh shit

#

first bug

orchid frigate
#

aight fuck rust im going back to c#

wet girder
#

I could make more by like freelancing or something

barren shale
#

Freelancing is hard to get in

#

Cuz u need a good repetition for people to start throwing money at you

#

And u cant get good repetition if no one is throwing money at you

wet girder
#

I could probably get started through my dad

#

he's developer with very very good reputation and I know python pretty well so I could probably start freelancing python but school takes all my energy to that useless shit

final crown
#

What kind of path finding algorithm does WorldBox use? Is it custom made or an API/public algorithm?

north dune
#

i believe maxim was messing with astar/a*, and there is still that in the code

#

but i dont think the current pathing uses that, i think its custom

#

idk though

#

oh nah its astar, this is recent

final crown
#

Ive heard A* is what i want to use but i still have a difficult time understanding it

barren shale
#

AStar is very good

#

very fast and dynamic

#

one of the best if not theb est

#

finally can load more than one texture

#

(was harder than expected)

#

very sexy i must say

barren shale
#

now its 10x times better

#

with scenes(better than unity's)

#

and a chunking system

#

yes you cant tell form the picture

barren shale
#

here u go now u can see CHUNKS

orchid frigate
#

i need to start learning openGL because windows forms performs like a potato

orchid frigate
#

what rendering system did you use

barren shale
#

opengl

stone fractal
# north dune oh nah its astar, this is recent

hoho

  1. Unit tries to go to point directly with simple "raycasting(just calculation of line of tiles from point A to point B)".

  2. If there's only one type of tiles in this raycast, then it's done and unit follows it. It's pretty inexpensive. Like for boat - only water tiles. For unit - only ground tiles(no mountains, lava).

  3. If it's failed, then unit checks if point A and point B on the same island(so we won't launch astar into separate area inside mountains for example - because it would fail, and would take a lot of cpu ticks)

  4. Then we look for path via MapRegions(bigger areas of tiles)

  5. And finally, we do astar bounded by step 4 inside already found MapRegion-path.

There's more optimization that could be done via parallel processing, which is next step in todo list for some time later

orchid frigate
orchid frigate
#

i hate installing external libraries and bindings to my code because its complicated af 😔

barren shale
#

Top tier map generation

orchid frigate
#

daaamn this is some mario maker level design

barren shale
#

secret map generation code

#
   var height = random.nextInt(18) + 2;
#

shh

#

dont tell anyone

stone fractal
#

nice. But where's diamonds

orchid frigate
#

go any higher and you will get pillars of grass going to the moon

barren shale
#

ahh shi~

#

my bad

#

forgot the diamond

orchid frigate
#

minecraft 2d lesss gooo

orchid frigate
barren shale
#

doesnt exist in java

orchid frigate
#

oh right its written in java
i was wondering how that var showed up

#

wait so do the chunks take part in the generation or are they just for more coder look

barren shale
#

Chunking makes things more efficient

#

Instead of updating and drawing the whole world

#

You make the world chunks and only update the used ones

wet girder
#

Gosh damnit. I so want to learn to make game engine now. And fot some reason I want to now do it with Java

barren shale
#

XD

wet girder
#

Instead I have to sit in school and die of boredom

north dune
wet girder
#

and it's the first warm day of the year so my mom isn't gonna let me sit on my pc the whole day, fuck

north dune
#

now i understand much better why my mods that moved units broke so easily

#

i literally skipped half the pathfinding theyre supposed to do

barren shale
#

now with diamonds

#

code had some math errors

#

made it hard to implement diamonds

stone fractal
barren shale
#

bro why implementing text is so hard

hoary hound
#

I'm doing a project with a free mysql hosting but holy shit is it slow

#

I've been waiting 5 minutes to upload a 1.5MB csv file

#

and it's still not done

#

ffs

#

it errored

#

phpmyadmin is pain

exotic vessel
#

Haha nerds go brrrrrrrt

keen shell
knotty root
exotic vessel
#

Ah

#

I surrender

#

But before i go...

#

Haha stinky nerd go brrrrt

keen shell
exotic vessel
#

I say forbidden things

#

Ok i surrender now

keen shell
#

Again?

exotic vessel
#

Take to the uhhhh..... not nerd gods

astral basin
#

This guy must be insane

orchid frigate
# barren shale made it hard to implement diamonds

cant you just do this(gonna write it in c# but you get the idea)

int odds;
foreach(StoneBlock block in AllBlocks){
   odds = rand.Next(0, 20);
   if(odds == 2){
      //replace the block
   }
}

or did you do it that way but still got errors

#

still tho pretty cool, with this working speed you will be able to make 2d minecraft in no time

orchid frigate
hoary hound
#

Would be better if AllBlocks was a list of Block, then you can make StoneBlock and DiamondBlock inherit from Block, so you can have a list for all your blocks

wet girder
#

Hmm... Haydot is making game engine in C#, Hamza is doing game engine in Java so if I do game engine in C++ we would all be doing game engines but with different languages

#

well before that I gotta work on amp a bit

hoary hound
#

I always tought making game engines required some deep knowledge about low level programming and stuff, is it actually easier?

wet girder
#

Well it is not that hard for sure

orchid frigate
#

And from them on it's like making a game

#

Oh yea also very much matters what engine

#

If it's 2d it's simple

#

If it's 3D it's...very very complicated

north dune
barren shale
barren shale
#

Unless you know assembly

#

Really well

#

And the images ive been sending are of a testing game, im not in the mood of making a platformer

barren shale
#

Mastef i suggest remaking the game with my engine which is clearly superior to the unity engine in performance and stability and more things...

#

Bruh i have to remake the whole textures and rendering system

#

To implement text

#

I already hate making an engine

orchid frigate
#

I guess the renderer is ok

#

But the physics engine is just....wow

barren shale
#

Its good

#

For 3D

orchid frigate
#

For 3d its ok

#

But for 2d

barren shale
#

Its fooked

orchid frigate
#

I would rather rewrite the whole physics engine myself then have to deal with its crap

orchid frigate
barren shale
#

Good luck

orchid frigate
#

I started making a game, ended up attempting to make an entire game engine and maybe even renderer on my own

#

Actually not render

#

Renderer*

#

If I also try to make a renderer I will end up dying from old age before I'm done with the game

barren shale
#

i love remaking things

#

almooooost

orchid frigate
#

i dont think they should be switching rotations like that Thonk

barren shale
#

finally

#

new rendering system working

#

poggers

#

now back to font

#

sad life

orchid frigate
#

they are too different in size 0/10 would not reccomend not like 2d minecraft

north dune
#

having error that i cant fix.. hid it behind a try catch without a log

#

now some of it functions and the error doesnt break the rest

#

having a seperate problem where im trying to edit a person as theyre created, but the thing im changing isnt created quite yet...
so i have a permanent loop that runs, always checking for FINISHED people to make the change to

#

2 stupid solutions back to back, but "with no errors"

barren shale
#

bruh the first two lines ryhme

#

NOW WITH TEXT

#

NVM

#

dont use HIII as test

#

cuz if you flip it upside down it stays the same

#

sad life indeed

#

that's FPS upside down

#

ASHHHHHHHHHHHHHHH

#

i hate this

barren shale
#

dont lul me

#

im crying

#

finally

#

TEXT IS HERE

#

:o

#

. .
o

#

;o;

#

just gotta fix this

tropic dagger
north dune
#

terraira

starbound

Hengine

#

New is best

balmy bone
#

Hey there

#

I'm having problems with Unity

#

Someone can help me?

#

Well, when i import some photo, that lose and change pixels

#

Emm, how i send photos here?

keen shell
#

Can in dm, you don't have the chicken role yet

balmy bone
tropic dagger
keen shell
#

The image he sent

#

So basically there a line visible in the center of the unity image but it's not in the original image.
I don't know a fix for it, I told him to change filter mode / pixels per unit. Didn't change anything.
Now I'm trying to get him a more recent unity version

north dune
#

always repeating... because the bodies pile up..

#

||its to hide sprites from parts that arent necessary once the unit is skinned||
||because peoples heads were spawning at their feet||

deft anvil
#

They like there heads

barren shale
barren shale
#

rendering system fully working with different sprites and different sprite sheets

orchid frigate
#

minecraft 2d be like

#

also have you been working on this for half a day now

#

or full day

barren shale
#

i started like 2 days ago

#

ive worked like 5-6 hours on this

#

time to make some kewl ui elements

orchid frigate
#

tried unity again because i dont have time to learn opengl

#

dont like it too ez

barren shale
#

you can still make kewl games with unity

#

or

#

you can use HENGINE

orchid frigate
#

with a big ass screen saying "made with unity " at the start

barren shale
#

worldbox has a big ass screen saying made with unity at the start

orchid frigate
#

does it?

#

i never noticed

barren shale
#

sometimes it appears sometimes it doesnt

#

0.8.1 it appearred

#

0.8.2 it didnt

orchid frigate
#

how does that work

barren shale
#

idk

#

maybe they built the game with the free edition

orchid frigate
#

is it just like "you pay for unity pro version and you get a chance to not get a giant watermark for everytime you start!"

#

oh well that makes sense

barren shale
#

i mean i can tell if the game is made with unity anyways

#

just open the game files

#

u see unity all over the place

orchid frigate
#

ye but its still annoying

#

when im making something myself Im making it myself

barren shale
#

made with HEngine

orchid frigate
#

i would use Hengine ngl

barren shale
#

i need to finish the basics first

#

still need ui

#

and more

orchid frigate
#

but you know whats better

barren shale
#

i dont know i cant think of anything

#

welp

orchid frigate
#

the eternal engine

barren shale
#

what else do i need to implement after ui

orchid frigate
#

also im gonna show you a madman brb

barren shale
#

ah shit

#

i remebered

#

physics

orchid frigate
#

physics are simple

#

kinda

#

matters what physics, if you want really complex physics good luck

#

thankfully roguelikes have like no pjysics attractive

wet girder
#

depends of the game

#

games like deadcells have physics

#

and it is roguelike

#

or well roguelite (I think) but still

orchid frigate
#

noita is an almost entirely physics based and its a roguelike

#

but its also not a top down

#

top-down games dont really have physics because they are pretty much not needed, most of them like binding of isaac use animations to simulate falling, or maybe while the animation is on they are a bit higher up on the y axis

#

anyway so im a true coder and i can prove it by saying that i just had my second most important bulgarian exam in my school time thing and i spent the time before it coding

wet girder
#

because for some fucking reason I need to have OAuth on to fetch users

wet girder
orchid frigate
#

oh there is a literature part of the exam now

#

ok well try/catch statements wont help me now

barren shale
#

With physics i mwan the movement of entities

#

It exists in all games

#

Collisions

#

And things like that

barren shale
#

Have u tried searching for a library that already do it for u

#

Instead of writing ur own

wet girder
#

I did and I figured it out

#

@thick shale #🤖bot-commands

silver flicker
#

Anyone knows how to print values in console?

hoary hound
#

I'm so fking angry right now, I get that this is a free, FREE mysql database hosting, and I was OK with just 5 frickin MiB of space, but FFS if you SUSPEND my account if I even minimally exceed that limit, instead of directly preventing me from exceeding it in the first place, you are a bullshit company. Now all the hours I spent to upload the data is fucking gone and the database is locked behind a paywall

barren shale
silver flicker
#

C#, specifically for WorldBox

barren shale
#

Does worldbox have a console

silver flicker
#

I wrote a block of code and want to test it.

#

I think so

barren shale
#

Can u send me an image of the console

#

A screenshot

silver flicker
#

When you press "`" in game, you will see console, right?

barren shale
#

Idk

#

Never played it on oc

#

Pc*

#

Is there a console

silver flicker
barren shale
#

You will probably find a class called tracer or logger

#

Or something of this sort

#

And it should have a function that should be called trace or log or append

hoary hound
#

Pretty sure Debug.Log("text") works

barren shale
hoary hound
#

at least it does with bepinex console

silver flicker
#

I tried. It prints only when exception thrown

#

And somehow the breakpoints don't work either

barren shale
#

Just throw an error then

hoary hound
#

breakpoints never worked for me, probably needs some special setup

barren shale
#

Breakpoints dont seem to work with unity

#

When ever u wanna log something

#

Throw an etror

#

Inside a try block

#

Ez fix

#

Or ask @north dune

hoary hound
#

@silver flicker consider checking out LogHandler class

#

seems to be the rigth one

barren shale
#

It will be probay LogHandler.log

hoary hound
barren shale
#

Or handlelog

#

Why does he check if its error 0

#

Instead of initializing at the start

hoary hound
#

this is probably where the magic happens

barren shale
#

Oh wait

#

This is not the console

hoary hound
#

LogHandler.log is the text you want to print

barren shale
#

This is a log file

#

So u can send it to the devs if the ge crashes

#

Idk maybe its maybe its not

silver flicker
#

and LogHandler.getPath() is the folder contains log files right?

barren shale
#

There's only one way to know

hoary hound
#

yeep

silver flicker
#

Let me try it.

#

Thanks.

hoary hound
#

you could print LogHandler.getPath() and see what the path actually is

#

since we can't debug

hoary hound
barren shale
#

How is he gonna print

barren shale
hoary hound
#

File.WriteAllText(LogHandler.getPath(), LogHandler.getPath());
could work

barren shale
#

Xd

#

Bruh

silver flicker
#

.......

barren shale
#

But he doest know the loghandler path

hoary hound
#

you don't need to know it

silver flicker
#

I'll just print hello world to see if log files have hello world in it.

barren shale
#

This is writing to a file

hoary hound
#

that's what I assumed

barren shale
#

Doesnt seem like it logs to the console

hoary hound
#

Probably console reads the file?

#

idk

barren shale
#

Nah

#

Why would u erite to a file

#

Then read it

#

Thats like jupe code

#

Can u send the whole class

#

I wanna take a look

hoary hound
#

looking for console rn

barren shale
#

Its the LogHandler.log

hoary hound
#

think I got it

barren shale
#

He is just adding more text to it when you Use LogHandler.HandleLog

hoary hound
#
using System;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000152 RID: 338
public class DebugLogs : MonoBehaviour
{
    // Token: 0x060007AC RID: 1964 RVA: 0x0000737B File Offset: 0x0000557B
    public void showLogs()
    {
        this.text.text = LogHandler.log;
    }

    // Token: 0x060007AD RID: 1965 RVA: 0x0000738D File Offset: 0x0000558D
    private void OnEnable()
    {
        this.showLogs();
    }

    // Token: 0x04000A36 RID: 2614
    public Text text;
}```
#

So it uses LogHandler.log

barren shale
#

Yes

barren shale
hoary hound
#

so just need to append text to LogHandler.log and you are good to go @silver flicker

#

haven't tested it yet

#

but you are free to try

barren shale
#

Just use LogHandler.HandleLog

#

LogHandler.log is private

#

Or not

#

Its not

#

But usung LogHandler.HandleLog still better

hoary hound
#

I guess

barren shale
#

BTW

#

I fixed text in HENGINE the superior engine

hoary hound
#

wait....

#

HandleLog is private

#

wow

#

ohhh

barren shale
#

It shouldnt be

#

Wait

#

Ill check

#

Its private

hoary hound
#

anyway, here's the log folder if you are interested C:\Users\(Your user)\AppData\LocalLow\mkarpenko\WorldBox\logs

barren shale
#

Irs connected to an eventlistenet

#

Worldbox shoyld use HEngine

#

Much better

hoary hound
#

oh damn

#

I have an outdated version

#

0.7.0 wbgreg

#

it's been a while since I modded the game lol

#

crap

#

bepinex broke with new version

silver flicker
#

lol

#

I can't find File class

barren shale
#

I believe

#

Just checked

hoary hound
barren shale
#

AJWOIQHWJQW

#

why text is so hard in opengl

#

ffs

orchid frigate
#

text

#

why would you even need text for 2d minecraft

barren shale
#

main menu hagrid

orchid frigate
#

eh dont need it

barren shale
#

when i try to update the text

#

the whole thing gets drawn instead of it

orchid frigate
#

hmmm have you tried to cntr + z the screen

barren shale
barren shale
orchid frigate
#

delete the line that gives an error

barren shale
orchid frigate
#

be like big boi componies, say "eh dont need this feature" or "its a feature now"

barren shale
#

Ahh yes

#

i cant see shit is a feature

orchid frigate
#

exactrly

#

this is the altitude you need

barren shale
#

like im unbinding the framebuffer

orchid frigate
#

when a line gives an error, just delete the line

barren shale
#

but why is it still drawing to the framebuffer

#

AJWOIQW

orchid frigate
#

you probably dont need it

barren shale
#

i dont need it

#

i want it

orchid frigate
#

then use unity

#

for ez text

#

opengl is cool but i have no time to learn it

barren shale
orchid frigate
#

because exams

barren shale
#

i do not recommend

#

(cuz too hard to implement text)

orchid frigate
#

also 11:20 hours of eternal nightmare for some fucking reason

barren shale
#

forgot that open ?

orchid frigate
#

no

#

its not open

barren shale
#

oh

orchid frigate
#

i dont have a project like that..well

#

i do

#

but its old af

barren shale
#

same thing happened to me

#

i was playing a game on pc

#

i turned off the pc and went to sleep

#

i wake up open my phone

#

and some dude told me that ive been playing the game for 10 hours

#

but my pc is off

orchid frigate
#

imagine playing games and not making em

barren shale
#

discord be like Tom

orchid frigate
#

cringe

barren shale
#

cant relate

orchid frigate
#

the only game i play is binding of isaac

barren shale
orchid frigate
#

to figuere out how it works

#

coder man joins chat 😎

hoary hound
#

every time I play a game I feel bad because I should be the one that makes games

orchid frigate
#

me too tho

hoary hound
#

it sucks

orchid frigate
#

i tell myself "damn i wish i was behind the development"

hoary hound
#

lool yeah

orchid frigate
#

mainly for binding of isaac, the mans are sitting on a fucking goldmine of a game

#

so good

#

im trying to figuere out what makes it better then every other roguelike

#

maybe synergies?

#

untested synergies with items?

orchid frigate
#

great replayability?

hoary hound
#

just had an inspiring discussion with maxim, maybe after my exams are over I will start a new project, maybe a game, or just a wb mod, I just want to go back programming stuff again aye

north dune
#

your "synergies" is exactly what i was thinking

#

have you seen never split the party?

orchid frigate
#

it cant be just that tho, other game....actually they dont

north dune
#

its binding of isaac with less iconic artstyle but co-op gameplay

#

almost as fun but not quite

#

something in binding of isaac sets it apart

orchid frigate
#

great replayablity maybe or the artstyle

#

its iconic

#

i feel like the main reason its so good is that its simple...and untested

#

and unfixed

#

while other devs are fixing too op synergies and items ed is just making more

barren shale
#

I gave up

#

For today

#

2D Minecraft delayed by the 30 mins im gonna watch youtube on instead of working before i go to sleep

formal coral
#

I wish i could buy worldbox unity project to make my own game.

north dune
#

lol

#

that's pretty much paying for many years of the game development

#

it would be very expensive

barren shale
#

If you need to buy someone elses work to make a game you wont go far

formal coral
#

@north dune ya i know. It would save me a ton of time tho. I wanted to make a game just like this based off Hindu mythology. When I saw the videos for worldbox on utube i became excited as this is exactly what I wanted to make, except off Vedic mythology.

orchid frigate
#

goddamnit opengl and glfw will take long to learn

formal coral
#

@barren shale, you could be right. Might as well pay some college kids to clone the game, its prolly cheaper

north dune
#

it really would be

#

there are services on fiverr for doing just that...

#

(dont rip this game off)

#

(thats bad)

barren shale
#

(anygame)

formal coral
#

i already said im trying to make a game based off hindu mythology. How can i be ripping this game off

craggy flower
#

idea get

barren shale
#

Why would u pay them to clone this game

#

When u can pay them to make the game

formal coral
#

Hamza are you stupid, or dumb? wow

north dune
#

hahaha

#

we have a low effort troll

barren shale
north dune
#

i want to buy this games source to build off of

paying college kids to clone it would be better cheaper

how am i ripping this game off

#

he said cheaper, not better, woops

barren shale
#

And i said the instead of a

#

Woops

north dune
#

the a woops

#

i tried to hire a guy on fiverr who had his prices listed from 5-20 dollars

#

offered up to 70 for what i wanted, he said it wouldnt be nearly enough

#

then why the hell are your prices listed so low

barren shale
#

Skem

north dune
#

what i wanted was relatively easy and had source to use as reference as well

#

the thing is he has hundreds of reviews and is 5 star

#

fiverr itself is a scam, not just the seller

barren shale
#

Yea fiverr is pretty scammy

#

And opengl is fucking wigqvusbe

#

Implementing text is just harder than it should be

orchid frigate
#

openGL is hard

#

too many functions

north dune
#

323 reviews, 5 star exact

#

no negative reviews

craggy flower
#

starting at 5

#

not stuck at 5

orchid frigate
#

i wonder if anyone on fiver would make a game engine for you

north dune
#

and 70 wasnt enough for what i requested

craggy flower
#

ok i see the issue then

barren shale
#

Fiver sellers do their job quickly

craggy flower
#

just seems like effort to use fiverr

orchid frigate
#

it would cost like 500 anyway lol

barren shale
#

Id rather use unity

orchid frigate
north dune
orchid frigate
#

how could you

#

betray me

north dune
barren shale
#

Ok fine

north dune
#

70 isnt enough for ONE of those features..

barren shale
#

Id rather use gamemaker

north dune
#

ridiculous

craggy flower
#

imagine using yourlife andlearning tocode,hahah

orchid frigate
#

whats gamemakes

#

scratch?

craggy flower
#

i wouldmuch rather get low wages at kfc

orchid frigate
#

or sm similar

barren shale
#

Gamemaker is a game engine

#

It has its own language

orchid frigate
#

i mean no shit

north dune
#

is that the one that is its own series

barren shale
#

Pretty easy to understand

orchid frigate
#

nice

north dune
#

i played one on playstation 2

#

gamemaker something

barren shale
#

No

orchid frigate
#

it has its own engine so i respect it

barren shale
#

Yhats something else

orchid frigate
#

language*

north dune
barren shale
#

I forgot whats the name too

#

Its on steam

#

U can make rpg games with it

north dune
#

oh wait

#

RPG maker

barren shale
#

Yea

orchid frigate
#

what if i make my own language, rendering system, physics engine, game engine and game :)

barren shale
#

No shit

#

The creator is pretty creative mgl

north dune
#

god is pretty godly

north dune
barren shale
#

Lets see

#

Its used to make games

#

Rpg games specifically

#

Hmmm

orchid frigate
#

i will die of old age by the time i make the rendering system

barren shale
#

RPG MAKER

#

Gamemaker 2 is paid tho

#

Free version only allows 10 scripts

orchid frigate
barren shale
#

Which is sad cuz its mych better

orchid frigate
barren shale
#

Its the free version

#

So u can try it

orchid frigate
#

still

barren shale
#

And we are not talking about rpg maker

#

We are talking about game maker

orchid frigate
#

i need 10 scripts to make movement damnit hagrid

barren shale
#

Totally different

orchid frigate
#

ok new plan

#

i make my own pc parts, from which i make my own pc, operating system, then i make my own programming language, then rendering system, physics engine, game engine, game

#

ez

barren shale
#

Id rather use unity

orchid frigate
#

...yea 😔

#

BUT WHAT IF

barren shale
#

No

orchid frigate
#

i make my own molecules...

barren shale
orchid frigate
#

i mean it would be a good story to tell my grandkids

#

"did i tell you about the time i made my own atoms, from which i made molecules, from which i made pc parts, from which i made pc, from which i made an operating system, from which i made all the other crap just to make a game?"

barren shale
#

Im so close to implementing text

#

Yet im so far

orchid frigate
#

cant you just watch a tutorial or sm

barren shale
#

the tutorials doesnt implement it the way i want

#

and tutorials are more like explaination

#

so i still have to figure shit out

wet girder
#

Hell yeah! I created my first window in opengl

tiny silo
barren shale
#

C++ cringe

#

Good job tho

#

Not gonna mention that even maddox can do that

wet girder
barren shale
orchid frigate
#

Opengl hard af tho

#

Too many settings to setup

wet girder
#

I am just following this series for now

#

Patreon ► https://patreon.com/thecherno
Twitter ► https://twitter.com/thecherno
Instagram ► https://instagram.com/thecherno
Discord ► https://thecherno.com/discord

Series Playlist ► https://thecherno.com/opengl

GLFW ► http://www.glfw.org/

Thank you to the following Patreon supporters:

  • Samuel Egger
  • Dominic Pace

Gear I use:
---------------...

▶ Play video
#

it should teach opengl pretty damn well and then I can research a bit more about actually making a game engine

#

yey triangle

#

now it is the correct shape

wet girder
#

openGl is actually very fascinating

lofty turret
#

Yooo

wet girder
#

I think I am gonna learn all this complex opengl stuff before going to game engine stuff

#

I was just gonna learn everything neccesary but I think nah

lofty turret
#

Why cant i add the fire proof trait any more on the trait modifier

wet girder
#

Lemme check the code if I have mistake there

lofty turret
#

Yeah i cant add fire proof nor freeze proof

wet girder
#

Probably a mistake in the code

lofty turret
#

@wet girder King you dropped this

#

👑

wet girder
#

@lofty turret you should be able to now

lofty turret
#

Wow what a kind legit

#

I'll try in a biy

#

Bit

#

King*

barren shale
#

Text implementation almost done

#

Just one last bug

orchid frigate
#

2d that is

#

3d is probably impossible for a single man

barren shale
#

:OOOOOOOOOOOOOOOOOOOOOOOOOOO

#

it.. it is text

barren shale
north dune
orchid frigate
#

And the operating system

#

Computer, pc parts

#

Molecules

#

atoms

barren shale
#

im a serious man

#

talking about serious subjects

#

like text

#

dont troll plz

orchid frigate
#

Oohhh text

#

If I make text in 20 minutes

#

What will you do

orchid frigate
barren shale
#

no its ez

orchid frigate
#

Ok

#

Make it then

#

I can make it you know

#

If.i have....20 years

#

I can make it

barren shale
#

I added children

barren shale
#

this button speaks the language of gods

wet girder
#

lmao

orchid frigate
barren shale
#

I meant children of objects

orchid frigate
#

how can objects have children hagrid (i understood what you meant btw)

barren shale
#

You see

#

When a Male object and a Female object love eachother

#

They do the thing

#

And a child pop out

orchid frigate
#

is that how room generation works?!

fickle plaza
barren shale
#

BUTTON

#

wait what

#

why screenshot doesnt show mouse

#

it changes color when the mouse is hovering over it

wet girder
#

Damn, modern opengl is complex

barren shale
#

Meeh

#

Nothing is really stopping me

#

I don't have to understand everything

wet girder
#

lol

orchid frigate
#

opengl looks too complicated to me im gonna learn it after school ends for this year lol

wet girder
#

Well if I don't want to postpone the learning by 5 weeks I gotta learn it now

#

I have school or work next 5 weeks

#

so 3 weeks time to code anything I want

#

then i have 2 weeks when I'm only able to code work stuff

#

because I'm not gonna be home those 2 weeks

orchid frigate
#

well good luck, im sure that opengl aint that difficult

#

also just tested the gameloop in opengl, now i understand why people use it

#

got to 500k frames in like a few minutes

#

windows forms has got nothing on opengl in terms of complexity, feels like im learning a new language lol

barren shale
#

Windows form isnt meant to be used like your using it

#

Stop abusing windows form pls

orchid frigate
#

#windowsFormsBestRenderingSystem

barren shale
orchid frigate
#

i love when my games run at 5 fps

barren shale
orchid frigate
#

ok then, now i understand why things are so complicated

barren shale
#

You don't need to learn everything

#

It took me less than a week to do what i did

orchid frigate
#

also just learned about unsafe code in c#(i knew about it before but i never knew what it was), its like im using a whole different language

#

reminds me of rust because of its random symbols

barren shale
#

Minecraft 2D 😳

#

text still a bit bugged

stone fractal
#

that feel when you check benchmark for today's changes, and found out that pathfinding performance is improved by x33

barren shale
#

x33 times

#

who is the nub that wrote it so unefficientlty the first place

barren shale
orchid frigate
barren shale
#

2D Minecraft is now not just a huge memory disaster

#

added textures loading and unloading

#

so it doesnt just eat memory

orchid frigate
#

Next: added Minecraft Steve into 2d minecraft

#

Also why is the title still hello world! hagrid

barren shale
#

Cuz hello world

#

Too hard to change

north galleon
#

Hey does anyone here know the equivalent for xrange in python 3 because it's giving me nightmares

#

so this is why people don't usually sue multiple languages you get them mixed up

barren shale
#

Its range

#

Normal range

#

Just good old range

wet girder
#

@north galleon I have about 3 years of experience in Python so if you need help with it just dm me. But please don't dm me to finish beginner problems for you

barren shale
#

And still need people to fix ur codexzibit

wet girder
#

well it was only one bit of code I never even wrote

#

or well I did technically but didn't have time to make my version actually work

barren shale
#

admit ur a NUB

wet girder
#

No but I never wrote that yoo

#

the code was never meant to be used in scale

#

everything me or maddox have writtrn are working flawlessly and it's like 3-4k lines of code but #🔁map-conversion seems to be the most important one but I never have time yo fix it

#

I have 2 or 3 entirely new projects for amp planned

#

but I don't have time to do them the next 5 weeks

#

I'd really need a laptop to be able to work more but next semester I start a new school and the school has to provide a laptop for me so it'd be a waste to buy laptop now

#

But yeah I can safely say I'm a noob but everyone is at the beginning and I have been coding actively only the last like 7 months

#

and mostly in Python but I don't even like python that much anymore

keen shell
#

Let's hack NASA now

#

Thanks for sharing, his channel looks good

wet girder
#

I have list of YouTube channels for ethical hacking topics and all the videos compined from them is like 1k hours or something

#

well most are pretty bad videos but I like 2 channels in particular

barren shale
#

3 to 4k lines of code

#

i dont believe that

#

amp seems too small for that

#

oh i see why the code is shit

#

its cuz of @fierce epoch

fierce epoch
#

no

barren shale
#

no worries nubs i was a nub at the beginning too

barren shale
fierce epoch
#

bro

#

everything

#

related to

#

maps conversion

#

i didn't touch it

barren shale
#

still

#

there's shit code in traiteditor

fierce epoch
#

the actual longest code i ever did was 3k lines long on one file

#

but

#

i wasn't using functions

#

so i was sometimes writing the same shit

#

to do the same things

#

so it was more like

#

1,5k lines or 1,7k lines

barren shale
#

you wrote

#

1.5k lines of code

#

that compiled

#

unexpected i must say

fierce epoch
#

yeah

#

took me lots of time

barren shale
#

1.5k line of shit code

#

programmers worst nightmare

fierce epoch
#

stfu shut up nub

barren shale
#

i still have the first program i made with C#

#

in 2015

#

its shit code

#

its like 600 lines

#

that probably can be done in like 100

#

i didnt know about classes

#

or methods

fierce epoch
#

u dum anyway

barren shale
#

bruh

#

can u make 2d minecraft ??

#

with a mainmenu

#

i guess not

#

nub

#

Minecraft 2D 😳

#

I need to implement emojis

silver flicker
barren shale
#

Na bruv

#

2D Minecraft not Terraria

bold rover
#

Why

barren shale
#

@orchid frigate happy now ?

orchid frigate
#

Not enough 2d Minecraft

#

0/10 would not recommend

barren shale
knotty root
#

Make it more 2D

main brook
#

is it sane to not store log in a file each time i run the program

barren shale
#

Tf does that even mwan

knotty root
#

Terraria is just not Minecraft 2D

wet girder
#

@knotty root don't use that word! It is considered offensive against certain group of people

half warrenBOT
#

⚠ Warned mat~#2021

#

🔇 Muted mat~#2021 for 3 hours

barren shale
#

mind not joining ?

wet girder
#

I am reading to physics exam about electronical components and about nuclear reactions. All of this is kinda easy ngl

orchid frigate
#

@barren shale 4d Minecraft (with mutli-verses and time travel) when

barren shale
#

that's 3d terraria dud

tropic dagger
barren shale
#

back to work

#

gonna add image UI

orchid frigate
#

4d chess is something that I never thought could exist

#

You work more in a day then I work for a fucking week hagrid

#

Me and my 30 minutes of free time to code are ashamed

barren shale
orchid frigate
#

Remember when I said I'm learning openGL?

#

I have been watching a video tutorial on it

#

I still haven't passed the 10 minute mark

#

It has been 3 days since I started watching it

barren shale
orchid frigate
#

Look after the exams end I promise I will make a better 2d Minecraft then yours

barren shale
#

@orchid frigate 😳

orchid frigate
#

terrible

#

yet amazing

silver flicker
orchid frigate
#

Did you add them as images or as real emojies hagrid

barren shale
#

Its images

#

Well if you want to add emojis

#

U gottq add images first xzibit

orchid frigate
#

Idk I mean maybe opengl has some strange emoji rendering system that lets you use emojies

#

I couldn't know with my 10 minutes of learning

orchid frigate
#

If Microsoft managed to make 4D chess we can make 16D Minecraft

silver flicker
barren shale
#

It doesnt have texture rendering

#

Why would it have emojis

orchid frigate
orchid frigate
orchid frigate
#

The "16D Minecraft" Theory

wet girder
#

I'm not coder either, I'm programmer

#

but coders cave sounds way better than programmers cave

barren shale
#

progamer

tropic dagger
#

Pogamer

#

Ogamer

#

Gamer

#

Amer

#

Mer

#

Er

#

R

#

Is a programming language.

frosty delta
#

top down infinite world can be damn performance-costlywbfacepalm

frosty delta
#

well, even when i cut down the entire generation to only camera size, it's still a bunch of calculation maximlaugh

barren shale
#

If Minecraft runs at 60 fps on ur pc

#

Then whatever ur making should too

#

Unless its written inefficiently

barren shale
#

Nothing else is running ?

frosty delta
#

pretty much, generate tiles as player moves, then generate a bunch of objects, while clear out the one offscreen

#

im finding stuff to cut down on the processing()

barren shale
#

Do you have a fps counter

#

For debugging

#

It might not be the generation

frosty delta
#

yeah, it's pretty much ~60 fps when not moving, but down to ~30 when the player does

barren shale
#

It might be the tiles that are getting generated

#

Having a script

#

Thats performance costing

#

Do you chunk tiles

#

And generate them in chunks ?

frosty delta
#

yeah, im testing out different ways to cutting down cals.

#

divide map into cells, generate in chunks, generate individual, etc. maximlaugh

barren shale
#

Generating in chunks is the best

frosty delta
#

the codes are still pretty rough draft

barren shale
#

And make sure to disable all the objects in the chunks that are not getting drawn

#

I mean all the tiles

#

And use a sprite pool

#

And you will be good

#

It should go like this

#
Get all chunks nearby --> compare them with old chunks nearby --> if chunk is in oldchunks and not in newchunks then unload chunk else if chunk is in newchunks and isnt in oldchunks then load chunk --> if loaded chunk isnt generated then generate chunk 
#

And when loading a chunk

#

Get the tiles from a pool

#

Search for object pooling on google if you want to know what that is

#

I used this system on an old project

#

Super fast

orchid frigate
#

or floats

#

i guess floats makes more sense

#

i know im amazing at terminology, you dont need to tell me

tropic dagger
barren shale
#

I said check all nearby chunks

#

Not all chunks

orchid frigate
#

yes

#

but why chunks

barren shale
#

More efficient

orchid frigate
#

all i would do is just generate some stuff as far as the eye goes and hope for the best

barren shale
#

Instead of checking the distance between the camera and every tile

#

Which could be thousands

orchid frigate
#

thats why i gave up at 3d game making

barren shale
#

You just checj between camera and a chunk

#

A chunk can have around 300 tile if youre using the normal size of 16x16

#

So 300 calculations turn into 1

orchid frigate
#

too complicated to code 0/10

barren shale
#

No its not

#

Ur just nub

#

Git gud

orchid frigate
#

i mean in unity it would be ez

#

like very easy

barren shale
#

Wnna see my chunk.java file ?

orchid frigate
#

no

barren shale
#

Its like 50 lines

#

Xd

orchid frigate
#

i cant get opengl to work so im angry af

barren shale
#

What language are u using

orchid frigate
#

c#

barren shale
#

Maybe try to use something like monogames before jumping into opengl

orchid frigate
#

my #1 most best language of all time

#

i developed in unity for like

#

a year and a half

barren shale
#

Terraria is made with monogames

orchid frigate
#

unity too easy too boring

barren shale
#

Same with stardew valley

orchid frigate
#

im sure i will learn opengl

#

in like...

#

6 years with my current schedule

barren shale
orchid frigate
#

i also have to...you know make a game engine after i learn opengl

#

then make a game

#

...

#

yea

#

i may have to pass the game part to the next generation with this schedule

#

WHY are you not making a shape damnit

barren shale
#

@orchid frigate can isee rhe code

orchid frigate
#

im following a tutorial by danc, and i think i understand the error but i dont know how to fix it

#

basically there is a shader program that is a string

barren shale
#

I dont see any errors

orchid frigate
#

but it doesnt work because there is some sort of an invisible character

barren shale
#

What shape should it be drawing

orchid frigate
#

a rectangle

#

so 2 triangles

barren shale
#

Can i see the code

#

Send it in a ```

#

Cuz im on phone

orchid frigate
#

oops

#

its alot of code

#

over 2k characters

#

but anyway here are the shaders atleast