Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webrtc merge #38

Open
wants to merge 85 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
32aaa60
WebRTC support.
Jan 13, 2013
b642e8b
Added remote URL div to game page.
Jan 16, 2013
935d64d
Minor updates to support WebRTC peer connection.
Jan 25, 2013
d20f53d
Updated to support new webrtc sockets.
Jan 30, 2013
d570815
Added build output.
Jan 30, 2013
ece3924
Revert "Added build output."
Jan 30, 2013
4833dce
Automatic serve and debug.
Jan 31, 2013
e6620c3
Added auto-connect to low map.
Jan 31, 2013
296b003
Added new multiplayer map.
Feb 6, 2013
c7d91b7
Added new (multiplayer) map.
Feb 6, 2013
151bf20
Testing for 'webrtc-session' instead of 'join' to determine host/peer…
Feb 8, 2013
6236a2d
Added a multiplayer join page (for server listing).
Feb 11, 2013
bd25723
Updated web interface.
Feb 11, 2013
e86c3ca
Updated to use long polling.
Feb 11, 2013
0d2822c
Added some text to the join page.
Feb 11, 2013
98e06e7
Updated new multiplayer map. package.cfg files are not optimized, so …
Feb 12, 2013
6aaa657
Updated default connect port.
Feb 21, 2013
0a5a2eb
Added list.html to replace join.html.
Feb 21, 2013
82cb26a
Removed join.html.
Feb 21, 2013
0b7fc04
Remove pause when exiting fullscreen. This causes networking code to …
Feb 21, 2013
353aa65
Updated listing code.
Feb 21, 2013
9012bb5
Updated level assets and Makefile.
Mar 4, 2013
fa0ee8d
Added bunker.
Mar 4, 2013
444f746
Updated new map. Added debug flags to other maps so they will run.
Mar 4, 2013
4419cca
Removed connection limit from server list.
Mar 4, 2013
820fa00
Update gitignore to leave build output.
Mar 5, 2013
23734d6
Fixed a formatting issue.
Mar 5, 2013
e2a0193
Added a new map. Increased TOTAL_MEMORY (new map is biiiig).
Mar 13, 2013
603c446
Updated maps.
Mar 15, 2013
d1f8b0e
Merge branch 'master' into experimental-webrtc-support-merge
Mar 16, 2013
7f073fe
Updated maps and waypoints.
Mar 16, 2013
0431def
Added missing assets to Makefile. Refactoring game-setup.
Mar 17, 2013
7583022
Removing new assets.
Mar 18, 2013
af35f0d
Updated game files.
Mar 18, 2013
3432042
Merge branch 'master' into experimental-webrtc-support-merge
Mar 19, 2013
2ab1f05
Memory is now a power of 2. Updated water effects in multiplayer maps.
Mar 19, 2013
95a8f19
Switched back to effic for now. Added health pickup assets from gk.
Mar 19, 2013
f039580
Updated maps, added some smaller ones. Maps 6 and 10 have been reconf…
Mar 19, 2013
9018dcf
Updated Makefile.
Mar 19, 2013
de20c25
Ignore output directory.
Mar 19, 2013
f86db4d
Updated matchmaking list and screenshots (from secretrobotron).
Mar 19, 2013
5582f92
DS_Store in gitignore and loading screenshots
secretrobotron Mar 20, 2013
0d2fb09
Merge pull request #2 from secretrobotron/experimental-webrtc-support…
Mar 20, 2013
1c4ef5f
Updated new map descriptions.
Mar 20, 2013
03d0421
removed levels from index
secretrobotron Mar 20, 2013
b0dffba
Updated main page.
Mar 20, 2013
75124be
Merge remote-tracking branch 'secretrobotron/experimental-webrtc-supp…
Mar 20, 2013
2057340
Updated map list. Disabled some webrtc checks so you can still play s…
Mar 20, 2013
2c38d3d
Updated builds for older maps.
Mar 20, 2013
7b7b698
Removing some of the maps from the list.
Mar 21, 2013
73f0abf
Updated source to move webrtc config into bananabread code. Updated p…
Mar 21, 2013
742d136
Added some automated publishing. Script will package essential files …
Mar 21, 2013
4f8aade
Split out textures into their own data files to conserve space. Updat…
Mar 21, 2013
b538daf
Updated colony map.
Mar 21, 2013
500706a
Removed cyber map from manifest.
Mar 21, 2013
b4da3ac
Fixed broken setup_low.
Mar 21, 2013
c9ea68b
Updated to use optimized assets. Will need to add source assets back …
Mar 21, 2013
65b8b03
Disabled maps with broken textures.
Mar 21, 2013
786675a
Disabled colos and two towers, as they have busted textures. Fixed br…
Mar 22, 2013
663885b
Updated level text.
Mar 22, 2013
511e9c2
Fixed wrongly-scaled textures for Arena and Two Towers.
Mar 22, 2013
13f4d0e
Re-listed Arena and Two Towers.
Mar 22, 2013
1afa2ea
Added a copy of socket.io.js to the project.
Mar 22, 2013
da5d9e9
Fixed issues with non-SSL broker and demo site.
Mar 22, 2013
e939e6b
Updated assets for future textureset.
Mar 23, 2013
2be5dba
Add detection for multiplayer support. Shouldn't try to host or join …
Mar 26, 2013
65ac789
Updated textures.
Mar 26, 2013
108b9a2
Updated list to add URL filtering.
Mar 28, 2013
bb02481
Remove hardcoded app URL. Derp.
Mar 28, 2013
0cfd6ab
Add filter-url query parameter.
Mar 29, 2013
428651b
Merge remote-tracking branch 'upstream/master' into experimental-webr…
Apr 4, 2013
67a1ba1
Moving code out of library.js.
Apr 12, 2013
09c2cac
Merge remote-tracking branch 'upstream/master' into experimental-webr…
Apr 12, 2013
583ed18
Add some multiplayer logic to game-setup. Update manifest.
Apr 12, 2013
e06507c
Cache flag.
May 7, 2013
41c14f3
Merge branch 'master' into experimental-webrtc-support-merge
May 7, 2013
9b614de
Enable SOCKET_WEBRTC.
May 14, 2013
c842094
Ignore build output.
May 14, 2013
1545c89
Revert gitignore.
May 14, 2013
03e89a5
Merge branch 'master' into experimental-webrtc-support-merge
Jun 5, 2013
3e588d4
Ignore .bc files
Jun 5, 2013
ea3ee12
Remove .bc file
Jun 5, 2013
95568b7
Flag fixes.
Jun 6, 2013
815e65a
Remove build output.
Jun 6, 2013
a892468
Merge branch 'master' into master-merge
Aug 28, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output
bananabread.zip
.DS_Store
8 changes: 7 additions & 1 deletion cube2/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.o
*.gch
*.bc
src/native/fpsgame/*.h
src/native/engine/*.h
src/native/shared/*.h
Expand All @@ -23,4 +24,9 @@ restore.cfg
servers.cfg
*.diff
*.crn

game/preload_*.js
bb*.js
bb*.js.mem
*.data
server*.html
server*.html.mem
Binary file added cube2/assets/screenshots/eight.jpg
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 cube2/assets/screenshots/eight_mini.jpg
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 cube2/assets/screenshots/nine.jpg
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 cube2/assets/screenshots/nine_mini.jpg
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 cube2/assets/screenshots/seven.jpg
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 cube2/assets/screenshots/seven_mini.jpg
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 cube2/assets/screenshots/six.jpg
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 cube2/assets/screenshots/six_mini.jpg
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 cube2/assets/screenshots/ten.jpg
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 cube2/assets/screenshots/ten_mini.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
279 changes: 279 additions & 0 deletions cube2/css/list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'), local('Open-Sans-Italic'),
url('../assets/fonts/OpenSans-Italic.ttf') format('truetype');
}

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('Open-Sans-Bold'),
url('../assets/fonts/OpenSans-Bold.ttf') format('truetype');
}

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('Open-Sans-Regular'),
url('../assets/fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'Bebas';
font-weight: 400;
src: local('Bebas'), local('Bebas'),
url('../assets/fonts/BEBAS___-webfont.ttf') format('truetype');
}

html {
width: 100%;
height: 100%;
}

body {
font: 14pt 'Open Sans';
background: url('../assets/bg.jpg');
background: -moz-linear-gradient(left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,1) 100%), url('../assets/bg.jpg'); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,1)), color-stop(20%,rgba(0,0,0,0)), color-stop(80%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))), url('../assets/bg.jpg'); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 80%,rgba(0,0,0,1) 100%), url('../assets/bg.jpg'); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 80%,rgba(0,0,0,1) 100%), url('../assets/bg.jpg'); /* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 80%,rgba(0,0,0,1) 100%), url('../assets/bg.jpg'); /* IE10+ */
background: linear-gradient(to right, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 80%,rgba(0,0,0,1) 100%), url('../assets/bg.jpg'); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000',GradientType=1 ); /* IE6-9 */
color: rgb(200, 200, 200);
margin: 1em;
padding: 1em;
}

h1, h2, h3, h4, .game-name {
font-family: 'Bebas';
text-shadow: rgba(0, 0, 0, 0.9) 0.1em 0.1em 0.5em;
}

.game-name {
margin: 0;
text-shadow: rgba(0, 0, 0, 0.9) 0.15em 0.15em 0.2em;
}

#main {
width: 90%;
margin: 0 auto;
position: relative;
}

#join-container {
width: 65%;
position: absolute;
right: 0;
top: 0;
}

#create-container {
width: 30%;
position: absolute;
left: 0;
top: 0;
}

#create-container .game-image {

}

ul {
padding: 0;
list-style: none;
padding: 5px;
}

ul li {
height: 120px;
box-shadow: 2px 2px 5px rgba(25, 25, 25, 0.9);
background: rgba(0, 0, 0, 0.5);
padding: 10px;
transition: background 0.05s;
-moz-transition: background 0.05s;
-webkit-transition: background 0.05s;
-o-transition: background 0.05s;
-ms-transition: background 0.05s;
cursor: pointer;
overflow: hidden;
position: relative;
}

.game-container {
position: relative;
height: 100%;
width: 100%;
}

.game-name {
position: absolute;
top: 0;
left: 0;
}

.game-name {
z-index: 2;
}

.game-time {
position: absolute;
top: 0;
right: 0;
}

