Bor Engine | devLog #000

I want to keep track of my progress in my latest quest: creating my own game engine!

It will be built on top of openGL using C++.

I’ll leave it open source but mostly uncommented, keep that in mind if you want to check out the code: it will be messy!

Why “Bor Engine” you say?
Mainly because I was bored and wanted to create a 3D engine…soooo “Bor3D Engine”? ikr
I’ll think later about a fitting acronym…

[edit]
Almost forgot: link to the code, hosted on GitHub

Bor Engine | devLog #001
Bor Engine | devLog #002
Bor Engine | devLog #003

Bitwise Operations and Bitfields in C++

Basics of Logic:

0 && 0 == 0
0 && 1 == 0
1 && 1 == 1
0 || 0 == 0
0 || 1 == 1
1 || 1 == 1
!0 == 1
!1 == 0

Bitwise operations:

1 & 0 == 0
1 | 0 == 1

unsigned char data = 0;
unsigned char flag = 4;
unsigned char flag2 = 8;
data = 00000000
flag = 00000100
flag2 = 00001000

data = data | flag;
data = 00000100

data = data | flag2;
data = 00001100

00001100
&
00000100
--------
00000100 // now we know that flag is set into data

data = ~data;
data = 11110011

Phool v0.0.1

After one day of unity thinkering:
Messing with the rotating speed
Messing with the rotating speed

Pretty good AI movements
Pretty good AI movements

Bullets with no collision
Bullets with no collision

Every bullet is affected by gravity...
Every bullet is affected by gravity…

OnTriggerEnter is not getting triggered for every bullet...
OnTriggerEnter is not getting triggered for every bullet…

...but this works!
…but this works!