2D Map Culling

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,586
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 13, 2009

I have been interested in developing my own personal, yet simple 2D engine for some time now.

In this video I showcase the tile-based map system and show how it has been optimized to draw only the tiles with at least one pixel in the given viewport. The other viewport shows how the game would look from another perspective.

Performance improved from 24 to 60+ fps with no map size restriction.

Category:

People & Blogs

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ScriptedPixels)

  • Great work! Might I ask where you got the sprite sheets and tile sheets?

  • @p011uX0 A friend of mine made all the sprites.

  • where are those graphics from? They are beautiful.

  • @ghillieLEAD A friend of mine made the graphics which are heavily influenced by Pokemon.

  • ah sorry, mouseslip, wanted to give you 5 not 4 :D.

    Really smooth tile engine :).

  • @SL1PP3R5 Thanks!

see all

All Comments (30)

Sign In or Sign Up now to post a comment!
  • i need help importing tilesets and trainer sprites can anyone help me?

  • @ScriptedPixels the tall grass sprite is 1:1 copy of pokemon leaf green tall grass sprite

  • @ScriptedPixels Any way for you to release them? They are quite amazing!

  • That is amazing, do you mind if I take a look at the source?

    I've been having problems with improving fps for quite some time in VB and have been thinking of switching to C++ or java to go further into it, let me know.

  • @TompanX Lol? You should do some reading before you ignore what I say. Javascript has nothing to do with HTML beyond the history of its creation. And actionscript is basically javascript. You should do some reading for yourself. See JavaScript and ECMAScript wikipedia pages

    HTML is a markup language that describes a web page. Web browsers read it and build a DOM from it. This can be manipulated with many things eg javascript or activex, java etc

  • @LordFabs wut javascript is an extinson of HTML and actionscript is for coding for flash programs :P

  • What method for culling are you using? Just a position test for each individual tile, or are you using a quadtree or binary culling tree? Or something more exotic?

  • @TompanX It's good to brag about knowing lots of programming languages especially at your age, but the new versions of actionscript /are/ javascript. Get it right rofl.

  • @dawsonn007 hahahahahhaha STFU i lernd html,javascript,java,actionscr­ipt and blitsplus before i was 12 and now im 13 and lerning c++

  • How many tiles are you rendering when you are map culling?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more