Welcome to GDNet’s For Beginners discussion forum! If you’re new to game development looking for some help navigating the many choices and challenges of the field, this is the place for you. If you’re a seasoned pro looking to pass on some of your wisdom to the next generation, this is a great pla…
All I want to do is click and drag a sprite
else if (event.type == SDL_MOUSEBUTTONDOWN||SDL_MOUSEMOTION) {
if (event.button.button == SDL_BUTTON_LEFT) {
int mouseX, mouseY;
SDL_GetMouseState(&mouseX, &mouseY);
cout << mouseX << " " << mouseY <&…
Hi there!,
I'm sure an expert will know straight away what I'm going to ask. Nevertheless I'll ask it anyway as I would like to have this clear in my mind, as it has been a very confusing topic for me.
So far I've been working with per vertex normals rendering simple meshes and in some cases even hav…
Hey everyone, I’m FunkyWizard, and I’m working on a project to help me get into a game programming university. It’s my first real game, and I’ve only been learning C++ and SFML for about a month now.
The game is called Murble Dungeon, a top-down 2D turn-based game where you control a marble that bou…
Hello sorry about the list format first post here.
1. About Me & Project Goals
1A. I primarily work with C for embedded systems but want to expand my knowledge into more languages and learn about game development with this project.
1B. This is my first time developing a game engine, and I’m doing …
I want to use clock ticks in seconds to move the tortise/hare in the toretise/hare race game. I am new to this concept so I need a little help.
So I am trying to make a Troop battle game. I am new to libGDX so I just want some help with some basic stuff like player mouvment sounds and graphics.
![panzer blitz](https://uploads.gamedev.net/forums/monthly_2025_01/f3561414acc94dab920625a5283da69b.pbmap.bmp)
I am working on a panzer blitz game. Here is my map and some tokens. I just want to know how to move the tokens with the mouse.
I am working on a sorting program that sorts batting averages and names, and prints them to the screen. I am trying to get the sortData function to work in the main function
#include <iostream>
#include <string>
using namespace std;
class Average
{
private:
string name[12];
dou…
I am attempting to count the iterations in a linear search
#include <iostream>
using namespace std;
int cnt = 0;
int searchList(int stdList[], int numElems, int value)
{
int index = 0;
int position = -1;
bool found = false;
while (index < numElems && !found…