Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agregar hotkey ctrl-A [Closes #52] #59

Closed

Conversation

jamperezmondragon
Copy link
Contributor

@jamperezmondragon jamperezmondragon commented Jul 25, 2024

closes #52. Analicé este archivo, particularmente la función en la línea 109 y concluí lo que había que modificar.

@@ -335,7 +335,10 @@ class DesktopController {
[87,[[basic, ()=>{this.worldController.ToggleWall("north");}]]],
[68,[[basic, ()=>{this.worldController.ToggleWall("east");}]]],
[83,[[basic, ()=>{this.worldController.ToggleWall("south");}]]],
[65,[[basic, ()=>{this.worldController.ToggleWall("west");}]]],
[65,[
[ctrl, ()=>{this.worldController.Select(1, 1, 100, 100);}],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El mundo puede medir algo diferente a 100x100

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estuve buscando un poco, y encontré un archivo .js donde se inicializa KarelWorld y hay una variable maxRows y maxCols, son esas? o cómo se referencía el tamaño del mundo?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, mundo.js es un código de Karel.js vestigio que debería ser eliminado
Es con KarelController.GetInstance().world y creo que es world.w y world.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Hotkey] Agregar ctrl+A,
2 participants