.game-users {
position: absolute;
bottom: 0;
right: 0;
}

#join-modal {
position: fixed;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 10;
height: 100%;
width: 100%
}

#join-game-container {
width: 80%;
height: 120px;
margin: 0 auto;
position: relative;
margin-top: -60px;
top: 50%;
background: rgba(50, 50, 50, 1);
padding: 10px;
}

#broker-url {
position: fixed;
bottom: 0;
right: 0;
font-size: .5em;
}

.join-game-button {
cursor: pointer;
height: 3em;
width: 6em;
margin: 10px;
text-align: center;
line-height: 3em;
box-shadow: 2px 2px 5px rgba(25, 25, 25, 0.9);
display: inline-block;
color: #fff;
}

#join-game-buttons {
position: absolute;
left: 0;
bottom: 0;
margin: 5px;
z-index: 5;
}

.join-button {
background: rgb(47, 146, 226);
}

.join-button:hover {
background: rgb(67, 166, 226);
}

.cancel-button {
background: rgb(218, 61, 30);
}

.cancel-button:hover {
background: rgb(218, 81, 50);
}

#join-game-container .game-container {
background: rgba(50, 50, 50, 1);
}

ul li {
margin-bottom: .5em;
}

ul li:hover .game-image {
opacity: 1.0;
}

ul li a {
color: inherit;
}

.game-image {
position: absolute;
top: 0;
left: 0;
z-index: 0;
height: 110%;
opacity: 0.5;
background-image: url('../assets/screenshots/22_mini.jpg');
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 100%;
transition: opacity 0.05s;
-moz-transition: opacity 0.05s;
-webkit-transition: opacity 0.05s;
-o-transition: opacity 0.05s;
-ms-transition: opacity 0.05s;
}

.game-image.one {
background-image: url('../assets/screenshots/22_mini.jpg');
}

.game-image.two {
background-image: url('../assets/screenshots/15_mini.jpg');
}

.game-image.three {
background-image: url('../assets/screenshots/14_mini.jpg');
}

.game-image.four {
background-image: url('../assets/screenshots/03_mini.jpg');
}

.game-image.five {
background-image: url('../assets/screenshots/07_mini.jpg');
}

.game-image.six {
background-image: url('../assets/screenshots/six_mini.jpg');
}

.game-image.seven {
background-image: url('../assets/screenshots/seven_mini.jpg');
}

.game-image.eight {
background-image: url('../assets/screenshots/eight_mini.jpg');
}

.game-image.nine {
background-image: url('../assets/screenshots/nine_mini.jpg');
}

.game-image.ten {
background-image: url('../assets/screenshots/ten_mini.jpg');
}

.game-type {
font-size: .8em;
position: absolute;
bottom: 0;
right: 0;
}
Loading