Search found 7 matches
- Mon Feb 03, 2014 6:15 am
- Forum: Programming Discussion
- Topic: Structs? Unions? Classes?
- Replies: 5
- Views: 5531
Re: Structs? Unions? Classes?
Getters and Setters are just an interface, and have a place. That does not mean you have to use them everywhere , but doing so is considerd good practice ; If for no other reason that if you must change anything, the logic is all in the function/method calls. I don't always have access to a class ke...
- Fri Jan 31, 2014 11:13 pm
- Forum: Game Development
- Topic: 2D RPG Engine
- Replies: 153
- Views: 117517
Re: Simple 2D RPG Engine
Seconded.
- Thu Jan 30, 2014 5:42 pm
- Forum: Programming Discussion
- Topic: Programmer's Education Index
- Replies: 63
- Views: 74381
Re: Programmer's Education Index
Do they not offer "computer engineering?" Computer engineering is the midpoint between the purely software CS degree and the purely hardware EE degree. You learn a fair amount of hardware and computer architecture, and a fair amount of software (you never go above C++ in the software abst...
- Mon Jan 20, 2014 8:37 am
- Forum: Programming Discussion
- Topic: SDL keystates help [SOLVED]
- Replies: 4
- Views: 3231
Re: SDL keystates help.
You are welcome.Goodluck with your editor!
- Sun Jan 19, 2014 9:50 pm
- Forum: Programming Discussion
- Topic: SDL keystates help [SOLVED]
- Replies: 4
- Views: 3231
Re: SDL keystates help.
As for the wheel, you can check to see if it is moved, and do something like.. current_tile += event.wheel.y; // y is 1 if up and -1 if down. while(SDL_PollEvent(&event)) // while events waiting, get a new event { if(event.type == SDL_MOUSEWHEEL) // check if this event is what we want { if(event...
- Sun Jan 19, 2014 9:23 pm
- Forum: Programming Discussion
- Topic: SDL keystates help [SOLVED]
- Replies: 4
- Views: 3231
Re: SDL keystates help.
You should be using events, not state. More complicated designs can peek and pump events and pass them around. Without seeing your use of the SDL API I can not help any more then this. while(SDL_PollEvent(&event)) // while events waiting, get a new event { if(event.type == SDL_MOUSEBUTTONUP) // ...
- Sat Jan 18, 2014 12:33 pm
- Forum: General/Off-Topic
- Topic: Official "Hello, World! (I'm new!)" thread
- Replies: 821
- Views: 629491
Re: Official "Hello, World! (I'm new!)" thread
Hello all, I thought I would place my official hello here. I am a C/C++/C# Programmer and Lua scripter, and though I have followed AiGD way before it had even a website, I never managed to make an account on the forums. Here is my post that sparked my registration: http://forums.elysianshadows.com/v...