#2D game development from scratch

1 messages · Page 1 of 1 (latest)

visual smelt
#

hi , I'm a hobbyist and I want to learn making a game from scratch. I'm aiming for 2D games for now but I don't know what math topics should I learn in order to write a 2D engine from scratch? I'd appreciate if you list all of math topics that I need to learn for said purpose.

honest drumBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Hi , I'm a hobbyist and I want to learn making a game from scratch. I'm aiming for 2D games for now but I don't know what math topics should I learn in order to writing a 2D engine from scratch? I'd appreciate if you list all of math topics that I need to

g game logic and implement game mechanics. Can someone guide me on what math topics I should focus on for 2D game development?

Response:
For 2D game development, you will need a solid understanding of linear algebra and trigonometry. These mathematical concepts are essential for handling transformations, collisions, physics, and more in your game.

Linear algebra is crucial for manipulating objects in a 2D space. You will need to understand concepts like vectors, matrices, transformations, and how to perform operations such as scaling, rotation, translation, and shearing.

Trigonometry is important for dealing with angles and rotations in your game. You will use trigonometric functions like sine and cosine to calculate positions, velocities, and orientations of objects in your game world.

Additionally, having a basic understanding of calculus can also be helpful for certain aspects of game development such as physics simulations and animations.

Overall, focusing on these math topics will provide you with the necessary tools to write game logic and implement various game mechanics effectively in your 2D games. Good luck with your learning journey!

crisp loom
#

Depends how far you want to go

#

for your very first game an "easy" place to start is with java swing

#

that lets you make a window and draw pixels to the screen

faint glade
#

They mean mathematically, not programming wise.

#

This is a good resource: Foundations of Game Engine Development, Volume 1: Mathematics.

visual smelt
faint glade
#

As in coding or mathematics first? Both work, you'll be doing a lot of experimenting either way.

crisp loom
#

but only so much as some things can be "pits" and you dont get to what you want

#

or you might be presented something as a "starter" thing but not have the actual prerequisite knowledge

#

so, yes it matters a lot for people making stuff for you to learn from

#

from your perspective as long as you are learning new things and understand what you have learned its fine

dry oxide
#

Well if you're just asking how far you need to go in math to make games... For basic games you often just make up the math by your own. There isnt much math you need to know unless you want to implement some high-level physics. Collision detection and gravity is basically all you need for basic 2D games. Rest like making damage to enemies is first grade math

naive vapor
frail root
#

Imo.

Learn what a scene graph or DOM are. Most 2D systems have something like that. Its a TREE structure where things are organized hierarchically.

Next learn what a "shader" is. You prolly wont get to touch them for a while but the learning will help you understand what kinds of things are optimal in a game system(but the short not so useful answer is independent pieces that can all be handled independently)

Next is "animation" or more generically "transitions" or even more generically "tweening" you can find plenty of informative freya videos for that.