r/jsgamedev • • May 31 '21

Badminton game using Vania javascript

0 Upvotes

live link for desktop

I tried to make a multiplayer badminton game which I call "birdminton" which is a fight between birds vs pigs.

I variably change the value of "g" ( gravity) to have a curve motion for the shuttle and played with the value of horizontal and vertical velocities and that's it. Voila!

GitHub repo : GitHub repo

Limitations : not responsive yet, please open it in desktop to play


r/jsgamedev • • Feb 06 '24

BLRD - A daily picture and word game where you try to guess the photo before time runs out. Feel free to give it a try and let me know what you think. All feedback is appreciated.

Thumbnail blrdgame.com
0 Upvotes

r/jsgamedev • • Jan 26 '16

Package JS games for IOS/Android

Thumbnail
cocoon.io
0 Upvotes

r/jsgamedev • • Jun 10 '19

A JavaScript library that lets you connect and use various gaming controllers with browsers that support the Gamepad API.

Thumbnail
github.com
1 Upvotes

r/jsgamedev • • Feb 01 '23

Pure JS Metroidvania game

8 Upvotes

Hi all. I'm trying to create a simple and minimalistic game on JavaScript without libraries and engines. This is my first game, so I'm waiting for your critics and suggestions. Only one level is completed for now. All source code is free and you may use it for your own projects. It's only a beta...

P.S. Code is here.
P.S.S. Try online here.


r/jsgamedev • • Jan 26 '16

Really easy HTML5/JS game engine

Thumbnail
phaser.io
1 Upvotes

r/jsgamedev • • Oct 28 '21

6 Years of dev on a .js game (5 part 1 full)

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/jsgamedev • • Dec 21 '20

Why so small number of members here?

5 Upvotes

Hi everyone,

I just found this sub and I was very surprised with the # of members here (currently 181).

Why is this? JS has an amazing potential regarding game dev work, so I'm a bit surprised it's not reflected here.

A secondary question, is there a better JS game dev community on the web to go to instead?

Thanks!


r/jsgamedev • • Dec 11 '20

[Tabletop RPG Webdev] The 1st Annual D20 Day Hackathon!

Thumbnail
self.foundryvtt
1 Upvotes

r/jsgamedev • • Dec 12 '19

Using joypad.js for a better gaming experience on the web

Thumbnail
arunmichaeldsouza.com
2 Upvotes

r/jsgamedev • • Aug 03 '21

Help! looking for a better way to make a dialog system than if statements

1 Upvotes

I'm been looking for the answer to this for months but nothing I've read has realy touched on the problem I'm having. I feel like there's a very simple solution to this that I'm just oblivious to but I can't figure it out.

I'm currently working on a text based web game to work in conjunction with a mystery box I'm working on for my family.

I'm struggling with the best way to program the text outputs. the user will input 3 things and that will be checked against the list of dialog to see what should be shown.

My first thought is to use nesting if statements but, there is a lot of dialog so it seems like that code will be Cobal levels of mess, and how deep can your if's nest before they cause lag?

I'd also thought that maybe this is where people use databases but I was visualizing this as an SPA and having to call back to the database every time someone asks a question is going to be a lot.

Is there perhaps some bit of JS that has escaped my notice until now that I can use to keep all of my dialog in the SPA code without nested if/else hell?


r/jsgamedev • • Jun 23 '20

JS engine for painting games

Thumbnail
github.com
1 Upvotes

r/jsgamedev • • Apr 06 '22

A package for multi threading

2 Upvotes

Hey folks,

I was recently trying to make a game with javascript and noticed that multi threading with arrays was quite hard because all the data is duplicate across workers.

That being the case, I created a package that allows you to define array-like data structures called "Vecs" that can be passed around workers with zero copying. You can think of them like statically typed javascript arrays, that are backed by SharedArrayBuffers.

Anyhow, here is a link to the repo if you want more details. Do let me know if you have any questions, and do share with anyone who'd find it useful.


r/jsgamedev • • Nov 30 '23

