Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by balamatom

2 hours ago

A 3D game, like any interactive program, is a REPL over a state machine:

1. Setup initial game state

2. Render graphics in accordance to game state

3. Read input and update state in accordance with it

4. GOTO 2

The purpose of C++ is to prevent you from realizing this. Don't use it and don't talk to anyone who uses it. Same for Java, C#.

0 comments

balamatom

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities