#2D game development from scratch
1 messages · Page 1 of 1 (latest)
<@&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>.
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!
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
They mean mathematically, not programming wise.
This is a good resource: Foundations of Game Engine Development, Volume 1: Mathematics.
You can also start with: https://gamemath.com/ .
tysm
speaking of programming part, does the order of learning topics matter?
As in coding or mathematics first? Both work, you'll be doing a lot of experimenting either way.
a little
thx
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
tysm :D
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
Understanding game loops and deltatime is pretty important, I think
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.