Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
benjames-171 committed Sep 2, 2019
1 parent 995fe60 commit 7a37e2d
Show file tree
Hide file tree
Showing 72 changed files with 93,047 additions and 0 deletions.
84,095 changes: 84,095 additions & 0 deletions assets/dictionary.txt

Large diffs are not rendered by default.

Binary file added assets/font/NewsGothicStd.otf
Binary file not shown.
Binary file added assets/font/PoetsenOne-Regular.ttf
Binary file not shown.
17 changes: 17 additions & 0 deletions assets/font/button.font
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
17 changes: 17 additions & 0 deletions assets/font/fixed.font
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
17 changes: 17 additions & 0 deletions assets/font/fixed_large.font
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
17 changes: 17 additions & 0 deletions assets/font/small.font
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
17 changes: 17 additions & 0 deletions assets/font/title.font
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 added assets/ogg/Jingle_Lose_00.ogg
Binary file not shown.
Binary file added assets/ogg/Jingle_Win_00.ogg
Binary file not shown.
Binary file added assets/ogg/Pickup_01.ogg
Binary file not shown.
Binary file added assets/ogg/Pickup_02.ogg
Binary file not shown.
Binary file added assets/ogg/clear.ogg
Binary file not shown.
Binary file added assets/ogg/delete.ogg
Binary file not shown.
Binary file added assets/ogg/music.ogg
Binary file not shown.
Binary file added assets/ogg/no.ogg
Binary file not shown.
Binary file added assets/ogg/short.ogg
Binary file not shown.
Binary file added assets/ogg/tap.ogg
Binary file not shown.
Binary file added assets/png/about.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/png/bg.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/png/button.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/png/dialog.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/png/felt.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/png/head.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/png/logo.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/png/player.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/png/pspbrwse.jbf
Binary file not shown.
Binary file added assets/png/splash.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/png/tiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions game.project
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

31 changes: 31 additions & 0 deletions game/core/camera.script
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

152 changes: 152 additions & 0 deletions game/core/common.collection
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
}
}
5 changes: 5 additions & 0 deletions game/core/game.camera
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
55 changes: 55 additions & 0 deletions game/core/game.collection
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
}
}
Loading

0 comments on commit 7a37e2d

Please sign in to comment.