Event is action that is usually happenes "outside" of main program thread, but handled inside of it.
1
vote
2answers
210 views
Events Driven Library XNA C#
Language: C# w/ XNA Framework
Relevant and Hopefully Helpful Background Info:
I am making a library using the XNA framework for games I make with XNA. The Library has a folder(Namespace) dedication ...
1
vote
1answer
394 views
User input in game loop
I am building a simple multi-player fly-around-a-3D-world game in Javascript/webGL/websocket (Chrome, Firefox mostly).
How should I handle and process user input?
My preliminary design (untested) is ...
1
vote
0answers
77 views
Collision detection code style [closed]
Not only there are two useful broad-phase algorithms and a lot of useful narrowphase algorithms, there are also multiple code styles.
Arrays vs. calling
Make an array of broadphase checks, then ...
1
vote
0answers
183 views
Corona sdk events dispatched with dispatchEvent() are handled directly upon call. Why so? [closed]
I noticed to my surprise that an event created with dispatchEvent(event) gets handled directly when called, and not together with other events at a specific phase of the frame loop.
Two main reasons ...
1
vote
0answers
276 views
In a state machine, is it a good idea to separate states and transitions?
I have implemented a small state machine in this way (in pseudo code):
class Input {}
class KeyInput inherits Input
{
public :
enum { Key_A, Key_B, ..., }
}
class GUIInput inherits Input
{ ...
1
vote
0answers
138 views
Farseer Physics EndContact events don't fire for all registered delegates
Here's my situation:
I have several objects that contain a body and a fixture. They are set to sensor = true;
atmosphere = BodyFactory.CreateCircle(world, atmosphereRadius / Level.METER_IN_PIXELS, ...
0
votes
1answer
172 views
Implementing a Turn-Based Game with Windows API Window Messages
I'm trying to make a 2-player Connect 4 game, but I'm having trouble wrapping my head around some of the concepts related to incorporating event handlers while progressing with the game.
On the one ...
0
votes
1answer
420 views
SDL mouse wheel not picking up
Running Ubuntu 11.04, SDL 1.2 trying to pickup mouse wheel up/down movement with this (stripped down) code:
int main( int argc, char **argv )
{
SDL_MouseButtonEvent *mousebutton = NULL;
...
0
votes
2answers
310 views
Is it possible to generate Events and Hooks in Lua for any game without built-in support?
Does a game have to have built-in functions to accept and run lua scripts, or can I design Events and Hooks using Lua on any game I please, akin to the days where C code could be used to hook into the ...
0
votes
1answer
125 views
Building a touch event driven UI from scratch: what algorithms or data types? [closed]
I have a touch display. As input I can receive the coordinates and how many touch points are in use, basically I just get an X,Y couple for every touch event/activated point at a customizable rate.
I ...
0
votes
3answers
182 views
A question regarding how to respond to 'events'
What is the best practice to use when events happen in a game? For example:
You have a sensor. When a particular game actor is near that sensor, a sound must be played and a door must be closed.
...
0
votes
2answers
118 views
Best approach for Event driven UI
Had an idea for a modification to a game, however the core functionality heavily involves UI, and the API for the mod is event based.
The player will have there own custom data object, so I know one ...
0
votes
0answers
64 views
Using boost function to wrap execution of a boost signals2 signal
I am considering using the boost library to design a simple yet effective callback event notification framework for my game application. The idea is that objects that can raise events would have a ...
0
votes
0answers
193 views
Am I doing this node.js game loop wrong?
I have 2 arrays of JSON objects, actions and game objects.
At any time a user can make a request from the client which can add an action to the actions array.
I have a setInterval(function(){ }, ...
0
votes
0answers
83 views
How are events in games handled? [duplicate]
Possible Duplicate:
Best way to manage in-game events?
In may games that I have played, I have seen events being triggered, such as when you walk into a certain land area while holding a ...
0
votes
0answers
246 views
Windows Events lag behind
I'm making a simple openGL application and so far I can get the window to display, the update/render loop work, and it processes windows events (like WM_QUIT and WM_MOUSE). I've found though that ...
0
votes
1answer
139 views
Creating a newspaper that effects the game's economy?
I am writing a game in Objective C/cocos2d where a newspaper is a central part of what controls or rather effects the game's world economy as well as what a city might do (such as increase X, reduce ...
-2
votes
1answer
151 views
How do I set an event off when player is on certain tile?
Here is the code I use to create and print my map to the canvas:
var board = [];
function loadMap(map) {
if (map == 1) {
return [
...
-3
votes
2answers
110 views
Are there companies that can store the stream of each user event? [closed]
I want a company that can store in a database of it's own the stream of clicks each user does (my game is programmed in action script), of course I will define what data and when to store it. Bear in ...