Member Avatar
... I have the code above and i get the error that ... may only be used in a switch statement, and with ... the same error. Am i missing some braces?
by Marius_3 in Game Development ()
Member Avatar
void PatratTexturat(PATRAT patrat, int numar) { switch(numar) { case 1: if(numar==1) glBindTexture(GL_TEXTURE_2D, id_textura[2]); else glBindTexture(GL_TEXTURE_2D,id_textura[3]); break; case 2: if(numar==2) glBindTexture(GL_TEXTURE_2D, id_textura[4]); else glBindTexture(GL_TEXTURE_2D, id_textura[5]); break; case 3: if(numar==3) glBindTexture(GL_TEXTURE_2D, id_textura[6]); else glBindTexture(GL_TEXTURE_2D, id_textura[7]); case 4: if(numar==4) { glBindTexture(GL_TEXTURE_2D, id_textura[8]); } else { glBindTexture(GL_TEXTURE_2D, id_textura[9]); } break; case 5: glBindTexture(GL_TEXTURE_2D,id_textura[10]); break; …
by Marius_3 in Game Development ()
Member Avatar
How to add a score and collision detection between fruit and myAvatar? ...
by ardywijaya1997 -2 in Game Development ()
Member Avatar
Hello! I always wanted programming my own games, but i dont know where to start. At school im coding in C, and i read a lot that some people suggest C++, but i dont know. Your ideas? I would like to make a 2d game , which will be also …
by Apolonian in Game Development ()
Member Avatar
I was wondering if it is possible to make [I]an online multi-player game server preferably in batch.[/I] I am hoping to make a PowerPoint game that can be multi-player with the help of batch. Also even answers that do not suit my requirements fully will help, because i am 11 …
by Batch Devil in Game Development ()
Member Avatar
Well, right now i'm following a tutorial on game making for c++, but is this really the best programming language for video games? Also i'd like to know if can recommend me a book ( i've seen some book on amazon but i don't really know wich one to choose …
by pato wlmc in Game Development ()
Member Avatar
I'm developing a game that has a word falling to the bottom of the screen and the user typing that word before it hits the bottom. So you'll be able to type input while the word is falling. Right now I have a timer that waits 5 seconds, prints the …
by Mike_29 in Game Development ()
Member Avatar
ok so, I'm using unity5 and I have got my terrain and spooky forest. the lighting is ok its just that if I drag the FOG script to the first-person prefab and press play it doesn't work. it does distance fog not real-time moving fog in front of the camera. …
by fallout4player in Game Development ()
Member Avatar
Okay... So I am an avid programmer. I have been writing applications in C, C++ and C# for almost 10 years now. I'm also a second year computer science student. Like many people I love computer games, more specifically adventure/ rpg games like runescape, elder scrolls etc. I have programmed …
by CJMW 5 in Game Development ()
Member Avatar
My number two son is looking to replace his old(ish) Alienware laptop with a new gaming desktop. He is leaning toward another Alienware (although desktop this time rather than notebook). Does anyone have any recommendations that aren't in the super-ultimate-deluxe-megabucks category? His reason for going to a desktop system is …
by Reverend Jim 1,173 in Hardware and Software ()
Member Avatar
the game unturned is running with low fps. I have a late 2011 MacBook pro. 2.4ghz cpu i5. intel hd 3000, 512mb. with bloom and light shafts I'm getting about 29fps. when I turn up the detail distance it drops to 6fps. clearly 2.4ghz is fast enough not to do …
by fallout4player in Game Development ()
Member Avatar
OIO - simple bt good game play available on appstore
by exsoft in Community Center ()
Member Avatar
I'm very new to the Raycasting algorithim, and was reading a webpage on how it works with CPP code to accompany. I followed what the page described and converted it into Python/Pygame and then ran it, but my result was very different. I have a feeling it has something to …
by sam.tubb.75 in Game Development ()
Member Avatar
hello, this is the part of the code I'm having a problem with ... I have only 2 units in the board of my chess game, intiger i is a 2D array (which is the board), there are unit 1 and unit 2 on it, unit 2 is placed in …
by waseem1345 in Programming ()
Member Avatar
This is my code. I am learning this through the microsoft C# for absolute beginners book. I am on chapter 8 on the final soccer program and have no errors. The only problem I have is when I run it. I get $exception {Index was outside the bounds of the …
by IconiCxPimp in Game Development ()
Member Avatar
I am having trouble figuring out an efficient way to perform the checks for how a winner is determined in a 3D tic tac toe program (that is 3x3x3). Winners can be three spaces in any vertical, horizontal, or diagonal, including those between the 3 "boards." There are over 50 …
by Hoofy in Software Development ()
Member Avatar
I was wondering if it would be more efficient to render a single BufferedImage instead of rendering a bunch of BufferedImages in a double for loop? I have an idea of how to do it, I just don't know what methods in BufferedImage you would use to create the bigger …
by Doogledude123 45 in Software Development ()
Member Avatar
i have this problem about the betting system of my game. Here's the scenario: Your money: 300 Your bet: 300 JOptionPane appears: "you have insufficient money to bet" Here's the code for the main program: ... Here's the code for the class: ...
by EarhawkPH in Programming ()
Member Avatar
hi I am trying to build this multiplication game program, well it is the same multiplication game as before. It seems to be working fine but it is not giving me the exact output. first: - when the user enter the correct answer the first time, the game stop when …
by divinity02 6 in Programming ()
Member Avatar
I am trying to get in the habit of practicing coding on daily basis. I decided to try do do tic tac toe in powershell. This took my a rediculous amount of hours to finsh. I am glad to be done. Nest projec will be something more useful like automating …
by shanenin in Software Development ()
Member Avatar
Hello Everyone, So I've begun a new project, in an attempt to show off my progress with Javascript. I'm making a little text-based RPG. However, I would like for it to permanently save your character and their progress. Thus, I need a MySQL database. I won't lie, I've only used …
by RGStrat in Databases ()
Member Avatar
please tell me how to make a story video for my fps game?
by Hanif1993 3 in Game Development ()
Member Avatar
How to design levels at all in FPS Creator? and how to insert a desert and trees? and please how to improve AI?
by Hanif1993 3 in Game Development ()
Member Avatar
I saw this game at other forum. I think its interesting. Lets play ;) Post something about the person above you, I'll start.
by KevinVernon in Community Center ()
Member Avatar
BREAKOUT GAME IN OPENGL code is in C. Use the 's' and 'd' to move the paddle. Bounce the ball off the paddle to keep it from falling off the bottom of the screen. Break all the bricks to win. So far the program is running. but the right brick …
by binaryjc in Game Development ()
Member Avatar
hallo everyone its time to fun.which is your favourite game?
by davijhon -3 in Community Center ()
Member Avatar
So I know in a Tile Based game its more effecient to have static final instances of each tile, then populate your array with those instances. But what about Rendering? You have to pass the position that tile should be rendered into your method you use for rendering. Is there …
by Doogledude123 45 in Software Development ()
Member Avatar
I recently posted a code sample to rosettacode on the "8th" section there, for the '24 game'. The code is also present as well as some discussion on the 8th forum, here: ... It shows some interesting techniques that are 8th-specific, like restricting the user's access to the underlying interpreter …
by Ron_2 in Software Development ()
Member Avatar
... stones are not disappearing ... this part should get triggerd but it doesn't
by 111100/11000 in Software Development ()