News for hackers. Stuff that matters.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Wednesday June 10, 2015 @03:32PM (#9694717)
This is an example of a first-person shooter game written in JavaScript using WebGL. All of the (limited) art assets are generated procedurally. The game uses the team duck game engine (tedge.js) which handles things like loading shaders, buffering object meshes, and calculating collision using octrees. The input controls are slightly confusing, because it is not possible to capture the mouse in the browser without using some sort of plugin, but it shows generally what is possible.

The source code is available here: http://www.team-duck.com/rift/files.php

The project is also on GitHub: https://github.com/teamduck/gametube

As noted below, this demo lacks any real gameplay. It's a proof of concept for a homegrown browser engine, and it's based off of efforts on different platforms originally.

It shows what a lone programmer can do and that not all tech demos need to be flashy. It also harks back to a more minimal development style.

Here is a command reference of the source code auto-generated with a script: http://www.team-duck.com/rift/reference.txt

Although it might not be clear from the GitHub repository, this project is over a year old. If I were to spend just a little bit of time on it, I would work on generating a sequence of levels through the space station. So I'm open to input for game ideas, too.

Re:Show HN: RIFT – A procedurally generated FPS game in the ... by nhdev on Wednesday June 10, 2015 @04:23PM (#9695058)
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Thursday June 11, 2015 @12:24AM (#9697533)
It's worth taking a look. When I wrote this it was before this standard was implemented.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by backwardm on Wednesday June 10, 2015 @03:12PM (#9694590)
Mashing down keys as fast as I could to stop the spin... had to leave before getting too dizzy. :)
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Wednesday June 10, 2015 @03:17PM (#9694628)
Hm, yeah. It's controlled using the mouse. Center the mouse to prevent the view from moving.

WASD moves the player character.

Pressing 1 enables debug mode, which shows some bounding boxes.

Re:Show HN: RIFT – A procedurally generated FPS game in the ... by backwardm on Wednesday June 10, 2015 @03:23PM (#9694672)
Got it. Thanks for the hint.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by ketralnis on Wednesday June 10, 2015 @09:55PM (#9696994)
Rift is already the name of a large popular first person MMORPG http://www.riftgame.com/en/
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Thursday June 11, 2015 @12:22AM (#9697525)
True, but I picked this working title in 2006 or 2007.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by keslag on Wednesday June 10, 2015 @03:30PM (#9694703)
Blocked at work for some reason.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by keslag on Wednesday June 10, 2015 @05:47PM (#9695741)
The URL that you are attempting to access is a potential security risk. Trend Micro OfficeScan has blocked this URL in keeping with the network security policy. URL: http://team-duck.com/rift/index.html Risk Level: Dangerous Details: Verified fraud page or threat source
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by starshadowx2 on Thursday June 11, 2015 @04:48PM (#9702311)
I get the same sort of thing with ESET.

"The web page is on the list of websites with potentially dangerous content."

Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Wednesday June 10, 2015 @07:54PM (#9696483)
I'm not sure why that would be.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by kleer001 on Wednesday June 10, 2015 @04:23PM (#9695045)
This Websense category is filtered: Games.

At least that's what I get.

Re:Show HN: RIFT – A procedurally generated FPS game in the ... by ocdtrekkie on Wednesday June 10, 2015 @03:21PM (#9694654)
What do I shoot at?
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Wednesday June 10, 2015 @03:34PM (#9694731)
It's more of a proof of concept than a game yet. Adding gameplay goes hand in hand with adding plot, and without enough of a framework or scaffolding to fit the whole game together I haven't started on that.

Plus, all of the monsters / enemies I tried to make in code looked really horrible.

The other demos, like flying through space, can be more fun but they lack gameplay, too.

There's just not that many reasons to make something to destroy yet.

Re:Show HN: RIFT – A procedurally generated FPS game in the ... by ocdtrekkie on Wednesday June 10, 2015 @03:47PM (#9694803)
It's neat. Is this all HTML5 and JavaScript then?
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by xigency on Wednesday June 10, 2015 @03:58PM (#9694877)
Yep, it's all JavaScript.
Re:Show HN: RIFT – A procedurally generated FPS game in the ... by badloginagain on Wednesday June 10, 2015 @03:41PM (#9694768)
Cool. Keep at it!