Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    C

    Code Incomplete

    codeincomplete.com · Personal blog · on HN since 2011

    Jake Gordon writes about JavaScript and HTML5 game development, including a racing game, a platformer, Boulder Dash and CSS sprite packing.

    Visit blogHN submissions
    GamesWeb DevelopmentProgramming
    What HN says

    HN commenters recommend its JavaScript game write-ups, especially the pong tutorial and the Outrun-style racer, and discuss its bin-packing approach.

    Stats for nerds
    20HN people shared it
    11linked in comments
    137story points
    May 2023last shared
    2011people per year2023

    Top posts on HN

    1. 1
      How to build a racing game
      4 people · 114 points · first shared 2012 · 16 comments on HN
    2. 2
      Boulder Dash in JavaScript
      1 person · 6 points · first shared 2011 · Discussion on HN
    3. 3
      How to build a racing game in JavaScript
      2 people · 4 points · first shared 2012 · 1 comments on HN
    4. 4
      Software Startup Roles
      1 person · 3 points · first shared 2014 · Discussion on HN
    5. 5
      Rotating Tower Rendering
      1 person · 3 points · first shared 2013 · Discussion on HN
    6. 6
      Open Source JavaScript Games
      2 people · 2 points · first shared 2015 · Discussion on HN
    7. 7
      Tiny Platformer: Creating a small platform game with HTML5 Canvas
      1 person · 2 points · first shared 2013 · Discussion on HN
    8. 8
      Software startup roles
      1 person · 2 points · first shared 2017 · 1 comments on HN
    9. 9
      Bin-Packing Algorithm for CSS Sprites
      2 people · 1 points · first shared 2022 · Discussion on HN
    10. 10
      Javascript tetris
      1 person · first shared 2023

    What HN people wrote when they linked it

    • chrisco255May 2023

      Right, but efficient can mean a lot of things.

      Though Java was used, this game is inaccessible to Mac, iPhone, and Android users. Porting to all these platforms is inefficient compared to just using the web.

      It also requires a 60MB download, which is not very space efficient for a relatively simple 2D game (NES Tetris fit on a 24KB ROM). People have implemented Tetris in as little as 446 bytes [1]. Full color JS versions have been done at 16KB or less [2][3]. A JS version from 2004 came in at 1.5kb [4].

      Haven't done memory efficiency analysis, but willing to bet the average JS Tetris implementation has dramatically better memory efficiency as well.

      [1] https://hackaday.com/2016/10/06/tetris-in-446-bytes/
      [2] https://github.com/cztomczak/jstetris
      [3] https://codeincomplete.com/articles/javascript-tetris/
      [4] https://joriszwart.nl/games/javascript-tetris-1.5kb

    • rednabJul 2022

      The bin packing problem is NP-hard, but rectangle packing is "merely" NP.

      However, most people just use a recursive biggest-fit-first ¹), a simple heuristic that is surprisingly hard to beat for most workloads.

      I couldn't figure out what Aseprite is doing from their website or documentation, but if it's not that then it might be worth it writing your own sprite packer.

      ¹) https://codeincomplete.com/articles/bin-packing/

    • zappo2938Oct 2015

      Jake Gordon at Codeincomplete.com has lots of great write ups about javascript game development. It's worth checking out. Start with the pong implementation to see the most basic parts of a game including game loop, painting to canvas, and collision detection. http://codeincomplete.com/games/

    • qohenSep 2011

      There are other JS FSM libraries, but I ran into this one recently, which has an online demo:

      The blogpost about it:

      http://codeincomplete.com/posts/2011/8/19/javascript_state_machine_v2/

      The online demo:

      http://codeincomplete.com/posts/2011/8/19/javascript_state_machine_v2/example/

    • dataviz1000Nov 2021

      Here is another example of making a 3D look with 2D graphics using JavaScript from the CodeIncomplete blog building an Outrun type car racer game, https://codeincomplete.com/articles/javascript-racer/.

    • jakesgordonJun 2012

      I have purchased a few tracks from Lucky Lion studios in the past for some personal projects (http://codeincomplete.com/) and been very happy.

      I highly recommend them.

      Good luck(y lion)!

    Related

    Modeling Languagesmodeling-languages.com21 people

    JavaScript libraries to draw your own diagrams

    Modeling Languages
    Personal · last shared 2025
    Jake Archibaldjakearchibald.com191 people

    I discovered a browser bug

    Jake Archibald
    Personal · last shared 2026
    Red Blob Gamesredblobgames.com199 people

    Hexagonal grids for games

    Red Blob Games
    Personal · last shared 2026
    Scirra Blogscirra.com46 people

    Bitcoin's UK future looks bleak

    Scirra Blog
    Company · last shared 2021
    #AltDevBlogADayaltdevblogaday.com163 people

    John Carmack on the importance of Static Code Analysis

    #AltDevBlogADay
    Publication · last shared 2023
    Brandon Jonesblog.tojicode.com41 people

    Notch, WebGL, Dart, and ramping up quickly

    Brandon Jones
    Personal · last shared 2020
    Y Combinator Blogblog.ycombinator.com643 people

    Request For Research: Basic Income

    Y Combinator Blog
    Company · last shared 2025
    Jacob Seidelinnihilogic.dk22 people

    JavaScript Super Mario Kart

    Jacob Seidelin
    Personal · last shared 2014