Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
42
votes
5
answers
11k
views
Should actors in a game be responsible for drawing themselves?
I am (again) playing around with a Pong type game using JavaScript's canvas element.
I have created a Paddle object which has the following properties... … width
height
x
y
colour
I also have a Pong object which has properties such as...
width
height
backgroundColour
draw(). …
38
votes
11
answers
96k
views
In Pong, how do you calculate the ball's direction when it bounces off the paddle?
I'm trying to wrap my head around this very Hello World-y problem in game development. I've created a TicTacToe game in XNA so I guess the next step would be a Breakout clone.
Keep in mind that I hav …
20
votes
5
answers
2k
views
Game actions that take multiple frames to complete
animate rows moving downwards (and again, wait over multiple frames)
if we can spawn a new block
spawn a new current block
else
game over
In my Pong …
20
votes
8
answers
13k
views
Imperfect pong AI
To start off easy, I'm writing a clone of the Atari Pong. …
17
votes
9
answers
8k
views
Anxious about possibly hitting bugs i can't solve and having to cancel my games
I've been doing game Dev for 5 months now and I've started small with following Pong and Flappy bird tutorials and other simple arcade games, and when I feel like I've reached a ceiling with the complexity …
16
votes
5
answers
2k
views
Dictionary of common names for code objects [closed]
For instance, if I'm making a game of pong with a high level of complexity, I want to name things accordingly. …
13
votes
1
answer
4k
views
How to do color post processing in WebGL, when you can not read the color of the current pixel?
Use ping pong buffers. Render to one framebuffer, and read the pixels from a texture belonging to another framebuffer. …
12
votes
4
answers
4k
views
Identifying Entity 'Types' in an Entity-Component System
For example, in a game of Pong the paddle and ball both collide with the window boundaries. …
11
votes
6
answers
1k
views
Networking Pong Clone
I have a Pong clone, with 4 players, and need to synchronise the paddle positions between the three clients and the server (the server is the fourth player). … I am asking these questions within the context of Pong but am also interested in how these problems would be overcome in other games, or generalised solutions. …
11
votes
7
answers
3k
views
Separation of drawing and logic in games
Let's say I'm building a simple Pong game. I'd have a Ball class and a Paddle class. …
11
votes
3
answers
5k
views
How to avoid "Blob-Systems" in an entity component system?
Currently I am facing the following problem:
I am trying to write a pong clone by using an entity component system (ECS). I wrote the "framework" all by myself. …
11
votes
1
answer
613
views
XNA Adding Craters (via GPU) with a "Burn" Effect
I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). …
10
votes
1
answer
2k
views
How can I achieve an "8-bit graphics" look?
I only made some pong and snake in high school and I did some OpenGL in college.
I want to make my own game engine. Nothing fancy just a simple 2D game engine. …
10
votes
1
answer
5k
views
Network client-server message exchange and clock synchronization help
I've readed a few things about it:
Pong Network Example
Click Synchronization Example
Wikipedia on Clock Sync
So, how can i solve this? …
9
votes
5
answers
376
views
Where can I find resouces for developing an "Intro to Game Development" class at a Community... [closed]
Keep it simple – Input with Controls, 2D side scrolling, character and object animation, pong type games, basic sound effects and simple collision detection problems. …