Re: Pygame and graphics?

2020-09-08 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: Pygame and graphics? this isn't completely graphics, but I found an input class that works kind of like lucia's virtual input module. It has some options to adjust font, color, and it has a visible cursor. I modified this module to work with lucia so that blind people can us

Re: Pygame and graphics?

2020-09-06 Thread AudioGames . net Forum — Developers room : Phoenix009 via Audiogames-reflector
Re: Pygame and graphics? HiThose helped. Thanks a ton! URL: https://forum.audiogames.net/post/567952/#p567952 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Its a bit on the rough side as you have to tap the arrow keys to move instead of hold them but principles there. This will start you on the left side of the image, there are collision checks so you won't leave the images bounds.import pygame from pygame i

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Oops, yeah you should probably swap offset[0] for x and offset[1] for y. There have been many times i've dealt with 2D arrays in rendering where Y represents index[0] for the row, and X represents index[1] for the values in the list, in any case its not r

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Pygame and graphics? Yeah, I think I would need to see that to truly understand. URL: https://forum.audiogames.net/post/461565/#p461565 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Oops, yeah you should probably swap offset[0] for x and offset[1] for y. There have been many times i've dealt with 2D arrays in rendering where Y represents index[0] for the row, and X represents index[1] for the values in the list, in any case its not r

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Oops, yeah you should probably swap offset[0] for x and offset[1] for y. There have been many times i've dealt with 2D arrays in rendering where Y represents index[0] for the row, and X represents index[1] for the values in the list, in any case its not r

Re: Pygame and graphics?

2019-09-12 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Pygame and graphics? @8:In your example, I see this:window.blit(background,(0-offset[1],0-offset[0]))Isn't the first number in the offset x and the second y? Am I missing something here? Why are you subtracting the last number of the offset first?You also mention the offset incre

Re: Pygame and graphics?

2019-09-11 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Pygame and graphics? I always like to keep it possible to resize the window (scaling images with pygame is probably cumbersome to keep fast, but I haven't checked in a long time, so maybe not?), which complicates things further. Between the unreliability of guessing the user

Re: Pygame and graphics?

2019-09-10 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Blit is still the correct approach, just used in a different way. As CAE_Jones mentioned, you'd use a camera offset to position everything around the player, as opposed to the player itself to create the illusion that the player is moving around the map, w

Re: Pygame and graphics?

2019-09-10 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Pygame and graphics? Blit is still the correct approach, just used in a different way. As CE_Jones mentioned, you'd use a camera offset to position everything around the player, as opposed to the player itself to create the illusion that the player is moving around the map, whilst

Re: Pygame and graphics?

2019-09-10 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Pygame and graphics? Oh, yeah i see what you meen. then the immage will be on the other side of the screen, and at the end of the day it would not be visable on the screen any more if i am correct. so do you only want to move the view of the character around on the screen? URL: https

Re: Pygame and graphics?

2019-09-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Pygame and graphics? Blit only accepts x and y, and I want the character to stay still as we move across the screen, so if I'd blit the character's current position to the screen it would appear that the character is moving across the screen, which is not what I want.

Re: Pygame and graphics?

2019-09-10 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Pygame and graphics? why don't you use the blit functions to move an immage to the required position? URL: https://forum.audiogames.net/post/460806/#p460806 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cg

Re: Pygame and graphics?

2019-09-09 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Pygame and graphics? The coordinates that go to the draw functions should not be (obj.x, obj.y), but rather, (obj.x-camera.x, obj.y-camera.y). Leaving this out is equivalent to leaving the camera at (0, 0).A class for managing this sort of thing could handle this, so you don't ha

Re: Pygame and graphics?

2019-09-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Pygame and graphics? I am not sure that I understand, can you elaborate? URL: https://forum.audiogames.net/post/460709/#p460709 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames

Re: Pygame and graphics?

2019-09-09 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Pygame and graphics? You want to have your drawing take an offset for the camera's position. Java.awt.Graphics handles this natively with the translate and transform methods, a similar class for pygame graphics might be helpful? URL: https://forum.audiogames.net/post/460703/#p4