Questions tagged [metaprogramming]
Metaprogramming is a programming technique in which computer programs have the ability to treat programs as their data; this means that a program can be designed to read, generate, analyse or transform other programs, and even modify itself while running.
8 questions
3
votes
1
answer
541
views
Why are games using interpreted languages instead of compiling code into libraries and calling them at runtime?
Say I want to include a game mechanic where players are invited to code up some algorithm to control robots which would defeat the enemy and protect the tower efficiently. Most games I've seen to ...
0
votes
2
answers
421
views
How to set HUD elements position and size depending of resolution [duplicate]
How can I set HUD elements' position and size when changing resolution and maintain the desired layout? All HUD elements (including menu items such as play button, setting button etc) need to get some ...
5
votes
1
answer
286
views
Should I amortize scripting cost via bytecode analysis or multithreading?
I'm working on a game sort of thing where users can write arbitrary code for individual agents, and I'm trying to decide the best way to divide up computation time.
The simplest option would be to ...
17
votes
3
answers
5k
views
How do I efficiently code both the client and server at the same time?
I'm coding my game using a client-server model. When playing on singleplayer, the game starts a local server, and interacts with it just like a remote server (multiplayer). I have done this to avoid ...