move dirs
This commit is contained in:
15
code/V/example_window/update.v
Normal file
15
code/V/example_window/update.v
Normal file
@@ -0,0 +1,15 @@
|
||||
// import gg
|
||||
|
||||
fn (mut game Game) update() {
|
||||
if game.bg_texture.pos_x >= game.bg_texture.image.width {
|
||||
game.bg_texture.pos_x = 0
|
||||
} else {
|
||||
game.bg_texture.pos_x += .5
|
||||
}
|
||||
|
||||
if game.bg_texture.pos_y >= game.bg_texture.image.height {
|
||||
game.bg_texture.pos_y = 0
|
||||
} else {
|
||||
game.bg_texture.pos_y += .5
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user