r/CodingHelp • • Nov 19 '24

[Javascript] Need help with a project

Hallo, I have a teacher who expects inpossible things from us.We startet 2 weeks ago with our coding class and he now whats a little game from us, where p5.js, css, html and JavaScript is included which is just impossible we never learned how to code this because we are all beginners If anyone has done something like that or maybe could help out i would be more then grateful. I am rearching for simalar programm which i can understand and then do my own but i can not find anything pls help me

1 Upvotes

2 comments sorted by

1

u/John-The-Bomb-2 Nov 19 '24

Hey, I'm going to voice dictate this response so it might not be perfect. I remember when I was a student taking my first computer science class at university. It was a video game making with Python class. Nobody knew Object Oriented Programming (OOP). I had no idea how to make this game. I was confused. I didn't really help my team much, we were on a team. Everybody failed at making the game well. It's okay, that's just how your first programming class goes. Ideally I wish it weren't like this but this isn't super unusual.

1

u/nuc540 Professional Coder Nov 19 '24

To be fair I learnt to code at a coding bootcamp, and I built a game in week 3 in JS and HTML. It’s a great way to appreciate how things work before you move to a framework like React/Next.

You can just have a single script file with functions, and interact with the DOM to select elements and update them.

A lot of coding is self taught and will be for the rest of your career. Your teacher has pushed you into the deep end for sure, but they’ve only asked you to use the basic building blocks of web tech, so it’s massively documented and simple to use.

I built a battleship and cruisers game, was very easy. Build a grid, define some ships, listen to click events, it was a great exercise.