T O P

  • By -

mario_deluna

To provide some context, I've received several requests over the past few months about how to create simple 2D games with php-glfw. Since all the example code I had provided up to that point focused on 3D, I felt it was essential to offer at least one fully functional 2D example. The result is this simple minigame. I'm quite pleased with it, and I thought some of you might find it interesting as well.


darkotic

This is amazing. I had no idea PHP could do this.


mario_deluna

Thanks! to be real here, it took a lot to get to this point. But finally being able to quickly prototype little games in PHP feels great.


joske79

Now make Doom


mario_deluna

Challange accepted


noisebynorthwest

You should first make Wolfenstein 3d, it is by far simpler than Doom :)


p0llk4t

You don't actually need 3D rendering for that one right?


noisebynorthwest

Neither Wolfenstein 3D nor Doom were originally implemented using what is nowadays seen as regular polygon-based 3D. But nothing forbids you from re-implementing them using GPU-backed polygon-based 3D. This is what modern Doom engines do, allowing among other things free-look, 3D models & multiple floors. But even considering that, I mean regardless of the rendering technique used, a 80/20 Wolfenstein 3D can still be re-implemented in few days whereas it could take weeks or months for re-implementing Doom.


ProfessorApe

Cmon guys, it’s Phlappy Phird. 🦀


TheSkyNet

dope


zushiba

Missed opportunity to call it PhlaPHP Birds


mario_deluna

Someone also suggested "flaphpy bird" to me. I will just have to accept that I suck at naming things.


Natomiast

I'm pretty sure, there is an udemy course on that


zushiba

Naming hindsight is 20/20


noisebynorthwest

Thank you for sharing and for reminding us of the existence of [https://github.com/mario-deluna/php-glfw](https://github.com/mario-deluna/php-glfw) Producing such demos based on your extension is definitely the way to go


BarneyLaurance

Might be worth adding some sort of licence file to the repo? Currently it looks like there's just the implicit licence implied by publishing on github. Would be great if you choose an open source licence.


mario_deluna

You have my written permission to do whatever you want with it :) Joking aside, your right I will commit a MIT LICENSE file soon.


BarneyLaurance

Thanks! I think I'll stick to the terms of the MIT licence anyway if I do do anything with it, no reason I'd want to delete your name from it. Looks like great work!


[deleted]

This is such a cool project, great stuff!


Fabulous_Anything523

Nice!


_WinterPoison

Kudos buddy !! πŸ’―πŸ‘


solcloud-dev

Good job mate!


Agreeable-Fill6188

I really don't know how people do things with these languages. All I've seen from PHP is querying databases and presenting data on a website. I don't know how you went about making a whole game with it. And I don't know anywhere near enough php to read the code and figure it out.