Lurker News
I ported Quake 1 to the Apple Watch, building on top of existing ports for iOS and Mac.

Some features: * uses Quake SW renderer + blitting to WatchKit surface (~60 fps, 640x480, larger res can run on lower framerate, tested up until 1024x768) * touch + gyro + digital crown controls * new AVFoundation audio backend (quake to Watchkit audio buffer copy logic), as Watchkit does not support CoreAudio * high pass audio filter to remove clicking on Watch speaker for some of the low frequency quake .wav samples * some smaller modifications and code updates to glue Quake 1 c code to Objective C and Watchkit
https://www.youtube.com/watch?v=cPC2o262TfQ

Comments (216) 34 threads

Earlier comments
Wowfunhappy2 replies#
I know this is more of a tech demo, but my mind immediately jumps to what sort of controls would be most playable. Have you tried something like:

• Gyroscope to look around.
• Scroll crown to walk forwards or backwards.
• Tap anywhere on screen to fire.
(Pushing in the crown to fire isn't possible, right?)

Wowfunhappy#
Yes, but in the video it's mapped differently. Gyro left and right looks left and right, but gyro up and down walks forwards and backwards.
myownclone1 reply#
Thanks for suggestions! Pushing the crown invokes system UI. * gyroskope to look around: I did try some of it, but it also means that you have to tilt the watch on more axes which usually means you tend to have worse eye contact with the surface of the display. * scroll for walking: I did try, but it wasn't much satisfying to use (I mean even worse than the other controls here :-D) * tap anywhere to fire: good idea!
Wowfunhappy#
> gyroskope to look around: I did try some of it

Just wondering—was it on your wrist when you tried it? I'm imagining moving my whole arm up and down, which I can do in sync with my head fairly easily.
And ideally turning around 360 degrees would require physically turning 360 degrees... might need to be played in a swivel chair.

fezfight4 replies#
And of course, to run this yourself, you need to pay Apple 100 dollars for a developer account and even then, the app will delete itself after 7 days.

Youre brilliant, you paid for the watch, but you cant use it the way you want because of Apple.
Edit: I have been corrected. 100 dollars buys you 1 year. 7 days is 'for free', so it's basically a tithe.

viktorcode2 replies#
An app with a dev account signature will not "delete itself in 7 days". You are talking about apps signed with a normal account.
unicornporn1 reply#
While that may be correct it's still insane you can't port open source software to a device you own without paying a fee.
FearlessNebula#
You don’t have to pay a fee. Any account can sign and side load an app for free, and every 7 days you have to let it check in with apples servers. If you pay $100/year for a developer account, the apps can sit much longer without needing to check in.
fezfight#
Thank you for the correction, as little as it does to change things.
refracture1 reply#
I understand the urge to crap on Apple all too well.. but at least have the facts straight. $100 gets you a year; 7 days is for free accounts.
fezfight1 reply#
That's very helpful, thanks. Still totally bullshit though.
refracture#
No arguments from me; Apple needs to get over itself and let us side load our apps but they're too greedy.
AlwaysRock1 reply#
Wait till you find out what dev kits cost for consoles.
fezfight#
Yes thats a bad thing, too. Two bad things.
kube-system1 reply#
It's not a developer tool. It's a consumer product.

We would laugh if someone bought a sedan and complained that it can't haul any pallets of goods. Why do we make that complaint for electronics?

fezfight1 reply#
Because that's not equivalent to what's happening here. In this scenario, we bought a 'luxury' sedan (apple watch) that is able carry goods (quake 1) but Toyota wants you to pay them $100 dollars a year for permission to do that (dev account). And they get to decide what goods you're allowed to carry (app store).

It's nonsense.

kube-system5 replies#
It is an intentional security design choice to make it difficult to run software outside the walled garden.

You might be savvy enough to not be concerned about being fooled into installing malware on your device. But this design decision was not for you.

Continue this thread — 5 replies

WheelsAtLarge6 replies#
What makes Quake so portable? Developer seem to be able to move it to just about any platform.
audunw4 replies#
Quake has a software renderer, that probably helps.

But most importantly, ID software released the original source code for it quite early. Not that many game development companies do that. I would've loved to see more Blood ports, but I don't think the source was ever released? So I believe the existing ports were reverse engineered. Duke Nukem 3D source was only released in 2003 it looks like.
The quality of the source code of Quake 2 is quite high. Doom is.. a bit messy but OK. There are already abstractions that make porting easier. I'm guessing Quake (haven't looked at the source yet) is somewhere in between. That helps too.

