Jump to content

  • Log In with Google      Sign In   
  • Create Account


xnafan

Member Since 09 May 2013
Offline Last Active Mar 06 2014 01:58 AM

Posts I've Made

In Topic: spriteBatch.Draw slow?

02 March 2014 - 03:26 PM

Do you only have a single SpriteBatch.Begin before and a single SpriteBatch.End after your drawing?

Having many separate spritebatches with the begin/end will slow your drawing down a lot.


In Topic: 2D tilemaps "Chunk Theory".

11 February 2014 - 04:52 AM

Hi Shippou You could fiddle a bit with the chunk sizes, to ensure that you would only read/dump files from and to disk every so often. If your maps are pretty simple, the amount of data in memory shouldn't be a problem. To my knowledge this is the same way Minecraft does it. You could also cache a bigger amount of chunks, say two concentric circles worth around the one the player is currently in. I can't see this becoming a problem on modern computers. Try the sample that's for download on my Blog - I haven't experienced any problems, and the chunks there are very small, to illustrate the concept. If you make 255x255 chunks you would load a lot less and the files would still be fast to read and not too much of a strain on memory. Kind regards - Jakob

In Topic: 2D tilemaps "Chunk Theory".

07 February 2014 - 11:28 AM

Hi Mellkor smile.png

A similar question popped up on the Microsoft XNA forums a while back, and I posted some graphics to visualize the theory and a code sample with class diagram.

(scroll down to "I found some time yesterday, and coded a framework for making infinite worlds.")

 

I hope it will prove useful to you smile.png

 

Kind regards - Jakob


In Topic: Critique for first game

11 January 2014 - 07:23 AM

Yup - they are now :)

Nice game!

The gfx for the menu and introscreen is very nice.

I like the concept, but I don't get the feeling that what I do changes very much in the game.

If I move in a different direction all the small enemies quickly catch up to me, and the big enemy is very hard to outmaneuver.

I would like small explosions as well when I hit or when I am hit, so I get the reward (feedback) for aiming well.

A little sound for each shot being fired would be nice too.

 

Overall a very good first game! :)

 

Kind regards - Jakob


In Topic: Rotate sprites around a point in 2D

11 January 2014 - 06:55 AM

Glad to hear it! :)

Cudos on coming back with your solution for future reference :)

 

/Jake


PARTNERS