Page 2 of 2

Re: Oh God so many tiles!

Posted: Fri May 21, 2010 4:29 pm
by dandymcgee
XianForce wrote:But what Ginto posted is still good practice. Because what if it ISN'T NULL? I use that practice all the time =p
I stand corrected. 8-)

Re: Oh God so many tiles!

Posted: Fri May 21, 2010 6:13 pm
by spirit bomb!
THANK YOU!!!! for all the responses. I now see that my problem was that i was ignorant. I should know that rendering stuff is a heavier load in terms of calculations.
So i will only draw what is on screen and, if need be, make my game window smaller.

Also as a side note... i was going to use a mapmaker that i did not program, because im a lazy b@$$ TARD. I was going to use "mappy". Any one recommend any other map editor? or use mappy?.....just curious

Re: Oh God so many tiles!

Posted: Fri May 21, 2010 6:19 pm
by Bakkon
XianForce wrote:But what Ginto posted is still good practice. Because what if it ISN'T NULL? I use that practice all the time =p
That's the point. The 'delete' operator checks for non-null.

Re: Oh God so many tiles!

Posted: Fri May 21, 2010 6:22 pm
by dandymcgee
Bakkon wrote:
XianForce wrote:But what Ginto posted is still good practice. Because what if it ISN'T NULL? I use that practice all the time =p
That's the point. The 'delete' operator checks for non-null.
He means if it was never set to NULL but was already delete'd. If you call delete on a pointer to random memory.. problems WILL arise.

Re: Oh God so many tiles!

Posted: Sat May 22, 2010 9:39 pm
by eatcomics
spirit bomb! wrote:THANK YOU!!!! for all the responses. I now see that my problem was that i was ignorant. I should know that rendering stuff is a heavier load in terms of calculations.
So i will only draw what is on screen and, if need be, make my game window smaller.

Also as a side note... i was going to use a mapmaker that i did not program, because im a lazy b@$$ TARD. I was going to use "mappy". Any one recommend any other map editor? or use mappy?.....just curious
I'd say make your own, they aren't too difficult, and it will be easier to understand the files you are loading in and they will be more customized to your game :D

Re: Oh God so many tiles!

Posted: Sun May 23, 2010 12:19 am
by Live-Dimension
eatcomics wrote:
spirit bomb! wrote:THANK YOU!!!! for all the responses. I now see that my problem was that i was ignorant. I should know that rendering stuff is a heavier load in terms of calculations.
So i will only draw what is on screen and, if need be, make my game window smaller.

Also as a side note... i was going to use a mapmaker that i did not program, because im a lazy b@$$ TARD. I was going to use "mappy". Any one recommend any other map editor? or use mappy?.....just curious
I'd say make your own, they aren't too difficult, and it will be easier to understand the files you are loading in and they will be more customized to your game :D
By the time you find out the file structure of the editor and code it in to work with your game, figure out the program, and get your game working around it, it would almost be quicker to simply write the program. Not only that, but you can always extend your editor and with minor changes use it for other games you create.

Atleast, that's my thinking =D

Re: Oh God so many tiles!

Posted: Sun May 23, 2010 3:43 am
by zeid
I say when it comes to a map editor what to create/use depends a lot on the game. For something like a heavy physics based game you would probably want it running inside your engine/game so you can regularly test out levels without any difficulty. For my iPhone game I only needed something simple however it wasn't the kind of game that map editors already exist for as it is a bit unique in the level layouts. So I had to make my own editor. I didn't want it to drain time from the real game making so I used game maker. The benefit of my approach was it took less then a night for me to get my editor up and running as I didn't have to code a whole heap of stuff such as GUI interfaces rather I could just snap it together. Since creating it I have added a few extra features as problems or needs arrose and am thankful that I didn't let it become a big time sync.

From a learning perspective I would say create your own map editor. Try and plan out what needs your project has and take an approach suited. If time is a factor it might be worth looking into using someone elses, but then you will have to make sure that it works well with your game, and learn the tools anyway. On the other hand it might provide more functionality then you would have put in and thus you could get better maps from it with a lot less effort.

Re: Oh God so many tiles!

Posted: Sun May 23, 2010 4:49 am
by programmerinprogress
And that's what spearates us from the animals :lol:

just because you think something is going to be NULL, doesn't mean it is, also, why on earth would you want to destroy your object unless you were calling delete anyway, that's kinda the point of delete, it's a lot more readable than ~SomeClass()