Easy Web Games in C

Easy Web Games in C

Tsoding Daily

11 месяцев назад

58,266 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@a.lollipop
@a.lollipop - 25.09.2024 23:52

the emscripten was disappointing to me as well, im looking for a simple way to build for web for the game engine im creating and i wanted to avoid emscripten as much as possible- I'll try to just do something similar to what you did here and see how that goes :3

Ответить
@GravInstinctz
@GravInstinctz - 10.09.2024 14:24

im getting weird behaviour with GetTime() function of raylib when i use webassembly. It returns negative values for me and i can't really measure delta times. My goal was to measure elapsed time for some algorythms i wrote. Anyone else encounted similiar confusion?

Ответить
@cnfreitas
@cnfreitas - 08.08.2024 20:26

The whole effort to make it work worthwhile, however, even if this more direct approach it does not seems to pay off. I learned a lot anyway. Thanks.

Ответить
@edinetgrunhed6000
@edinetgrunhed6000 - 02.08.2024 13:17

what is the font did you use? i like it

Ответить
@itachielarbi3304
@itachielarbi3304 - 19.04.2024 20:57

You can use raylib with pascal 😂😂😂😂

Ответить
@LeFede
@LeFede - 15.04.2024 08:08

why it has to be soo difficult >:(

Ответить
@revenevan11
@revenevan11 - 04.04.2024 00:33

Your take on Electron is absolutely based.

Ответить
@wallacestanley8750
@wallacestanley8750 - 12.03.2024 01:46

🍀 'PromoSM'

Ответить
@felipesharkao
@felipesharkao - 05.03.2024 05:55

Locan man suffers from milliseconds

Ответить
@kwyrky
@kwyrky - 28.02.2024 02:14

Wabt = Wabbit = Web 🐰

Ответить
@jiraibozo
@jiraibozo - 25.02.2024 21:56

bro said "Please save me Linus Torvalds"

Ответить
@ecosta
@ecosta - 21.02.2024 15:04

So it was easy until we decided to add a third-party library... Classic software engineering... EDIT: classic modern software engineering...

Ответить
@KingBobXVI
@KingBobXVI - 17.02.2024 13:18

I think this approach might work really well when building a game/engine from scratch, but it's not very good for porting.
The trick imo is to minimize the number of exported functions so you don't have to do so much in javascript. For canvas, this is kind of useless, because you're really just using the C code to drive the Javascript - the C isn't really doing anything. But if you were using WebGL, you could use WASM to build the various buffers you need, and send them all over in as few draw calls as possible.
It's similar in concept to what I've been wanting to do for a project (WASM+native), which I'll be starting soon - this has been a helpful demo and example of how to do it.

Ответить
@dnkreative
@dnkreative - 15.02.2024 14:03

Web ass and wasm twat. Interesting.

Ответить
@pat1938
@pat1938 - 14.02.2024 00:19

Hey, why do you daily drive debian? I'm curious of your opinion.

Ответить
@ongayijohnian8787
@ongayijohnian8787 - 13.02.2024 22:13

Do you guys see "Porn Folder 59 gigs on his bottom status line 😂"

Ответить
@cron3x
@cron3x - 08.02.2024 11:32

Did he mention why he didn't used clang anymore?

Ответить
@nahuellescano
@nahuellescano - 08.02.2024 06:01

I wish I could see twitch chat, :D

Ответить
@theevilcottonball
@theevilcottonball - 08.02.2024 02:51

Never tried compiling C to wasm, now I can't wait.

Ответить
@boccobadz
@boccobadz - 08.02.2024 02:39

I like Tauri but it's for Rust. You can even enable usage of dev tools in production builds, if you want to give them to your users.

Ответить
@edcarlo
@edcarlo - 07.02.2024 08:45

I see "Porn folder 58Gb"

Ответить
@LuizFernandoSoftov
@LuizFernandoSoftov - 07.02.2024 07:12

And something like react native does? A bridge between stuff...

Ответить
@DanelonNicolas
@DanelonNicolas - 07.02.2024 05:42

emscripten must die.

Ответить
@DaviSimDoP
@DaviSimDoP - 07.02.2024 02:25

You misspeled "hard" in the title

Ответить
@KalinRangelov
@KalinRangelov - 07.02.2024 01:21

"Web version of Raylib should be implemented in JavaScript". 
So the proof of concept failed.

Ответить
@kevinkkirimii
@kevinkkirimii - 06.02.2024 23:13

Tsoding's surname is Raylib

Ответить
@万宇阳
@万宇阳 - 06.02.2024 21:59

This approach is spirit of tsoding, not raylib. You should just get rid of Raylib at all. You shall not implement raylib APIs but invent your own APIs. Or just create a language takes the spirit of C but simpler than C and compiles to multiple platforms as you demonstrated. You majorly use C because other languages are worse. You don't like C as well. You do abstract programming, not programming in C or any language.

Ответить
@weekipi5813
@weekipi5813 - 06.02.2024 18:59

It's so weird to see tsoding coding html5 code 😂

Ответить
@hubstrangers3450
@hubstrangers3450 - 06.02.2024 17:33

Thank you....certainly education...."never complicate things until, complicate complicate things"....wise folks yester years stated...

Ответить
@Nate77HK
@Nate77HK - 06.02.2024 16:04

I am super sad the snake game streams are lost - that approach to multiplatform games is something I'd be interested in trying myself

Ответить
@Nate77HK
@Nate77HK - 06.02.2024 15:53

tsodinChad is always on top

Ответить
@hbobenicio
@hbobenicio - 06.02.2024 15:25

Would an implementation of raylib in js be efficient enough? Can it also be implemented in C/Wasm without libc and make it become the raylib implementation (avoiding libc bloat and restricting js only to web api calling)?

Ответить
@magikworx3748
@magikworx3748 - 06.02.2024 11:09

Super impressive. Way cool engineering.

Ответить
@SoniqueChannel
@SoniqueChannel - 06.02.2024 08:42

go touch women

Ответить
@BobbyRunout_EW
@BobbyRunout_EW - 06.02.2024 07:22

Ray is a super genial friendly and approachable guy (also he's the real deal in terms of how long and how hard he's been working on raylib, most of that time with little or no funding). I recommend just connecting with him if nothing else.

Ответить
@flexzuu
@flexzuu - 06.02.2024 04:08

i would love to see webgpu thrown in the mix

Ответить
@MonkeeSage
@MonkeeSage - 05.02.2024 23:11

Seems kind of pointless to use wasm here at all since you're just writing a js lib that actually does the work and the wasm is just some function names and a little bit of static data.

Ответить
@BeenYT
@BeenYT - 05.02.2024 21:56

what do you use to zoom in on the text?

Ответить
@jadBN
@jadBN - 05.02.2024 21:01

Can you make a video about the hardest problem you solved in c?

Ответить
@troruaz
@troruaz - 05.02.2024 19:15

please please please tweet your Sweet Home Alabama riff!! dude, you are a multi-cultural unicorn. Where in the world did you even hear that song? I grew up in that region of the US and I never thought that song would make it out of the deep south much less across the Atlantic ocean.

Ответить
@RuslanQurbanov-co9hr
@RuslanQurbanov-co9hr - 05.02.2024 15:09

in st actually,you can patch scroll and a lot of other functionalities,that's how suckless applications work mr.Zozin

Ответить
@Tigregalis
@Tigregalis - 05.02.2024 10:29

The promise of Tauri + Servo is Electron, but shipping just the parts of the browser that you actually use. Electron, no, you have to ship the whole browser. I think you even ship Node.

Ответить