-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
995fe60
commit 7a37e2d
Showing
72 changed files
with
93,047 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
font: "/assets/font/PoetsenOne-Regular.ttf" | ||
material: "/builtins/fonts/font.material" | ||
size: 40 | ||
antialias: 1 | ||
alpha: 1.0 | ||
outline_alpha: 1.0 | ||
outline_width: 1.0 | ||
shadow_alpha: 0.0 | ||
shadow_blur: 0 | ||
shadow_x: 0.0 | ||
shadow_y: 0.0 | ||
extra_characters: "\302\251" | ||
output_format: TYPE_BITMAP | ||
all_chars: false | ||
cache_width: 0 | ||
cache_height: 0 | ||
render_mode: MODE_SINGLE_LAYER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
font: "/assets/font/NewsGothicStd.otf" | ||
material: "/builtins/fonts/font.material" | ||
size: 38 | ||
antialias: 1 | ||
alpha: 1.0 | ||
outline_alpha: 0.0 | ||
outline_width: 0.0 | ||
shadow_alpha: 0.0 | ||
shadow_blur: 0 | ||
shadow_x: 0.0 | ||
shadow_y: 0.0 | ||
extra_characters: "" | ||
output_format: TYPE_BITMAP | ||
all_chars: false | ||
cache_width: 0 | ||
cache_height: 0 | ||
render_mode: MODE_SINGLE_LAYER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
font: "/assets/font/NewsGothicStd.otf" | ||
material: "/builtins/fonts/font.material" | ||
size: 56 | ||
antialias: 1 | ||
alpha: 1.0 | ||
outline_alpha: 0.0 | ||
outline_width: 0.0 | ||
shadow_alpha: 0.0 | ||
shadow_blur: 0 | ||
shadow_x: 0.0 | ||
shadow_y: 0.0 | ||
extra_characters: "" | ||
output_format: TYPE_BITMAP | ||
all_chars: false | ||
cache_width: 0 | ||
cache_height: 0 | ||
render_mode: MODE_SINGLE_LAYER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
font: "/assets/font/PoetsenOne-Regular.ttf" | ||
material: "/builtins/fonts/font.material" | ||
size: 20 | ||
antialias: 1 | ||
alpha: 1.0 | ||
outline_alpha: 0.0 | ||
outline_width: 0.0 | ||
shadow_alpha: 0.0 | ||
shadow_blur: 0 | ||
shadow_x: 0.0 | ||
shadow_y: 0.0 | ||
extra_characters: "\302\251" | ||
output_format: TYPE_BITMAP | ||
all_chars: false | ||
cache_width: 0 | ||
cache_height: 0 | ||
render_mode: MODE_SINGLE_LAYER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
font: "/assets/font/PoetsenOne-Regular.ttf" | ||
material: "/builtins/fonts/font.material" | ||
size: 64 | ||
antialias: 1 | ||
alpha: 1.0 | ||
outline_alpha: 0.0 | ||
outline_width: 0.0 | ||
shadow_alpha: 0.0 | ||
shadow_blur: 0 | ||
shadow_x: 0.0 | ||
shadow_y: 0.0 | ||
extra_characters: "\302\251" | ||
output_format: TYPE_BITMAP | ||
all_chars: false | ||
cache_width: 0 | ||
cache_height: 0 | ||
render_mode: MODE_SINGLE_LAYER |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[bootstrap] | ||
main_collection = /main/main.collectionc | ||
render = /render/custom.renderc | ||
|
||
[input] | ||
game_binding = /input/game.input_bindingc | ||
|
||
[display] | ||
width = 640 | ||
height = 960 | ||
|
||
[graphics] | ||
default_texture_min_filter = nearest | ||
default_texture_mag_filter = nearest | ||
|
||
[script] | ||
shared_state = 1 | ||
|
||
[project] | ||
title = WordWorm | ||
custom_resources = assets/dictionary.txt | ||
version = 2.0 | ||
|
||
[physics] | ||
debug = 0 | ||
gravity_y = -400.0 | ||
scale = 0.1 | ||
|
||
[html5] | ||
splash_image = /assets/png/splash.png | ||
htmlfile = /custom.html | ||
|
||
[android] | ||
package = com.onesevenone.wordworm | ||
version_code = 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
local data = require ("main.data") | ||
|
||
function init(self) | ||
msg.post("#camera", "acquire_camera_focus") | ||
self.target = vmath.vector3() | ||
self.pos = go.get_world_position() | ||
end | ||
|
||
local function move(self) | ||
local speed = 0.05 | ||
local v = vmath.vector3((self.target.x - self.pos.x) * speed, (self.target.y - self.pos.y) * speed, 0) | ||
self.pos = self.pos + v | ||
end | ||
|
||
function update(self, dt) | ||
move(self) | ||
go.set_position(self.pos) | ||
data.actualpos = self.pos | ||
end | ||
|
||
function on_message(self, message_id, message, sender) | ||
if message_id == hash("look_at") then | ||
self.target = message.position | ||
elseif message_id == hash("snap_to") then | ||
self.pos = message.position | ||
self.target = message.position | ||
elseif message_id == hash("reset") then | ||
go.set_position(vmath.vector3(0,0,0)) | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
name: "common" | ||
instances { | ||
id: "player" | ||
prototype: "/game/player/player.go" | ||
position { | ||
x: 64.0 | ||
y: 320.0 | ||
z: 1.0 | ||
} | ||
rotation { | ||
x: 0.0 | ||
y: 0.0 | ||
z: 0.0 | ||
w: 1.0 | ||
} | ||
scale3 { | ||
x: 1.0 | ||
y: 1.0 | ||
z: 1.0 | ||
} | ||
} | ||
scale_along_z: 0 | ||
embedded_instances { | ||
id: "view" | ||
data: "components {\n" | ||
" id: \"camera\"\n" | ||
" component: \"/game/core/game.camera\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"script\"\n" | ||
" component: \"/game/core/camera.script\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"clear\"\n" | ||
" component: \"/game/gui/clear.gui\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"gameover\"\n" | ||
" component: \"/game/gui/gameover.gui\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"tutorial\"\n" | ||
" component: \"/game/gui/tutorial.gui\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"gui\"\n" | ||
" component: \"/game/gui/game.gui\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"embedded_components {\n" | ||
" id: \"sprite\"\n" | ||
" type: \"sprite\"\n" | ||
" data: \"tile_set: \\\"/main/main.atlas\\\"\\n" | ||
"default_animation: \\\"bg\\\"\\n" | ||
"material: \\\"/builtins/materials/sprite.material\\\"\\n" | ||
"blend_mode: BLEND_MODE_ALPHA\\n" | ||
"\"\n" | ||
" position {\n" | ||
" x: 320.0\n" | ||
" y: 480.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"" | ||
position { | ||
x: 0.0 | ||
y: 0.0 | ||
z: 0.0 | ||
} | ||
rotation { | ||
x: 0.0 | ||
y: 0.0 | ||
z: 0.0 | ||
w: 1.0 | ||
} | ||
scale3 { | ||
x: 1.0 | ||
y: 1.0 | ||
z: 1.0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
aspect_ratio: 1.78 | ||
fov: 45.0 | ||
near_z: 0.1 | ||
far_z: 1000.0 | ||
auto_aspect_ratio: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "game" | ||
scale_along_z: 0 | ||
embedded_instances { | ||
id: "loader" | ||
data: "components {\n" | ||
" id: \"script\"\n" | ||
" component: \"/game/core/loader.script\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"embedded_components {\n" | ||
" id: \"level1\"\n" | ||
" type: \"collectionproxy\"\n" | ||
" data: \"collection: \\\"/game/levels/level.collection\\\"\\n" | ||
"exclude: false\\n" | ||
"\"\n" | ||
" position {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"" | ||
position { | ||
x: 0.0 | ||
y: 0.0 | ||
z: 1.0 | ||
} | ||
rotation { | ||
x: 0.0 | ||
y: 0.0 | ||
z: 0.0 | ||
w: 1.0 | ||
} | ||
scale3 { | ||
x: 1.0 | ||
y: 1.0 | ||
z: 1.0 | ||
} | ||
} |
Oops, something went wrong.