May 31, 2020, 09:43:21 PM

Author Topic: Starting with Raylib  (Read 566 times)

Offline Pakz

  • Full Member
  • ***
  • Posts: 180
    • My homepage
Starting with Raylib
« on: April 05, 2020, 05:50:57 PM »
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

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: Starting with Raylib
« Reply #1 on: April 06, 2020, 12:04:46 AM »
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

Offline Brucey

  • Full Member
  • ***
  • Posts: 127
Re: Starting with Raylib
« Reply #2 on: April 06, 2020, 08:23:49 PM »
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

  • Guest
Re: Starting with Raylib
« Reply #3 on: April 18, 2020, 11:59:24 AM »
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.

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #4 on: April 18, 2020, 02:54:22 PM »
@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

guest7581

  • Guest
Re: Starting with Raylib
« Reply #5 on: April 18, 2020, 03:31:46 PM »
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.

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?

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #6 on: April 18, 2020, 03:46:40 PM »
Who knows...maybe he use tcc,,,because i get really whole bunch of errors with his code.

guest7581

  • Guest
Re: Starting with Raylib
« Reply #7 on: April 18, 2020, 03:57:02 PM »
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?

Offline Pakz

  • Full Member
  • ***
  • Posts: 180
    • My homepage
Re: Starting with Raylib
« Reply #8 on: April 18, 2020, 04:00:25 PM »
@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

  • Guest
Re: Starting with Raylib
« Reply #9 on: April 18, 2020, 04:02:53 PM »
Aurel, did you download from https://github.com/raysan5/raylib/releases?

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #10 on: April 18, 2020, 07:22:33 PM »
@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...

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #11 on: April 18, 2020, 07:28:42 PM »
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  ;)

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #12 on: April 18, 2020, 08:03:47 PM »
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:

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 483
Re: Starting with Raylib
« Reply #13 on: April 19, 2020, 12:30:10 AM »
Maybe try Code::Blocks, what I used before switching to Visual Studio.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: Starting with Raylib
« Reply #14 on: April 20, 2020, 12:54:19 PM »
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.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal