Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
lgassman committed Oct 14, 2022
0 parents commit e1c2fec
Show file tree
Hide file tree
Showing 14 changed files with 144 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="assets"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
35 changes: 35 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>futbolito</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
<nature>org.uqbar.project.wollok.wollokNature</nature>
</natures>
</projectDescription>
7 changes: 7 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
21 changes: 21 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Manifest-Version: 1.0
Automatic-Module-Name: gitiando
Bundle-ManifestVersion: 2
Bundle-Name: gitiando
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: futbolito;singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: com.ibm.icu,
org.eclipse.xtext,
org.eclipse.xtext.generator,
org.eclipse.xtend,
org.eclipse.xtend.typesystem.emf,
org.eclipse.xpand,
org.uqbar.project.wollok,
org.uqbar.project.wollok.launch,
org.uqbar.project.wollok.lib,
org.eclipse.xtext.ui
Import-Package: org.apache.log4j,
org.apache.commons.logging
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Gitiando

Este ejercicio es para trabajar en grupo usando GIT

## Dinámica
Cada integrante del grupo debe resolver sólo uno de los requerimientos en un
*feature branch*, y luego realizar un *pull request (PR)* sobre *main* . Esperar a que todos
cada estudiante terminen su requerimiento antes de comenzar a *mergear* los Pull Requests

## Requerimientos
- Hacer que Lionel lleve la pelota al apretar la tecla *l*: Cuando la lleva pelota, la pelota
se mueve junto con Lionel. Validar que la pelota se encuentre en la misma posición que Lionel.
- Hacer que Lionel patee la pelota al apretar la tecla *p*: La pelota se desplaza 3 posiciones
a la derecha (o lo máximo que se pueda antes de salir de pantalla).
Validar que la pelota se encuentre en la misma posicion que Lionel
- Hacer Lionel de un pase atrás al apretar la tecla *t*: La pelota se mueve 2 posiciones a la izquierda
(o lo máximo que se pueda mover). Validar que la pelota se encuentre en la misma posición que Lionel
- Hacer que Lionel cambie su camiseta al apretar la tecla *c*. Si tiene la camiseta titular pasará a
usar la suplente y viceversa


Binary file added assets/lionel-suplente.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/lionel-titular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/pelota.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source.. = src/
bin.includes = META-INF/,\
.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "futbolito",
"version": "1.0.0",
"wollokVersion": "3.0.0",
"author": "leo",
"license": "ISC"
}
10 changes: 10 additions & 0 deletions src/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
log4j.rootLogger=WARN, stdout

# WHOLE UQBAR
log4j.logger.org.uqbar=WARN
## DEBUGGER
org.uqbar.project.wollok.ui.debugger

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
16 changes: 16 additions & 0 deletions src/objetos.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** First Wollok example */
import wollok.game.*

object lionel {

var property position = game.at(3,5)
method image() {
return "lionel-titular.png"
}
}


object pelota {
const property image="pelota.png"
var property position = game.at(5,5)
}
15 changes: 15 additions & 0 deletions src/program.wpgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import wollok.game.*
import objetos.*

program futbolito{

game.addVisualCharacter(lionel)
game.addVisual(pelota)
game.cellSize(40)
game.width(20)
game.height(10)
keyboard.enter().onPressDo({game.say(lionel, "Vamos Argentina")})
game.start()


}

0 comments on commit e1c2fec

Please sign in to comment.