disordinary2 replies#
Blood uses the build engine which was open sourced at about the same time as Quake, there are numerous source ports and it can run on most platforms (although people have gotten it running on mobile devices, there's never been an official port). As nblood is based on eduke32, I'd imagine the only reason it isn't available on more platforms is that no one has volunteered to do it.
johnlorentzson2 replies#
The Build engine's source code isn't enough to port any game running on it, since Build was made as a library (I believe most developers using Build in the 90s didn't have access to the source code).

Also, wasn't there an official Blood port by Nightdive Studios?

Continue this thread — 2 replies

bluedino#
Build/Duke was also Ken Silverman's second game. Doom was probably Carmack's 50th

That said, it had some things Doom fans dreamt of, like an interactive level editor that was built into the game engine.

pjc502 replies#
Quake basically pre-dated hardware rendering on consumer hardware. To a great extent, the consumer 3D accelerator market exists because of Quake. https://fabiensanglard.net/3dfx_sst1/
taneq1 reply#
Aaah the brief, heady days of “no serious gamer would use a hybrid 2D/3D card” and the Voodoo fill rate wars. Fun times!

Continue this thread — 1 reply

deckard1#
Quake and id Software were pioneering things we just take for granted now.

I remember playing QuakeWorld when it came out, on Linux, over a dial up modem. You had ping times of 200-300ms and it was playable. You have to remember at the time Doom and other games were LAN-only. John Carmack used to keep a .plan file with some really cool details behind Quake/QuakeWorld development. Check out Aug 02, 1996 for some detail behind the netcode[1]. You can read the future of gaming being invented right there.
[1] https://github.com/ESWAT/john-carmack-plan-archive/blob/mast...

pizza2344 replies#
The top sibling parent has the correct explanation, however, I'll expand a bit.

Games prior to Quake were bound to specific O/Ss and/or hardware components.
DOOM was still bound to DOS AFAIK, so it's not portable without significant changes.
Older games are even worse - not only they were bound to DOS, but also to the display adapters of the time (CGA/EGA), which required some sort of emulation (or translation, depending on the approach) in order to be ported.
Games based on the Build engine (written by Ken Silverman), like Duke Nukem 3D and Blood are... simply written in very poor form. Carmack is a tidy programmer, Silverman isn't. Quoting Fabien Sanglard:
> Looking at the innumerable ports that spawned Doom/Quake, I was always puzzled to see so few ports of Duke Nukem 3D. The same question arose when the engine was ported to OpenGL only when Ken Silverman decided to do it himself.
The answer is in his analysis: https://fabiensanglard.net/duke3d/code_legacy.php.

johnlorentzson1 reply#
DOOM was definitely made with DOS in mind, but it also ran on NeXT from the beginning. It's pretty portable actually. Since you cited Fabien Sanglard, I guess I should mention that his book about DOOM's source code (Game Engine Black Book: DOOM) explains how the portability stuff (as well as almost everything else) worked in great detail.

Continue this thread — 1 reply

flohofwoe4 replies#
> DOOM was still bound to DOS AFAIK, so it's not portable without significant changes

DOOM was always extremely portable, the DOS and PC specific parts are well separated from the other code (DOOM was actually developed on NeXT machines, so separating the platform specific parts probably came naturally).

Continue this thread — 4 replies

_the_inflator#
I really miss one name here: Michael Abrash

John Carmack is awesome. However, to take the next step after Doom, he brought Michael Abrash on board.

Razengan#
> DOOM was still bound to DOS AFAIK

Doom was literally developed on NeXT computers (the precursors to modern Macs, ironic considering Doom was single-handhedly responsible for turning the public perception of PCs from boring office machines to cool gaming systems):
https://en.wikipedia.org/wiki/Development_of_Doom#Programmin...

myownclone#
Yes! SW renderer was one of the reasons I chose that! :-) Also, source code for id tech games is so well written, architected and highly readable.
nodja1 reply#
Written in plain readable C, open source, iconic game. Same with doom.

This is also from an era where there wasn't that much abstraction and "software rendering" was the norm so the implementations tended to be much more straightforward, this makes it so that worst case scenario, you just write to whatever the equivalent of a framebuffer is in the target implementation.

galangalalgol1 reply#
Should we maybe take that as a lesson?
pjmlp#
Specially for those cases that ship a browser alongside the application....
pavlov3 replies#
Unlike most games of the era, Quake was designed to be portable. It's not tied to the PC / MS-DOS platform in the same way as many other cutting-edge games were. For example, there was a lot of x86 assembly used at the time, often just intermixed with C code with no clear boundaries to enable porting to a different architecture.

AFAIK, Quake was originally developed on NeXT boxes and ported to PC later. The level editor was a native app using the NeXTSTEP APIs which Apple renamed Cocoa:
https://quakewiki.org/wiki/QuakeEd
So, it's a fun kind of homecoming that it now runs on the wrist-sized NeXT box.

petercooper1 reply#
Just for a fun comparison.

The original NeXT computer: 25MHz Motorola 68030 plus copro, 8MB RAM, 256MB storage, 300W power usage, $15k in 2021 dollars, weighed a lot
The Apple Watch Series 7: 1800MHz t8301 CPU (but scales up and down), 1GB RAM, 32GB storage, 50-100 mW (I think?), $399, weighs 35g or so
What a difference 33 years makes!

klelatti5 replies#
The watch has similar specs to the first MacBook Pro from 2006!

Continue this thread — 5 replies

pjmlp4 replies#
Except the little detail that there is very little NeXT on that wrist-sized box, other than Objective-C is still the main language.

Continue this thread — 4 replies

Continue this thread — 1 more reply

Continue this thread — 3 more replies

app4soft#
> you need to have connected Apple Watch (via the iPhone) to your Mac and you can build the game yourself.

This is the highest cost Quake 1 port till now.

Load more comments