osric.uk

OMG! I'm so awesome! Over at my WebGPU page I'm successfully rendering a generated landscape! (Or, at least, I am tonight, who knows what state it will be when you're reading this) (hello you!)

The landscape is basic diamond-square, and the rendering code is lightly adapted from WebGpu Fundementals (a very useful tutorial site that's pitched at exactly my level of understanding).

I'm using "build a game" as an excuse for all this 3D stuff, but I'm still not convinced. However, I'm going to roughly follow Trystan's Roguelike Tutorial, at least in terms of order of doing things and maybe rough mechanics.

That implies getting user input working (starting with keyboard, but I'd like to do mouse interaction too), and then the whole actors thing.

As far as graphics go, I'm going to look at Phong shading next, design some trees, update lighting, think about a sky box, overlay an html ui.

The code needs a bit of a tidy too. Right now, for obvious reasons, the graphics stuff is front and center. That needs be properly put into its own module (and maybe I should be thinking of 'components' and Entity Component Systems).

However. That's all later. Right now, whooop! It's working!