File tree Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "configurations" : [
3
+ {
4
+ "name" : " x64-Debug" ,
5
+ "generator" : " Ninja" ,
6
+ "configurationType" : " Debug" ,
7
+ "inheritEnvironments" : [ " msvc_x64_x64" ],
8
+ "buildRoot" : " ${projectDir}\\ out\\ build\\ ${name}" ,
9
+ "installRoot" : " ${projectDir}\\ out\\ install\\ ${name}" ,
10
+ "cmakeCommandArgs" : " " ,
11
+ "buildCommandArgs" : " -v" ,
12
+ "ctestCommandArgs" : " " ,
13
+ "variables" : []
14
+ },
15
+ {
16
+ "name" : " x64-Release" ,
17
+ "generator" : " Ninja" ,
18
+ "configurationType" : " RelWithDebInfo" ,
19
+ "buildRoot" : " ${projectDir}\\ out\\ build\\ ${name}" ,
20
+ "installRoot" : " ${projectDir}\\ out\\ install\\ ${name}" ,
21
+ "cmakeCommandArgs" : " " ,
22
+ "buildCommandArgs" : " -v" ,
23
+ "ctestCommandArgs" : " " ,
24
+ "inheritEnvironments" : [ " msvc_x64_x64" ],
25
+ "variables" : [
26
+ {
27
+ "name" : " CMAKE_C_FLAGS" ,
28
+ "value" : " /DWIN32 /D_WINDOWS" ,
29
+ "type" : " STRING"
30
+ },
31
+ {
32
+ "name" : " CMAKE_CXX_FLAGS" ,
33
+ "value" : " /DWIN32 /D_WINDOWS /GR /EHsc" ,
34
+ "type" : " STRING"
35
+ }
36
+ ]
37
+ }
38
+ ]
39
+ }
Original file line number Diff line number Diff line change 1
1
#console.enabled = false
2
2
# Sprite split and tween example
3
- img = Image . from_file ( "data/ball .png" )
4
- sprites = img . split ( 3 , 4 ) . map { |img | add_sprite ( img ) }
5
- scale = 10 .0
3
+ img = Image . from_file ( "data/face .png" )
4
+ sprites = img . split ( 16 , 4 ) . map { |img | add_sprite ( img ) }
5
+ scale = 4 .0
6
6
sprites . each do | s |
7
7
s . pos = s . pos * scale
8
- p "#{ s . pos . x } #{ s . pos . y } "
9
8
tween ( s ) . seconds ( 5.0 ) . fn ( :out_back ) .
10
9
from ( pos : s . pos + Vec2 . rand ( 5000 , 5000 ) ) .
11
10
from ( rotation : 4 * rand ( Math ::PI * 2 ) ) .
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include < filesystem>
3
3
4
- enum ScreenType
4
+ enum class ScreenType
5
5
{
6
6
Full,
7
7
Window,
You can’t perform that action at this time.
0 commit comments