Retro of the Week Logo
You Can Now Download RotW's Code
Posted by Billy
Posted on 10 June, 2016 at 10:27PM ↑ 2 ↓ 0
You Can Now Download RotW's Code

One of the main reasons I helped start RotW was because I'd have an excuse to code a website from scratch. RotW is a great project to work on, and I'm not sure I'll ever give up on it completely. (I even just renewed the domain name!) I've always had interest in sharing the code to RotW, and possibly give back to the community a little, but I've been putting it off until now.

Hopefully someone out there will find this code useful. I decided on the GPLv3 license,

Continue Reading »

Might be useful to someone: Line of sight testing in a 2D tile based game
Posted by Billy
Posted on 28 May, 2014 at 4:56PM ↑ 1 ↓ 0

The following C++ function does line-of-sight testing for a 2D game that uses tiles. The level map is a multidimensional array of integers (levelmap[LEVEL_HEIGHT][LEVEL_WIDTH]) that represent each tile; 0 signifies and empty tile, any number higher than that is solid. A vector2 is just a datatype that contains an object's x and y position.

// Check line of sight between two points (usually the camera/player)
Continue Reading »

Compiled vs Interpreted Code In Video Games
Posted by Billy
Posted on 29 April, 2014 at 6:11PM ↑ 2 ↓ 0
Compiled vs Interpreted Code In Video Games

Warning: This post is focused on programming concepts.

Speed and ease of use have always been at odds with each-other in the computing world. In the days of the Apple II, most people started writing games in BASIC, until they needed more speed, then they switched to something faster. BASIC is an interpreted language and runs slower, but something like C is a compiled language and runs much faster even with equivalent code. That brings us to video games, which are really just specialized computer programs themselves. Why would someone use an interpreted language or a compiled one? Let’s explore that question.

Continue Reading »

New Features
Posted by Billy
Posted on 27 November, 2012 at 02:11AM ↑ 0 ↓ 0
New Features

Billy here, maintainer/coder for this site. If you hadn't noticed there's a sidebar on the left now. Why did I do this? Well, a lot of our content is pretty hidden, but now more of it stands out. I actually planned a major re-design of the site, but all the tests I made turned out... less than optimal. As per usual, please let me know if there's any errors on your end. Also, please feel free to suggest (reasonable) features that you'd like to see. I programmed this site from scratch for a rea

Continue Reading »