Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Wulframm

Pages: [1]
SFML projects / Re: Scrapping and learning
« on: June 30, 2014, 02:51:12 am »

Ok. Some random comments below - some trivial, some more substantial, I just wrote down everything that sprung into my mind as I looked through your code :)

I swear this is the single most helpful thing I've read in a very long time. thanks a lot! the project started out with some default code which is why winmain() and some other windows specific code is used. At the time programming with a window was very new to me and it seemed like a good idea to use it to figure out the typical structure and values that are needed to deal with this sort of thing. I'll work on replacing code with sfml to make it cross-platform. Thanks also for the article! it's looking to be a fun read.  I'll also work on getting rid of the globals as i wasn't thinking about how they could affect the program, but now that i think about it that makes complete sense. I ended up using #define as a way of defining a constant without using stack space... i think... But if there is a better way than yeah I'm up for it.

SFML projects / Re: Scrapping and learning
« on: June 29, 2014, 07:55:17 pm »
I've been thinking about doing that since it does clean it up quite a bit and make things simpler. however doesn't the original windows library give you more control?

SFML projects / Scrapping and learning
« on: June 29, 2014, 07:13:53 am »
Hey there,
         I've been developing a project of a simple character creator for a while now and have decided to start using it with SFML. Before i do so i feel i need to completely rewrite it as it is full of ungodly amount of mess and i want to start developing good coding habits. Currently the code is a mess (i think im even included some include files that im not even using) and i thought it might be a good idea to put the code here and see what advice people can offer about good habits, what i did wrong, what i did right, how i could use SFML to do this, and anything else you feel like commenting about. Alternately you can just keep going about the forum.

I imagine i did a lot of weird/wrong things but it works. Thing is im not content that it works; I want it to be clean and easy to understand as well as avoiding malpractices. Anything you can offer commentwise is appreciated. Hopefully SFML will be able to help a lot too. =3

P.S. the only way i could find to avoid a massive wall of code was to encase it in a spoiler. I've seen other people use this scroll thing to avoid that but i don't know how to do that. If someone could tell me that be awesome. sorry about the wall of code :P

(click to show/hide)

SFML projects / Re: Galactic Defender
« on: June 27, 2014, 03:58:42 am »
beat it. loved it!

General / Re: unknown type 'namespace'
« on: June 27, 2014, 01:27:58 am »
I know this hasn't been active for a while but since this problem was really getting to me and i  found the solution i thought i'd just leave it here.

I had the same issue, same errors, thought it was the compiler but it wasn't, i had in fact accidentally saved my file as .c instead of .cpp.

Pages: [1]