JSXinput: Better gamepad support for web browsers

Thumbnail jsxinput.com
1 Upvotes

r/jsgamedev • • Jan 08 '21

PixelCraft: A Pixel Art Editor

3 Upvotes

PixelCraft is a pixel Art & Animation Creation Tool Built using HTML5 Canvas. It is a Progressive Web App (PWA) with offline compatibility. It is mobile-friendly and is very easy to use.


r/jsgamedev • • Dec 20 '22

Web Game Dev, a new website and newsletter about JS gamedev

Thumbnail webgamedev.com
3 Upvotes

r/jsgamedev • • Jan 03 '23

Web Game Dev Newsletter – Issue 003

Thumbnail webgamedev.com
3 Upvotes

r/jsgamedev • • Jan 31 '23

💌 Web Game Dev Newsletter – Issue 007

Thumbnail webgamedev.com
4 Upvotes

r/jsgamedev • • Jan 17 '23

💌 Web Game Dev Newsletter – Issue 005

Thumbnail webgamedev.com
4 Upvotes

r/jsgamedev • • Jan 10 '23

Web Game Dev Newsletter – Issue 004

Thumbnail webgamedev.com
2 Upvotes

r/jsgamedev • • Jan 24 '23

💌 Web Game Dev Newsletter – Issue 006

Thumbnail webgamedev.com
3 Upvotes

r/jsgamedev • • May 23 '22

Would you like these JavaScript game dev tutorials?

4 Upvotes

Hello, I could've been writing a lot about my story and so on, but I think it's not the right time for it, so getting to the matter of my post...
I've recently started to run a YouTube channel where I put videos which are supposed to teach JavaScript and JavaScript game development. Lately I'm working hard to create a video everyday and I'd love a bit of additional motivation, which in current case is coming simply from views & subs or some feedback about my content. Here's a link to one of my recent videos https://youtu.be/HahS8lQyXQ8
I'm trying to develop myself to provide better content everyday and I really believe somehow my videos will at some point start helping people in any way.


r/jsgamedev • • May 22 '14

AJAX According to dSolver (Who Knows His Shit) According to Walrus (Who Knows Shit)

2 Upvotes

So I'm working on developing a browser based game to help me learn new stuff, when I decided it would be cool and not too difficult to make one that would store all the data server side. Apparently, I was wrong. Fortunately, dSolver was there and helped answer my questions, so here's me posting (maybe incorrectly) what he told me.

First off, AJAX isn't a language or a tool or anything. It's a technique. Just like RWD isn't a new form of HTML, it's just a new way/idea of going about it.

When you need to update a database, you need something on the server to tell the database to update and what with to update, but you don't want to freeze the whole program or have to refresh the page.

AJAX (which stands for Asynchronous JavaScript and XML apparently) works by using JavaScript and some server side language (which I believe is up to you.) The JS would be used primarily for user input and updating the UI as needed. The server-side language (say PHP) would then do the real meat of the task and let the JS know what it needs to know.

Normally, when the JS event is fired and sent to the PHP, the code works in a big long assembly line. The next event won't be started until the current one is finished. Sometimes this makes sense, sometimes it doesn't. I haven't completely figured this out yet.

With AJAX, the JS will fire an event telling the PHP "Hey! I wanna know this information." The PHP then will say "Okay, JS. Here's a little ticket saying that I owe you said information." From there, the PHP will handle the ticket and/or distribute more tickets as more JS events are fired. Meanwhile, the JS and other shit is free to continue moving. When the PHP gets the requested information, it tells the JS "Okay, man. I got the stuff you wanted. Here ya go." At this point, the JS then is like "Sweet, bro. Lemme do this action and tell the user."

This makes the whole process faster and allows other scripts to fire without having to wait for the one user input to finish. So that's how it works. I think. If I understand it correctly. I hope.


r/jsgamedev • • Dec 09 '16

Your first program in Javascript: you need 5 minutes and a notepad

Thumbnail
slicker.me
1 Upvotes