867 Topics

Member Avatar for
Member Avatar for Mariano_1

Hey I'm coding Tron which is basically a two player snake game, I'm a noob when it come to pygame and python and need help with the collision logic and would love it if you could help me. (the comments are just ideas I had for the loops for the …

0
268
Member Avatar for ÂyØùùb
Member Avatar for Nether_1

Okay so I'm writing a code for a game and the way its currently programmed is the main menu is contained within a large function that references another function, and so on. Not too complicated. But (as you'll see with the code below) I have all the essential variables set …

Member Avatar for Gribouillis
0
368
Member Avatar for Marius_3

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; …

Member Avatar for Marius_3
0
244
Member Avatar for Marius_3

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; …

Member Avatar for RudyM
0
249
Member Avatar for fallout4player

I'm looking for a new laptop. I have no use for a desktop as I already have a ps4, but need a laptop fro gaming on the go I'm looking for the following features thanks - NVidia gtx960m or better( a second intergrated card as well- intel hd 520 or …

Member Avatar for underjack
0
358
Member Avatar for Dylan_6

Hi, I am currently in UNI studying Media (Video, Music, Design and also Web Development). As its summer I would love to have a side project. I've been meaning to learn how to create a text based RPG game, I am curious what skills I would need to make a …

Member Avatar for rproffitt
0
333
Member Avatar for ardywijaya1997

//thanks to GameAlchemist function createCountDown(timeRemaining) { var startTime = Date.now(); return function() { return timeRemaining - ( Date.now() - startTime ); } } var currentCountDown = createCountDown(30000); // Draw everything var render = function () { var countDownValue = currentCountDown(); returnKillsNeeded(stageNum); ctx.drawImage(startGameImg, 0,0); ctx.font = "24px Helvetica"; ctx.textAlign = 'center' …

Member Avatar for AssertNull
-1
328
Member Avatar for ardywijaya1997

How to add a score and collision detection between fruit and myAvatar? <html> <head> <script type='text/javascript' src='script.js'></script> <link rel='stylesheet' type='text/css' href='style.css'> <style> canvas { border: 1px solid #d3d3d3; margin-left: auto; margin-right: auto; } </style> </head> <body id="main1" background="Background.jpg" onload="startGame()"> <p id="text1">TIME: </p><div id="timer"></div> <script type="text/javascript"> function countdown (minutes){ var seconds …

Member Avatar for AssertNull
-2
369
Member Avatar for ardywijaya1997

I hope you can help me. here is the source code: <html> <head> <script type='text/javascript' src='script.js'></script> <link rel='stylesheet' type='text/css' href='style.css'> <style> canvas { border: 1px solid #d3d3d3; margin-left: auto; margin-right: auto; } </style> </head> <body id="main1" background="Background.jpg" onload="startGame()"> <p id="text1">TIME: </p><div id="timer"></div> <script type="text/javascript"> function countdown (minutes){ var seconds = …

Member Avatar for ardywijaya1997
-1
563
Member Avatar for Apolonian

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 …

Member Avatar for CodingCricket
2
1K
Member Avatar for Batch Devil

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 …

Member Avatar for Jaxonpoop123
0
2K
Member Avatar for Richmond_1

When mario collide to the wall .. I want to go back to the flappyMario class and dispose the Game Class .. but dispose won't work .. I really appreciate if someone help me about this problem. Here is my Code import java.awt.Component; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Toolkit; import …

0
160
Member Avatar for Mike_29

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 …

0
256
Member Avatar for fallout4player

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. …

Member Avatar for fallout4player
0
284
Member Avatar for CJMW

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 …

Member Avatar for JOSheaIV
0
284
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
626
Member Avatar for fallout4player

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 …

Member Avatar for rproffitt
0
380
Member Avatar for exsoft
Member Avatar for sam.tubb.75

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 …

Member Avatar for andybe
0
302
Member Avatar for Ali_56

Hey, still a beginner in Python. I was wondering if anybody could help me out with all this info. Im planning to make an actual game, but first i have to get classes/methods etc. I thought maybe this would be some good classes: Trainer, Pokemon, Moves, Stats, Type, Pokeball, Pokedex …

Member Avatar for Ali_56
0
8K
Member Avatar for waseem1345

hello, this is the part of the code I'm having a problem with if(a1==r1a || a2==r1b) {//REPLACING for(p=0;p<8;p++) { for(r=0;r<8;r++) { if( i[p][r]==1) { i[p][r]=0; } if(p==a1 && r==a2) { i[p][r]=1; r1a=p; r1b=r; } } } } I have only 2 units in the board of my chess game, intiger …

0
213
Member Avatar for IconiCxPimp

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 …

Member Avatar for IconiCxPimp
0
336
Member Avatar for Hoofy

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 …

Member Avatar for Jamie_9
0
1K
Member Avatar for Doogledude123

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 …

Member Avatar for JamesCherrill
0
288
Member Avatar for EarhawkPH

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: /* * To change this license header, choose License Headers in Project Properties. * To …

Member Avatar for JamesCherrill
0
423
Member Avatar for divinity02

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 …

Member Avatar for JamesCherrill
0
271
Member Avatar for Deep Modi

I really appreciate your work. I am here after a long time as I get bed rest. But after watching the new updates on here. I just say "WOW"... Nice, proceed the new updates as you did :)

Member Avatar for Dani
0
132
Member Avatar for MasterChat

The year is about to end.. It is time to start voting for your favorite game.. Post here

Member Avatar for newcoder310
0
5K
Member Avatar for shanenin

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 …

Member Avatar for Nutster
0
1K

The End.