Starting with Raylib

Started by Pakz, April 05, 2020, 17:50:57

Previous topic - Next topic

Pakz

I watched a youtube video on Raylib and decided to download the windows installer for that. I was surpised how easy it was to get started and most of the examples just worked. The installer, I had chosen the notepad++ and gcc compiler version, went without hickups. You can start straight away and compiling time is like in the b3d days.

I spend the day trying to get familiar. Mostly by running the examples and starting my own example repo(see link) I had not tried the C language before so this takes a little time to get to know.

I have started a bit of 3d just yet. There is a build in FPS controls camera. The 3d layer is quite light. There is no mesh creation for custom meshes. So no voxel worlds for now. This might be added later though. You draw the 3d primitives every frame like they were sprites. Adding textures or texture atlas is present. I had a 30x10x30 hollow box made of textured cubes running at 60fps.

You compile and run a file by pressing F6 in notepad++ There is a minimal amount of lines needed for a hello world.

I think I might spend quite some time with this one!

The official raylib site:
https://www.raylib.com/

My own example repo :
https://github.com/Pakz001/Raylib-Examples

round157

#1
I was curious and therefore I tried to look for games made with Raylib.

I found several interesting games.... 
:)
https://joeld42.itch.io/racer4cc

https://kellermartins.itch.io/pacman-remake-pds2

https://fabslab.itch.io/death-race

https://kodraan.itch.io/clutter-dungeon

Brucey

I've created a BlitzMax language binding for raylib (https://github.com/bmx-ng/ray.mod) which attempts to follow the API and structures as closely as possible.
Most of the example have been ported - requiring very little in the way of changes from the originals - so it's easy to follow C-based raylib tutorials in BlitzMax, for example.

guest7581

You can use Raylib with plenty of languages - here is the list with available bindings. Some of them works better tan others. The easiest to use is this lua binding. The ones for Ruby, OpenEuphoria, Go also work fine. I've had less luck with bindings for Nim and D.

Aurel [banned]

@pakz

you don't say which version of reylib you use 3.0 or older 2.6 ?

also on download page i simply don't know which one is a version with Notepad++ ?

I also download whole pack from your github page and no one of them work with my version of Mingw compiler
i receive whole set of errors including strange about for loop?
reylib is a wrapper for openGL and short a coding a lot ..so i will try again. ;D
(Y)

guest7581

Quote from: Aurel on April 18, 2020, 14:54:22
you don't say which version of reylib you use 3.0 or older 2.6 ?

also on download page i simply don't know which one is a version with Notepad++ ?

I don't think there is a special Notepad++ version. You're using Notepad++ to write C code and with C you can use any version of Raylib. When using bindings for other languages you should use the same version of Raylib that the one the bindings have been made for or your programs may not work properly.

Quote from: Aurel on April 18, 2020, 14:54:22
I also download whole pack from your github page and no one of them work with my version of Mingw compiler
i receive whole set of errors including strange about for loop?

Raylib has nothing to do with for loop. Are you sure that the error is not about something that is inside the loop?

Aurel [banned]

Who knows...maybe he use tcc,,,because i get really whole bunch of errors with his code.
(Y)

guest7581

In the first post you can read that Pakz is using GCC. Aurel, post some errors. Do the examples compile but don't run or you can't compile anything?

Pakz

#8
@aurel.

https://raysan5.itch.io/raylib

The version I am using is the 3.0 installer with mingw. This version does have that false positive right now!

I just tested a example from my raylib repo by loading it from the unzipped download folder. It compiled and ran with no errors. I am not sure what the problem might be.

edit:If you copy a example to the clipboard and paste it into a new file and run that? Do the official examples work? Maybe there is a windows admin problem where there is no file access allowed at the location where you want to run the example?

edit2:Installing raylib installer 3.0 with mingw with a windows security message(false positive) can be done by temporary turning of the windows defender. That is what I read on the raylib discord channel. The message is apearantly because mingw its software signature was expired.

edit3:The raylib installer comes with notepad++. I had to do nothing but install that raylib 3.0 mingw version and I could use notepad++ with raylib.

guest7581


Aurel [banned]

@pakz
I don't have any problems with false positive or similar security things
It simply throw out with lots of errors,what is so damn strange...
Also i don't see any notepad++....
i can try another installer again...

tomek
yes from that link...
(Y)

Aurel [banned]

raylib-3.0.0-Win32-mingw
this one not work ,or not compile your examples from
Raylib-Exemples-master from github

so i am going to try raylib_installer_v300.exe
I hope that one will work with your examples  ;)
(Y)

Aurel [banned]

#12
ok
Installer ,install directly into C creating portable folder 478MB size plus this Notepad++
well is not small but ok
version of mingw is newer than i have with other two IDEs
anyway i open this Niotepad++ then he jump with one example ,i say ok
then i looking into this freakin Npp i there is only a RUN F5 ,so i click run then i get stupid dialog frame
what to run...gee...well i never liked this Npp very much ,but hello where is a command Compile or something
similar ... ???
Now i am really pissed off,i will try use my own AurelEditC..i think that i still have it somewhere.

edit:
damn i find it under plugins...now work...oh man that Npp is not for me.

if you don't know how look here: https://www.youtube.com/watch?v=zLpaYVIoXqc
(Y)

TomToad

Maybe try Code::Blocks, what I used before switching to Visual Studio.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Aurel [banned]

Well ,after i compile and tried all examples i can say that i am not impressed with reylib wrapper.
It looks to me that old HGE.dll work far better and far more smooth and soft than this one.
(Y)