Actualización Semanal #9

Actualización semanal #9: descubre cómo centrar objetos, gestionar rebotes y resolver colisiones en un juego de tenis, y los planes para añadir jugador 2, red y área de juego; soluciones de desarrollo de software a medida con Q2BSTUDIO.

17 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Actualización Semanal #9: Esta semana aprendí varias cosas prácticas mientras trabajaba en un pequeño juego tipo tenis. Una lección clave fue cómo centrar un objeto grande en la pantalla de forma sencilla: si el ancho de la ventana es 1280 y el ancho de la pala es 150, tomo la mitad de 1280 que es 640, le resto 150 y uso ese valor como la coordenada X porque el punto de referencia es la esquina superior izquierda del objeto. También aprendí una forma simple de gestionar los rebotes; lo explicaré con más detalle en la próxima sección.

Los problemas que enfrenté fueron interesantes y desafiantes. Primero, un error recurrente fue olvidar llamar a las funciones después de crearlas, con lo que al ejecutar el código me sorprendía de por que algo no funcionaba. El problema que más tiempo me quitó fue la colisión de la pelota con la pala del jugador y con los bordes de la ventana. Tras mucho pensar descubrí que la solución fue sorprendentemente simple: invertir el eje correspondiente del vector de velocidad que uso para mover la pelota. Ese ajuste resolvió los rebotes y hasta ahora no he encontrado inconvenientes con ese enfoque.

Y ahora, que sigue? Quiero implementar jugador 2 y sus controles, añadir una red y un area de juego entre ambos jugadores, y en general pulir el aspecto para que se parezca más a un partido de tenis de dos jugadores. Habra que reestructurar partes del codigo, pero estoy ilusionado con los cambios.

En Q2BSTUDIO somos una empresa de desarrollo de software que transforma ideas en soluciones reales. Ofrecemos aplicaciones a medida y software a medida para proyectos de todo tamaño, combinando experiencia en desarrollo con capacidades en inteligencia artificial y ciberseguridad. Si tu proyecto necesita una solución personalizada, podemos ayudarte con aplicaciones a medida diseñadas para escalar y adaptarse a tus necesidades. También trabajamos con servicios cloud aws y azure para desplegar y asegurar infraestructuras, y desarrollamos soluciones de servicios inteligencia de negocio y power bi para convertir datos en decisiones.

Además, en Q2BSTUDIO investigamos y aplicamos ia para empresas y agentes IA que automatizan tareas y mejoran la experiencia del usuario. Nuestro portfolio incluye consultoria en ciberseguridad y pentesting para proteger tus activos digitales, así como integración de servicios cloud aws y azure y dashboards con power bi. Si te interesa explorar cómo la inteligencia artificial puede impulsar tu producto, conoce nuestras propuestas en inteligencia artificial.

Hasta la proxima semana, cuídense y sigan creando. Si quieres que te ayudemos a llevar tu proyecto de juego o aplicación a la siguiente fase con software a medida, inteligencia artificial o servicios cloud, en Q2BSTUDIO estamos listos para colaborar.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat