Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4ca4e3b50 | ||
|
|
34177bf951 |
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
+15
-9
@@ -409,24 +409,30 @@ class Frog:
|
||||
def draw_water_surface(time_counter):
|
||||
glColor3f(*COLOR_WATER)
|
||||
|
||||
grid_size = 15
|
||||
# Cuadrícula más densa y fluida para el estanque principal
|
||||
grid_size = 8 # Reducido de 15 a 8 para mayor resolución en las ondas
|
||||
for x in range(int(-POND_RADIUS), int(POND_RADIUS), grid_size * 2):
|
||||
glBegin(GL_LINE_STRIP)
|
||||
for y in range(int(-POND_RADIUS), int(-POND_RADIUS) + int(POND_RADIUS)*2, grid_size):
|
||||
for y in range(int(-POND_RADIUS), int(-POND_RADIUS) + int(POND_RADIUS)*2, grid_size * 2):
|
||||
dist = math.hypot(x, y)
|
||||
if dist < POND_RADIUS - 30:
|
||||
z = 1.0 * math.sin(dist * 0.015 - time_counter * 3.0) + 0.5 * math.cos(x * 0.01 + time_counter)
|
||||
# Combinación de ondas complejas para dar un aspecto orgánico y natural
|
||||
z = (1.2 * math.sin(dist * 0.015 - time_counter * 3.5) +
|
||||
0.6 * math.cos(x * 0.02 + time_counter * 2.0) +
|
||||
0.4 * math.sin(y * 0.025 - time_counter * 1.8))
|
||||
glVertex3f(x, y, z)
|
||||
glEnd()
|
||||
|
||||
for y in range(int(STREAM_MIN_Y), int(STREAM_MAX_Y), 15):
|
||||
# Ondas mejoradas para los arroyos
|
||||
for y in range(int(STREAM_MIN_Y), int(STREAM_MAX_Y), 20):
|
||||
if abs(y) < POND_RADIUS:
|
||||
continue
|
||||
cx = get_river_center(y)
|
||||
glBegin(GL_LINE_STRIP)
|
||||
for dx in range(-100, 110, 10):
|
||||
for dx in range(-80, 90, 8):
|
||||
x = cx + dx
|
||||
z = 0.5 * math.sin(y * 0.03 + dx * 0.08 + time_counter * 4.0)
|
||||
z = (0.8 * math.sin(y * 0.04 + dx * 0.1 + time_counter * 4.5) +
|
||||
0.3 * math.cos(x * 0.05 - time_counter * 2.5))
|
||||
glVertex3f(x, y, z)
|
||||
glEnd()
|
||||
|
||||
@@ -676,8 +682,8 @@ def draw_start_screen(font_title, font_subtitle, font_text, wing_angle, menu_win
|
||||
glPopMatrix()
|
||||
|
||||
# OBJETIVO DEL JUEGO
|
||||
obj_line1 = font_text.render("Objetivo: Vuela libre por el estanque y sus arroyos capturando moscas", True, (255, 255, 255))
|
||||
obj_line2 = font_text.render("y mosquitos. Una vez cazados debes devorarlos posado en un junco.", True, (255, 255, 255))
|
||||
obj_line1 = font_text.render("Objetivo: Vuela libre por el estanque y sus arroyos capturando moscas y mosquitos.", True, (255, 255, 255))
|
||||
obj_line2 = font_text.render("Una vez cazados debes devorarlos posado en un junco.", True, (255, 255, 255))
|
||||
draw_text_2d(obj_line1, 70, HEIGHT - 170)
|
||||
draw_text_2d(obj_line2, 70, HEIGHT - 195)
|
||||
|
||||
@@ -1165,7 +1171,7 @@ def main():
|
||||
py += WORLD_LEN
|
||||
|
||||
# Aleteo rápido cuando está volando o maniobrando
|
||||
wing_timer += 140.0 if (dive_phase != "none" or auto_landing) else (60.0 if speed > 0.1 else 100.0)
|
||||
wing_timer += 180.0 if (dive_phase != "none" or auto_landing) else (40.0 if speed > 0.1 else 140.0)
|
||||
wing_angle = math.sin(wing_timer) * 35.0
|
||||
|
||||
frog.update()
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Reference in new issue
Block a user