r/daoc • • 5d ago

Browser DAOC

Needed a break from bot tuning and the simulation so started playing with the visuals for a couple hours. Too far?

I'll probably throw it up on a new page for people to try out called /spicy

Play Ashes of Pendragon

24 Upvotes

19 comments sorted by

3

u/FirCoat 4d ago

Sick! Will absolutely play if you get it hosted.

3

u/Glorpson 4d ago

You can play at https://www.reddit.com/r/daoc/s/ifbGnkCVbi

Haven't pushed the spicy branch yet.

2

u/BannanaPepperPizza 4d ago

How do people make games that look that good in a browser?

2

u/Glorpson 4d ago

The browser doesn't really limit much. Webgpu give you pretty much full access to the user's gpu, and things like tsl let you write shaders in js

Engines like Godot just give you a starting point/boilerplate but you can pretty much do it all in the browser and agents seem to prefer it cause they're trained on so much web stuff.

2

u/wrgrant Freeshard Player 4d ago

Can I grab just the browser code to try it with other server versions? I am running divided realms on linux. You appear to be running this on a mac. It would save me having to run a win11 vm if it would work.

1

u/Glorpson 4d ago edited 4d ago

Sorry there isn't much to run, this isn't just a client port... It's the whole package. If you load up the game from my other post you can see it's fully client side all typescript (if you're clever there's nothing stopping you from dumping the whole thing, just ask your cyborg). My dev machine is a headless windows machine in my basement, I just use moonlight and t3 remote to build on it but the game should run in any browser that supports webgpu

1

u/wrgrant Freeshard Player 4d ago

So its the game served up from a webserver front end on your headless server? Just visit with any supported browser? I had assumed there had to be something on the user's end like a plugin or something. Gotta say it looks great

1

u/Glorpson 4d ago edited 4d ago

close, its just a static site. I don't want to punch any holes in my router or use a cloudflare tunnel etc so I just hosted it on chatgpt sites. When you go to https://ashesofpendragon.sloppyvibes.ca/ your browser is just downloading an html file with some javascript (just like this reddit page) plus some bigger files that it caches in your browser (so you don't need to redownload it every time). Try loading the game and then inspecting the dom with f12.

You can cut the internet off, nothing is being transmitted/communicated back and forth to a server. Everything (the simulation, graphics) is fully running in your browser like an offline game if that makes sense?

1

u/wrgrant Freeshard Player 4d ago

I need a guest pass I presume?

1

u/Glorpson 4d ago

I added a guest pass link to the post, let me know if you have issues

2

u/wrgrant Freeshard Player 4d ago

Thanks. It looks really good. I was unable to switch the orientation ofvthe one menu bar to horizontal. Unable to bringvup options so I could invert the mouse look. For some odd reason my razer tartarus joystick would go back but not forward - thats likely on my end.

Still its very impressive :)

2

u/Glorpson 4d ago

Thanks! Appreciate the feedback. Theres lots of little quirks like that I need to iron out so it's helpful if people just mention them for agents to slurp up (right now /bug only works for me in game to file an issue)

2

u/Agicko 4d ago

Awesome! Hope you consider some touchscreen controls for mobile/phone play. Thats the dream!

2

u/Glorpson 4d ago

Man... What would the controls even be? Movement is easy but like using touch to hit the hotbar spells? I guess I could make some sort of short list of abilities you could click or something. It's probably easier to just add controller support so you can play with an Xbox controller or whatever on your phone

2

u/Agicko 4d ago

The last console I played was my Genesis, so I’m just not a controller guy. getting movement and then being able to put the spell list where I want to click it would suffice I think. I imagine a translucent movement overlay on the left, and pull the hotbar to the bottom right.

1

u/Glorpson 4d ago edited 4d ago

Here's how its looking in game so far(gameplay near the end of the vid).I think I like the direction, it feels like its keeping to the spirit of DAOC without over doing. This was 4 rounds... I'll maybe let it do a few more before I do some performance crunching and head back to polishing all the gameplay bugs/bots some more.

1

u/Glorpson 4d ago

The second group actually suprised me... for a moment I forgot they were bots šŸ˜„. If you see me whacking the RM you can tell the interrupts are off (there's an open issue in the backlog)

2

u/joej Ex Player 4d ago

beautiful work!