CSS stands for Cascading Style Sheets and it is almost use for styling XML (Extensible Markup Language) and HTML (Hyper Text Markup Language) documents like fonts, layouts and colors.

learn more… | top users | synonyms

1
vote
1answer
36 views

How Can I Detect Hex Edges and Corners for Catan Map?

The following messy code implements a decent hex map, but I have no way to detect edges and corners: function blankMap($scenario_array){ $hexMap = null; $hexCss = "<style media=\"screen\" type=\"...
0
votes
1answer
57 views

How can I use web browser controls for non-browser game GUI?

I'm looking for a way to get a modern browser's level of customization and rendering quality in my c# monogame to avoid using roundabout/limited/buggy GUI toolkits and to get better fonts without ...
-2
votes
0answers
56 views

Motion related databasing with SVG and SQL [closed]

In my game I have two elements moving towards each other, meeting in the middle of the screen. Something like this: (the image will be two slowly converging mouth-like objects, but it's not finished ...
0
votes
0answers
35 views

Using animation in Unity?

How can I simply implement this animation in Unity: codepen.io/epilande/pen/ZYMqNX I am ready to buy the PowerUI asset, if I have to.
1
vote
1answer
45 views

Does pausing the canvas draw restores the FPS to higher value in a HTML5 game?

I set Frame Per Second of 60 for my game. But after 1 minute it gets to a significantly lower value - around 8 FPS. Does pausing the canvas drawing restores the FPS to higher value? If it does, how ...
0
votes
0answers
92 views

How to make an object orbit around an orbiting object in CSS?

I am trying to make a moon orbit around an earth which is orbiting around the sun. This is one of my first ever projects so I really don't have a clue. I'm using CSS and currently the moon is just ...
0
votes
2answers
102 views

Progress bar for EXP in javascript

So I am making an incremental game with Javascript, HTML5, and CSS, I need to have this bar that is esentialy a div with a p element in it "fill up" as the player earns more points through sacrifice. ...
1
vote
1answer
127 views

Change screen dimensions in libgdx in HTML

Can i change the screen dimensions in libGDX in HTML? If I inspect the element (the game) in Chrome and I change canvas width or height it changes the screen dimensions, but I don't know how to do it ...
1
vote
1answer
113 views

How are CSS and WebGL coordinates related? [closed]

I'd like to build a simple framework which rendering combines web page DOM elements with WebGL, such that they're manipulable in the same coordinate space. How does the plain CSS coordinate system ...
1
vote
1answer
68 views

How to manipulate browser pixels on different mobile devices

I'm creating a board game using HTML5, CSS3 and JavaScript. It's working fine on Desktop browsers properly. But when i load it on Windows phone it's not behaving properly. The resolutions and the game ...
0
votes
1answer
299 views

How to use setInterval and clearInterval

I have a game that I am making and cannot seem to get the setInterval and clearInterval methods to work. When I debug it in the browser console it shows that the method is still being called over and ...
0
votes
1answer
326 views

How do I apply a Isometric tile to a Diamond shaped Div

I want to be able to apply my isometric tile To a diamond shaped div However I can't seem to create the isometric shaped div. Closest I got to it was this http://jsfiddle.net/P3yKr/2/ but even ...
0
votes
3answers
280 views

How would I apply my isometric art onto isometric CSS with correct Z-indexing

I have been trying to wrap my head around how to apply my isometric art into an array like so with correct z-indexing In the long run I want to be able to select a specific tile and depending on ...
4
votes
1answer
1k views

How can I add custom CSS to a Construct2 game?

I am making a simple game using Construct2. My problem is that Construct2 provides basic HTML buttons, but I want to put a background-image on my buttons. To do that, I want to add custom CSS to my ...
1
vote
2answers
341 views

Make perfect constant game animation using javascript

I tried different ways to make constant animations using JavaScript and HTML. The problem is that they are never perfect. If I want to move a square exactly 5 pixels every 50 miliseconds I would use ...
0
votes
1answer
168 views

What strategies can I use to update the visuals of my game to be more modern? [closed]

I'm making a browser strategy game. Now my problem is that I have a feeling that my design is dated. For now I have only used background colors and borders to make things look nice, but I have ...
0
votes
1answer
3k views

Draw user interface in OpenGL using web technologies

I am developing a desktop game in C++ and OpenGL. Frameworks I use are GLM and SFML. Since today I used the console window for debug messages. But I want to get rid of that and display debug ...
6
votes
1answer
303 views

How can I convert OBJ data into CSS3D transformations?

I want to convert the data in a 3D .obj file (vertices, normals, faces) to CSS3D (width, height, rotateX,Y,Z and/or similar transforms). I found a bunch of formulae and what-not, but 3D isn't my ...