Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411737 Posts in 69681 Topics- by 58649 Members - Latest Member: PikTheArchon

December 08, 2024, 04:58:38 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityDevLogsThe Mission - spider bot side-scroller
Pages: 1 ... 5 6 [7]
Print
Author Topic: The Mission - spider bot side-scroller  (Read 31413 times)
Schrompf
Level 10
*****

C++ professional, game dev sparetime


View Profile WWW
« Reply #120 on: December 29, 2021, 02:30:34 AM »

I, for one, think it's amazing that you can port a custom C++ engine to WebGL/WebASM so seemingly easily. Gives me hope for my personal stuff, should I ever do something productive again.
Logged

Snake World, multiplayer worm eats stuff and grows DevLog
Shephf
Level 1
*



View Profile WWW
« Reply #121 on: December 29, 2021, 02:37:11 AM »

Ye, it's really amazing that's so easy to do, and like the render, the physics with all that floating point stuff, even the scripting, like lua virtual machine it's all running in js and it's fast Smiley Emscripten folks did an awesome job polishing things to this level
Logged

JobLeonard
Level 10
*****



View Profile
« Reply #122 on: December 29, 2021, 03:23:43 AM »

So I've decided to try to make a Web Assembly port of the game, just for fun. And suddenly
everything just worked, like the renderer, physics, lua scripting, even input and audio! You can even
go to options menu and change resolution and that actually works Smiley And performance-wise it's pretty good:





Here's a link to the game - https://themission1.vercel.app/

And here's a link to unreleased/unfinished water level - https://themission2.vercel.app/
WAT

That's amazing!
Logged
Shephf
Level 1
*



View Profile WWW
« Reply #123 on: December 29, 2021, 04:10:54 AM »

Ye, IMO emscripten is super good for things like game demos, when someone just wants to check the game out without installing it. But you really don't want to play the game in the browser I guess.

BTW, I wonder how hard would it be to make DOOM 2016 emscripten port Smiley I mean WebGL2.0 / OpenGL ES 3.0 does have compute shaders, VAOs, floating point textures, texture arrays, etc. so technically it's possible to run DOOM's clustered forward renderer with all those light / reflection probes and post processing effects. i.e. OpenGL 4.5 -> OpenGL ES 3.0 is possible to some extent, but for DOOM Eternal there's definitely no way because of Vulkan (or it's just super hard).

P.S: There's Doom3 port BTW - https://wasm.continuation-labs.com/d3demo/ 60fps, fully playable Smiley

Logged

oahda
Level 10
*****



View Profile
« Reply #124 on: December 29, 2021, 06:10:03 AM »

Welcome back! Very cool Grin
Logged

Shephf
Level 1
*



View Profile WWW
« Reply #125 on: December 29, 2021, 06:31:20 AM »

Welcome back! Very cool Grin
Thanks Smiley I'm back but not for long I'm afraid, no time for gamedev...
Logged

Shephf
Level 1
*



View Profile WWW
« Reply #126 on: January 07, 2022, 02:22:11 AM »

So, I've decided that I need to try something new in this game in order to proceed.
I've implemented very basic navmesh, just one area type and offmesh links.
Navmesh agent is working pretty well already. I'm looking into changing the gameplay, I want AI
to control the spider, I also want to make it smart enough to traverse complex level geometry.





It's just that navmesh-based AI is sort of a standard in 3D games, but in 2D side-scrollers almost nobody does it
and I wonder if I'll be able to make it look good. I'll post more progress videos later (I hope) Smiley
Logged

oahda
Level 10
*****



View Profile
« Reply #127 on: January 07, 2022, 02:55:54 AM »

Looking good! Can't wait to see the spider crawling and hopping about Blink
Logged

Shephf
Level 1
*



View Profile WWW
« Reply #128 on: January 08, 2022, 01:48:54 AM »

It's still very incomplete, but I can already see that this idea will work out well.





Before polishing stuff I want to try one more thing - navmesh the walls and the ceiling, i.e.
it would be cool if the spider could climb to the ceiling and jump off down.
So generally this AI spider != player spider, it'll have far more movement freedom and, well, the laws of
physics will sometimes be violated for him, but I think it's ok.
Logged

JobLeonard
Level 10
*****



View Profile
« Reply #129 on: January 08, 2022, 06:22:07 AM »

Players are used to that anyway Smiley

I'd rather have that than "stuck in frustrating ways because the AI is dumb"
Logged
Shephf
Level 1
*



View Profile WWW
« Reply #130 on: January 08, 2022, 06:58:00 AM »

Yeap, it's better to just move the AI in a predictable way than obey the physics and have a chance for it to get stuck. After playing hours of DOOM 2016/Eternal I can tell they probably do this too. I mean enemies there move in a very predictable way and they're super stable, they get you wherever you are on a map, most probably they just navigate the navmesh / jumplinks like kinematic bodies and raycast for obstacles or something, i.e. dynamic physics there is probably kinda "fake", but it works well.
Logged

oahda
Level 10
*****



View Profile
« Reply #131 on: January 08, 2022, 07:39:57 AM »

Agreed, looks good in the video!
Logged

Schrompf
Level 10
*****

C++ professional, game dev sparetime


View Profile WWW
« Reply #132 on: January 10, 2022, 01:09:42 AM »

Seems to work great, but did I understand this correctly: you want to take away player's direct control and replace it with the spider being controlled indirectly only?
Logged

Snake World, multiplayer worm eats stuff and grows DevLog
Shephf
Level 1
*



View Profile WWW
« Reply #133 on: January 10, 2022, 06:05:48 AM »

Yes, I'm thinking about changing gameplay entirely. Don't have anything specific in mind yet. I would like to focus on AI more, like try to make a pretty smart and dangerous enemy and as for the player... well, m.b. the player will not be a spider-bot at all, m.b. he will be just some guy trying to survive in this dangerous world.
The thing is, I want to make gameplay fun and as of current game state, the gameplay... it's just not fun honestly. Like take away all the "black-and-white" art and the spider web and physics and it's just your regular "jump and shoot stuff" platformer.
Logged

Schrompf
Level 10
*****

C++ professional, game dev sparetime


View Profile WWW
« Reply #134 on: January 11, 2022, 02:45:00 AM »

Hm. I see your point. I had fun, though, and I can't really imagine how pointing the spider around is going to make it better.
Logged

Snake World, multiplayer worm eats stuff and grows DevLog
Shephf
Level 1
*



View Profile WWW
« Reply #135 on: January 11, 2022, 10:24:00 PM »

Hm, m.b. it's just me who got used to the game too much and can't tell if it's fun or not. I guess I need to think about it...
Logged

Pages: 1 ... 5 6 [7]
Print
Jump to:  

Theme orange-lt created by panic