Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Python OpenCV window not opening in fullscreen mode
Post: Python OpenCV window not opening in fullscreen mod...
I have some basic code to receive a camera stream as a numpy array and display it as a fullscreen window. I'm able to receive and display the camera, but 75% of the time the fullscreening doesn't work... |
|
Zman350x |
General Coding Help |
0 |
3,292 |
Apr-29-2021, 07:54 PM |
|
|
Thread: Attemping 3D.
Post: Attemping 3D.
I've been following a tutorial on making 3D graphics from scratch, and I've looked over my code many a time and can't figure out what's wrong. Can someone help?
NOTE: The tutorial is in C++, but the ... |
|
Zman350x |
Game Development |
0 |
1,332 |
Feb-05-2020, 03:02 AM |
|
|
Thread: Problems w/ controller
Post: RE: Problems w/ controller
Thx man!!! I added: def refresh():
pygame.event.pump()to controller.py and "controller.refresh()" to main.py
It worked! |
|
Zman350x |
Game Development |
5 |
4,688 |
Oct-29-2019, 10:31 PM |
|
|
Thread: Problems w/ controller
Post: RE: Problems w/ controller
Currently out and about, I'll test it when I get home.
'let you know if it works!!! |
|
Zman350x |
Game Development |
5 |
4,688 |
Oct-29-2019, 04:51 PM |
|
|
Thread: Problems w/ controller
Post: RE: Problems w/ controller
It prints 0.0 over and over. Pygame comes with an example joystick program (below) and my controller works fine with it... From testing my controller on the example program, I know that axis 0 is left... |
|
Zman350x |
Game Development |
5 |
4,688 |
Oct-29-2019, 04:31 PM |
|
|
Thread: Creating "saves" for the game
Post: RE: Creating "saves" for the game
|
Zman350x |
Game Development |
2 |
2,178 |
Oct-29-2019, 11:31 AM |
|
|
Thread: Problems w/ controller
Post: Problems w/ controller
I'm creating a simple code that allows me to take input from a controller:
import pygame
pygame.init()
pygame.joystick.init()
try:
joystick = pygame.joystick.Joystick(0)
joystick.init()
excep... |
|
Zman350x |
Game Development |
5 |
4,688 |
Oct-29-2019, 02:01 AM |
|
|
Thread: Tileset Slpiting
Post: Tileset Slpiting
I want to use a tileset in my game (the image is an example) how would I go about splitting it?
https://ibb.co/Kb4YS4s
I want it to end up something like this:
import pygame
from pygame.locals import ... |
|
Zman350x |
Game Development |
1 |
3,374 |
Mar-22-2019, 11:28 PM |
|
|
Thread: Finding the brightness of an image using pygame
Post: RE: Finding the brightness of an image using pygam...
|
Zman350x |
Game Development |
2 |
3,416 |
Feb-21-2019, 12:20 PM |
|
|
Thread: Finding the brightness of an image using pygame
Post: Finding the brightness of an image using pygame
As part of my science fair, I need to order images by brightness, so I created this bit of code below:
#imports
import pygame
from pygame.locals import *
pygame.init()
#images to test for brightness... |
|
Zman350x |
Game Development |
2 |
3,416 |
Feb-21-2019, 02:48 AM |
|
|
Thread: Make one thing act like another
Post: Make one thing act like another
I have a long list of 750 single digit numbers.
WorldList = [0,0,3,7,3,2...]I use the variable valIndex plus a number to call certain points in the list.
WorldList[valIndex + 30] = 0I know that I co... |
|
Zman350x |
General Coding Help |
2 |
2,196 |
Aug-15-2018, 11:24 PM |
|
|
Thread: [PyGame] Block Game
Post: RE: [PyGame] Block Game
Thanks
Oh, and I forgot to mention this, I'm open to new ideas for features to add to the program. |
|
Zman350x |
Code sharing |
3 |
6,074 |
May-29-2018, 09:36 PM |
|
|
Thread: [PyGame] Block Game
Post: [PyGame] Block Game
A simple game that lets you draw with blocks. Made in a few hours to test/first use pickle (actually cPickle). I know the code is messy, don't worry about that, I made this in a rush. Tell me what you... |
|
Zman350x |
Code sharing |
3 |
6,074 |
May-29-2018, 08:26 PM |
|
|
Thread: More List Stuff
Post: RE: More List Stuff
sorry for not saying this, I fixed the problem right after posting |
|
Zman350x |
General Coding Help |
3 |
3,434 |
Mar-11-2018, 12:20 AM |
|
|
Thread: More List Stuff
Post: More List Stuff
How would I do this?
data = [1,3,6,7,10]
value = 5
Lower = ["""List of Numbers in data list lower than value(5)"""]
Higher = ["""List of Numbers in data list higher than value(5)"""]
Equal = ["""List... |
|
Zman350x |
General Coding Help |
3 |
3,434 |
Mar-10-2018, 02:29 AM |
|
|
Thread: cryptography help
Post: RE: cryptography help
not 100 percent sure...
on whatever it is you could put str("""enter variable/info here""")I would also try using ' instead of " |
|
Zman350x |
General Coding Help |
3 |
3,125 |
Mar-10-2018, 02:18 AM |
|
|
Thread: list not working
Post: RE: list not working
Thanks, it worked
I'll keep the naming in mind next time **smile** |
|
Zman350x |
General Coding Help |
2 |
2,359 |
Mar-10-2018, 12:21 AM |
|
|
Thread: list not working
Post: list not working
from __future__ import division
import time, math
List = [3,4,6]
MADlist = List
for i in range(len(MADlist)):
MADlist[i] -= mean
MADlist[i] = math.fabs(MADlist[i])
... |
|
Zman350x |
General Coding Help |
2 |
2,359 |
Mar-10-2018, 12:06 AM |
|
|
Thread: ROLL function
Post: RE: ROLL function
|
Zman350x |
Game Development |
4 |
4,949 |
Aug-03-2017, 02:55 PM |
|
|
Thread: ROLL function
Post: RE: ROLL function
ok, what should I do? Decrease the clock.tick to 2 FPS, add a
pygame.time.delay(), or something else completely?
p.s. I do watch Sentdex for tutorials. If you think he's teaching bad structure do yo... |
|
Zman350x |
Game Development |
4 |
4,949 |
Aug-01-2017, 11:40 AM |