Jump to content
MakeWebGames

Project Idea: PBBG.css


Dayo

Recommended Posts

Im thinking of moving GL v2 away from bootstrap but im struggling to find a way to do it without keeping backwards compatibility with 3rd party mods. So my idea is to build a CSS framework (like bootstrap) but it being focused on PBBG's. It will have several elements specifically designed for web games.

What do people think about this idea?

  • Like 1
Link to comment
Share on other sites

Save your time - if you are going to write a generic set of css classes, you might as well continue using bootstrap.

I'd suggest perhaps using less styling in what you do, and hopefully force people to be creative and wrap their own games a little.

If you provide all the scaffolding, the games using the engine (assuming this will ship with your game engine) will end up suffering the same fate as bootstrap anyway - they'll all look mostly the same.

  • Like 2
Link to comment
Share on other sites

48 minutes ago, SRB said:

Save your time - if you are going to write a generic set of css classes, you might as well continue using bootstrap.

I'd suggest perhaps using less styling in what you do, and hopefully force people to be creative and wrap their own games a little.

If you provide all the scaffolding, the games using the engine (assuming this will ship with your game engine) will end up suffering the same fate as bootstrap anyway - they'll all look mostly the same.

The problem with BS is it dosent fully have everything you want in a game it also has a lot of stuff you dont need. Im not going to go and re-invent the wheel especially when its already made. There are frameworks like http://flexboxgrid.com/ already made that i would use to save me the several hours it would take to code the same thing.

I agree with providing the bare minimal styling but you need to give them something they can at least work with

Link to comment
Share on other sites

3 hours ago, Dayo said:

The problem with BS is it dosent fully have everything you want in a game it also has a lot of stuff you dont need. Im not going to go and re-invent the wheel especially when its already made. There are frameworks like http://flexboxgrid.com/ already made that i would use to save me the several hours it would take to code the same thing.

I agree with providing the bare minimal styling but you need to give them something they can at least work with

I'd argue that what's missing is components (which can probably be found on https://bootsnipp.com/), rather than custom CSS. Unless I'm missing something that it doesn't have - I'm actually curious, if you have a list?

Bootstrap does have a lot of stuff that most people don't need, I agree. The answer to that is https://purgecss.com/ which bootstrap even acknowledge as the answer to the problem themselves - https://getbootstrap.com/docs/5.0/customize/optimize/#unused-css

I'm not even trying to advocate bootstrap - I don't like it, and I don't use it - I just feel time spent on custom stuff for an engine that should be changed/designed by the end user, is time wasted for you and could be better spent on further enhancing your engine.

Personally, since I work with Laravel daily, I use TailwindCSS now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...