[REQ] WM 6.5 Titanium Sports Ticker - BOUNTY Currently at $80 - Windows Mobile Development and Hacking General

Bounty upped to $80 Graphic concept pics still needed.
The concept is simple, stream sports scores to Titanium via a panel..
First thoughts on ideal panel.
The panel should incorporate scores from all the major sports we all love.
The panel should allow customization (sports)
The panel should auto refresh at user selected intervals or only by selecting a soft button.
Wish list:
Fading transitions (similar to PointUI RSS feeds)
RSS feeds for the selected sports.
Customizable panel backgrounds (helmet, ball, logo pics)
Favorite teams (condensed view for only your favorite teams)
Schedules for upcoming games
Ability for data to display on S2U2 or default WM lockscreen
Hopefully there is interest out there for this.. Chip in for the dev who makes the first fully working panel!!!

Pocket Sportscenter
Maybe you can start here...?
I run this on my stock Kaiser WM6 ROM, but I only use it during Football season. On WM6 it can scroll (not really scrolling though) on the carrier line, or as a today plugin. It doesn't show actual team logo's, but it will show league logo's as they scores switch (NFL, NBA, NCAA, etc)
http://forum.ppcgeeks.com/showthread.php?t=4161
I'd like to have this app run on the S2U2 screen so I don't have to unlock the phone the check sports scores... but no luck on anybody making that happen.

Great start.. Perhaps we can bridge communication with Cozboogie to get similar data feeds (very extensive) and try to reformat for Titanium. S2U2 view and lockscreen view added to wishlist.

norkoastal said:
Great start.. Perhaps we can bridge communication with Cozboogie to get similar data feeds (very extensive) and try to reformat for Titanium. S2U2 view and lockscreen view added to wishlist.
Click to expand...
Click to collapse
that sounds freaking awesome. i am no coder by any means. but im going to try.

Really would love this....
Half of the time I spend on my phone is checking sports scores....this would be amazing.

The pocket Sports Center app I posted is actually REALLY nice. If it can be improved on then it would definitely be one of the best apps I have. It's not much for eye candy though
Its slightly customizable (font size and color) so you can make sure it stands out against whatever background you have, you can choose which sports are shown/updated, as well has how long each score is shown on the screen.
You can pick how often it updates as well.
And I assumed that since it can either run on the operator line, or as a today plugin it just *seemed* like it can be run just about anywhere.
Back when i first got it I asked if it can somehow be integrated into S2U2. Got no answer so i gave up my quest. If I could get that without having to change ROM's I might be even happier!

I've upped the original bounty to $35.... Please pledge some coffee/bounty money for some devs to get the inspiration to code this idea...
Titanium Sports has a nice ring to it

Fantasy Sports
It would be awesome to also incorporate fantasy sports data, although I know that is a bit of a pipe dream. Just posting to see if there is any continued interest with this.

Great idea... A Fantasy spinoff would make a great addition.. Getting the info from a secure site might take some dev work similar to the twitter panels being made, but should be doable..

It looks like this is dead.
Too bad, I loved the idea.

augie7107 said:
It looks like this is dead.
Too bad, I loved the idea.
Click to expand...
Click to collapse
I think someone will jump on this eventually.. it is a niche tool for the most part and can piggyback off of other CPR development (stocks)

norkoastal said:
Bounty upped to $35 Graphic concept pics still needed.
The concept is simple, stream sports scores to Titanium via a panel..
First thoughts on ideal panel.
The panel should incorporate scores from all the major sports we all love.
The panel should allow customization (sports)
The panel should auto refresh at user selected intervals or only by selecting a soft button.
Wish list:
Fading transitions (similar to PointUI RSS feeds)
RSS feeds for the selected sports.
Customizable panel backgrounds (helmet, ball, logo pics)
Favorite teams (condensed view for only your favorite teams)
Schedules for upcoming games
Ability for data to display on S2U2 or default WM lockscreen
Hopefully there is interest out there for this.. Chip in for the dev who makes the first fully working panel!!!
Click to expand...
Click to collapse
ok......let me do it a try.....
first I need you gyes tell me whitch web side you usually go for getting these information?
I'm living in Taiwan so I dont think you gyes can understand the information from mine it's Chinese中文你們看不懂吧

Here are some sources I found:
http://sports.espn.go.com/mlb/scoreboard (American League, National League baseball)
http://sports.espn.go.com/nba/scoreboard (Basketball)
http://sports.espn.go.com/nfl/scoreboard (NFL)
US Soccer
http://soccernet.espn.go.com/scoreboard?league=usa.1&cc=5901 (US Soccer)
All
http://soccernet-assets.espn.go.com/scoreboard?league=all&cc=5901 (US and European Soccer)
College
http://scores.espn.go.com/ncf/scoreboard (Football)
http://scores.espn.go.com/ncb/scoreboard (Mens Basketball)
Nascar (Not sure if there is a live ticker for Race Days or not)
All ESPN sourced.
If I get some time later this week, I will work on the Web Downloader side to scrape the scores off one of the ESPN sites.
Then using Mortscript, work on building a working sample of the sports ticker.
It will require a data call to get updated scores.
One idea is to look at the 'event'. If the event is not finished, do a data call per 'non-closed' events to try and limit the amount of data calls required to get updates when there really are no updates.

kane159 said:
ok......let me do it a try.....
first I need you gyes tell me whitch web side you usually go for getting these information?
I'm living in Taiwan so I dont think you gyes can understand the information from mine it's Chinese中文你們看不懂吧
Click to expand...
Click to collapse
Awesome.. Thanks for jumping on this idea... Cant wait for a beta..
Here are the common sites used in the USA for sports scores.
FYI, Many other Titanium tools use Mortscripts to tap into yahoo information..
Yahoo Sports:
Football AM: http://sports.yahoo.com/nfl/scoreboard;_ylt=AiA2VfkohVCCm2k5LRRLdsNDubYF
Baseball AM: http://sports.yahoo.com/mlb/scoreboard;_ylt=AiA2VfkohVCCm2k5LRRLdsMRvLYF
Basketball AM: http://sports.yahoo.com/nba/scoreboard;_ylt=AiA2VfkohVCCm2k5LRRLdsO8vLYF
ESPN:
Football AM: http://scores.espn.go.com/nfl/scoreboard
Baseball AM: http://scores.espn.go.com/mlb/scoreboard
Basketball AM http://scores.espn.go.com/mlb/scoreboard
Fox Sports:
Football AM: http://msn.foxsports.com/nfl/scores
Baseball AM: http://msn.foxsports.com/mlb/scores
Basketball AM: http://msn.foxsports.com/nba/scores

Well, ran into one issue with coding the readfile for Fox Sports.
Reading current day scores when the game has not started Mortscript throws an error saying url is too big.
Reading past days scores it grabs the finished scores just fine.
Code:
year = FormatTime("Y")
month = FormatTime("m")
if (month < 10)
month = SubStr(month, 2, 1)
endif
day = FormatTime("d")
if (day < 10)
day = SubStr(day, 2, 1)
endif
date = year & "-" & month & "-" & (day - 1)
link = readfile("http://msn.foxsports.com/mlb/scores?scheduleDayCode=" & date & "&season=Regular")
#link = readfile("http://msn.foxsports.com/mlb/scores?scheduleDayCode=2009-7-27&season=Regular")
game = split(link, "Start Final", TRUE);
count = 0
ForEach g in array (game)
search="sbScoreboxAwayTeamWithRecord"
pos1 = find(g, search)+length(search)+32
pos2 = find(g, "</", pos1)
Awayteam = SubStr(g, pos1, pos2-pos1)
Awayteam = replace(Awayteam, ">", "")
search="sbScoreboxRunsFinal"
pos1 = find(g, search)+length(search)+2
pos2 = find(g, "</", pos1)
AwayteamScore = SubStr(g, pos1, pos2-pos1)
search="sbScoreboxHomeTeamWithRecord"
pos1 = find(g, search)+length(search)+32
pos2 = find(g, "</", pos1)
Hometeam = SubStr(g, pos1, pos2-pos1)
Hometeam = replace(Hometeam, ">", "")
search="sbScoreboxRunsFinal"
pos3 = find(g, search, pos1)+length(search)+2
pos2 = find(g, "</", pos3)
HometeamScore = SubStr(g, pos3, pos2-pos3)
if (count > 0)
Message( Awayteam & " " & AwayteamScore & " " & Hometeam & " " & HometeamScore )
endif
count = count + 1
EndForEach
If you take out the (day - 1) and make it just day, it will throw an error.
Part of this issue is that when the game is complete, the score section changes from sbScoreboxRuns to sbScoreboxRunsFinal.
Still working on a solution.
The above code works to grab final scores of previous days games (MLB only for now).
Just copy code to note pad, save as MLB.mscr then copy to your PDA. If you have Mortscript installed, simply click on it and for now it will pop up message box with the final scores.
Just wanted to share some progress for now.
Still working on it.

Any chance the ticker can include hockey scores from the NHL? I'll jump in on the bounty if it's possible.
Nate

Should be able to do that with this:
http://msn.foxsports.com/nhl/scores
Its the same format at the rest of the msn.foxsports scores.

New Links to use due to file size issues:
Mobile Foxsports
MLB
http://sports.mobile.msn.com/en-us/mlb/tdscores.aspx
Other sports follow similar link patern
NFL
http://sports.mobile.msn.com/en-us/nfl/tdscores.aspx
Will try and update my test Morscript code to look at these later today.

Okay, yet another testing script.
Those that have Mortscript, I need someone to test this update.
Save the attached file to your phone, rename from .txt to .mscr (can't attach .mscr so renamed it to .txt so I could attach it).
You need active data to use.
On first screen, click on Today
Second screen, click on MLB (only one that has code behind it currently).
I am at work so can't test this right now so need someone out there to test.
If works, should get a message box saying Final.
Thanks.

Great Progress.... Will test later..

Related

Need Developer for Today Plug-In (Live Sports Scores)

Would anyone be interested in developing a today screen plugin?
I found this "secret" live score URL via ESPN that displays sports scores in real time.
http://sports.espn.go.com/mlb/bottomline/scores
http://sports.espn.go.com/nba/bottomline/scores
http://sports.espn.go.com/nhl/bottomline/scores
I don't know how hard it would be for someone to develop something to parse the string that is given from the URL and present it in a decent fashion.
If anyone is up for the challenge please let me know.
Unforuntately it's not in normal RSS layout, or I would just use an RSS Reader.
Thanks.
I make rss scrapers as a hobby. What's the output of the url meant to look like?
Could you show me what to scrape out of:
http://sports.espn.go.com/mlb/bottomline/scores
and then I'll try to reformat it as a feed.
V
Appreciate the reply Vijay.
Below is the string split up so it's easier for me to explain
&mlb_s_delay=120
&mlb_s_stamp=0726152831
&mlb_s_left1=^Detroit%204%20%20%20Cleveland%201%20(FINAL)
&mlb_s_right1_1=W:%20Verlander%20L:%20Sabathia%20S:%20Jones
&mlb_s_right1_count=1
&mlb_s_url1=http://sports.espn.go.com/mlb/boxscore?gameId=260726105
&mlb_s_left2=Chicago%20Cubs%200%20%20%20^NY%20Mets%201%20(FINAL%20-%2010%20INNINGS)
&mlb_s_right2_1=W:%20Heilman%20L:%20Rusch&mlb_s_right2_count=1
&mlb_s_url2=http://sports.espn.go.com/mlb/boxscore?gameId=260726121
&mlb_s_left3=^LA%20Angels%2015%20%20%20Tampa%20Bay%206%20(FINAL)
&mlb_s_right3_1=W:%20Gregg%20L:%20Fossum
&mlb_s_right3_count=1
&mlb_s_url3=http://sports.espn.go.com/mlb/boxscore?gameId=260726130
&mlb_s_left4=^Minnesota%207%20%20%20Chicago%20Sox%204%20(FINAL)
&mlb_s_right4_1=W:%20Silva%20L:%20Buehrle%20S:%20Nathan
&mlb_s_right4_count=1
&mlb_s_url4=http://sports.espn.go.com/mlb/boxscore?gameId=260726104
All I care about is the scores and times
&mlb_s_left1=^Detroit%204%20%20%20Cleveland%201%20(FINAL)
The result should look like so: Detroit (4) at Cleveland (1) - Final
&mlb_s_left2=Chicago%20Cubs%200%20%20%20^NY%20Mets%201%20(FINAL%20-%2010%20INNINGS)
The result should look like so: Chicago Cubs (0) at NY Mets (1) - Final
&mlb_s_left3=^LA%20Angels%2015%20%20%20Tampa%20Bay%206%20(FINAL)
The result should look like so: LA Angels (15) at Tampa Bay (6) - Final
&mlb_s_left13=Cincinnati%20at%20Houston%20(8:05%20PM%20ET)
The result should look like so Cincinnati at Houston - 8:05pm
There is one more variance. Which was not listed in the string at the time I wrote this. But it's something like so...
&mlb_s_left1=^Detroit%204%20%20%20Cleveland%201%20(10TH%20INNING)
The result should look like so Detroit (4) at Cleveland (1) - 10th Inning
Hmm you said you will reformat it as a feed.
I could do that using PHP.
Didn't consider that option.
Yep that was easy enough.
Here's the link if anyone else wants to use it.
Only MLB scores.
http://www.mpiii.com/mlb.php
I would still love it as a seperate today plugin if anyone is up for that.
Good stuff. Glad to be of help(!)
I love writing RSS feed scrapers in php, for some reason... it means I can now read all my days news in one huge batch print.
V

RSS Feeds - Live Scores MLB, NBA, NHL, NFL, NCAA, WNBA

Here's a little contribution from myself.
I came across a "secret" URL which gives live scores from ESPN. The data was not in RSS format, so wasn't very useable.
I've gone ahead and created RSS feeds to allow people to use the info in their RSS Readers.
MLB
http://www.mpiii.com/scores/mlb.php
NFL
http://www.mpiii.com/scores/nfl.php
NBA
http://www.mpiii.com/scores/nba.php
NHL
http://www.mpiii.com/scores/nhl.php
NCAA
http://www.mpiii.com/scores/ncaa.php
WNBA
http://www.mpiii.com/scores/wnba.php
I have also attached a zip file with the php files if you care to host them yourselves.
MPIIIMan said:
Here's a little contribution from myself.
I came across a "secret" URL which gives live scores from ESPN. The data was not in RSS format, so wasn't very useable.
I've gone ahead and created RSS feeds to allow people to use the info in their RSS Readers.
MLB
http://www.mpiii.com/scores/mlb.php
NFL
http://www.mpiii.com/scores/nfl.php
NBA
http://www.mpiii.com/scores/nba.php
NHL
http://www.mpiii.com/scores/nhl.php
NCAA
http://www.mpiii.com/scores/ncaa.php
WNBA
http://www.mpiii.com/scores/wnba.php
I have also attached a zip file with the php files if you care to host them yourselves.
Click to expand...
Click to collapse
Anyway you can do that with MLB transactions?
I've been looking and looking for a RSS feed of MLB transactions as they are reported. I play in a pretty competitve Fantasy Baseball League so any extra help is nice.
Thanks
David
No. The "secret" feed I found is only for the scores.
Here are ESPN's standard RSS Feeds.
http://sports.espn.go.com/espn/rss/index
I guess I miss understood your initial post. I read it to mean that you somehow automated a process.
With that thinking I was hoping you could do the samething with the transaction wire.
Sorry for the misunderstanding.
David
hey MPiiiMan thanks for the info, and the feeds...im new to this rss thinggy.. and i was looking for a feed that would just give me the updated scores...is there any way to make a feed with updated odds??? or can you point me in the direction on how to make it??? thanks in advance...
Odds? No way for me to get that info.
Like I said in my first post... I just happened to stumble across a link that provided just the scores.
can you post the "secret" URL? Or if not, PM it to me?
Thanks...
Download the files above.
The URL is in there.
no idea where you got 'em. But all I can say is THANKS. The URL's are gonna save me a *LOT* of hassle.
-Mc
Beautiful gesture, If you're ever in Baton Rouge I just have to buy you a beer for this discovery.
Thanks, I registered just to get this zip file.
So far, looks awesome !
Thanks again !
Thanks for these URLs! a simple mortscript to parse the files and I'll be all set with my own custom sports ticker line....
prscott1 said:
Thanks for these URLs! a simple mortscript to parse the files and I'll be all set with my own custom sports ticker line....
Click to expand...
Click to collapse
Any tutorial on this subject? I would love a sports ticker on my device.
texas said:
Anyway you can do that with MLB transactions?
I've been looking and looking for a RSS feed of MLB transactions as they are reported. I play in a pretty competitve Fantasy Baseball League so any extra help is nice.
Thanks
David
Click to expand...
Click to collapse
MLB Rumors has a good one for transactions/rumors http://feedproxy.google.com/MlbTradeRumors?format=xml
but if you want just official transactions, they also have http://feeds.feedburner.com/MLBTRTransactions
hi,
here is a mortscript to get the football data directly from:
http://sports.espn.go.com/nfl/bottomline/scores
screenshot included. you will need to change the 'cname' variable to the name of your ISP connection. it shows schedules as well (when there are any on that page).
enjoy!!
--- begin script ---
#
# get some football stats from espn
# by: tgwaste - 2009.08.18
#
url = "http://sports.espn.go.com/nfl/bottomline/scores"
cname = "T-Mobile Data"
vibrate(100)
if (regread("HKLM", "System\State\Connections", "Count") = 0)
connect(cname)
endif
msg = "[scores]^NL^"
did = 0
hidewaitcursor
stream = readfile(url)
foreach entry in split(stream, "&nfl", 0)
if (find(entry, "s_left") ne "0")
entry = replace(entry,"%20"," ")
split(entry, "=", 1, a, b)
if (find(entry," at ") ne "0")
if (did eq "0")
msg = msg & "^NL^^NL^[schedule]^NL^"
did = 1
endif
split(b, " at ", 1, team1, team2)
split(team2, "(", 1, team2, info)
split(info, ")", 1, info, j)
else
split(b, " ", 1, team1, b)
split(b, "(", 1, team2, info)
split(info, ")", 1, info, j)
endif
if (find(team2,"^") ne "0")
tmp = team1
team1 = team2
team2 = tmp
endif
team1 = replace(team1,"^","")
team2 = replace(team2,"^","")
info = replace(info,"FINAL","final")
msg = msg & team1 & " - " & team2 & " -- " & info & "^NL^"
endif
endforeach
setmessagefont(8,Tahoma)
sleepmessage(120,msg,"football status",1)
--- end script ---
This is awesome! I don't know much about feeds. Is there anyway from this to extract one of the teams and only display their content?
For example, I have built a mobile webapplet for iPhones (http://www.TNmobileFB.com) that has shedules and scores for the Titans and the Tennessee Vols. Right now, I'm manually editing the HTML after a game is over to update the score and indicate a win or loss. I have the schedule built but I wonder if there's a way to take this data and let it automatically populate the scores on my site once they're available?
Does that make sense??
Any help would be GREATLY appreciated!
MPIIIMan said:
Here's a little contribution from myself.
I came across a "secret" URL which gives live scores from ESPN. The data was not in RSS format, so wasn't very useable.
I have also attached a zip file with the php files if you care to host them yourselves.
Click to expand...
Click to collapse
Thanks for the coding on how to setup the NCAA feed via RSS.
I modified it for college football and really like it.
I was curious is you knew the URL for setting specific conference/division scores. For instance, the URL for http://sports.espn.go.com/ncf/bottomline/scores gives the Top 25 since that is the default.
But I'd love to be able to set it up to be just a given division or conference, like FCS (formerly I-AA).
Any tips?
Thanks,
Q
MPIIIMan said:
Here's a little contribution from myself.
I came across a "secret" URL which gives live scores from ESPN. The data was not in RSS format, so wasn't very useable.
I've gone ahead and created RSS feeds to allow people to use the info in their RSS Readers.
MLB
http://www.mpiii.com/scores/mlb.php
NFL
http://www.mpiii.com/scores/nfl.php
NBA
http://www.mpiii.com/scores/nba.php
NHL
http://www.mpiii.com/scores/nhl.php
NCAA
http://www.mpiii.com/scores/ncaa.php
WNBA
http://www.mpiii.com/scores/wnba.php
I have also attached a zip file with the php files if you care to host them yourselves.
Click to expand...
Click to collapse
I can't seem to find a clean simple WinMobile app to supply sports scores. Something like SportsTap for the iPhone. I came across this post and kind of liked the RSS idea. I have never messed around with this before. I loaded SPB Insight and have a question. I had to cut and paste the url's into SPB Insight. I did not see anywhere within SPB Insight that referenced PHP files. How do I use the attached files that MPIIIMan posted here, specifically the image files. I want the league logo's to show.
Thanks in advance for anyones help here.
Hi,
I have been working on a Status Ticker that posts to the carrier name panel on the Today screen.
Like Personalizer and Op-Mon except instead of your name I have it tickering bits of info.
The ticker should also show up in your dialer and on the incoming calls instead of the network carrier. On my phone it used to say "Sprint"
The TWG script was just the ticket.
I updated my script so it would ticker your sports scores and schedule.
Right now it checks the data every five minutes or so. I dont know how often it is updated but this checking period of course could be adjusted.
Once running if you want to stop it just run TWG-FootballStats2Kill.mscr
Let me know if you want it different.
Thanks.
You can get it over here:
http://forum.xda-developers.com/showthread.php?p=4781595
Many thanks to the original poster!!

[APP][2009-08-17] Departure - get & filter train departures for german stations

Departure
I've created this little application for my own needs and thought maybe someone likes it too.
The main purpose is to get the latest departures for specified train stations and filter the ones you want to see.
Download at http://departure.codeplex.com
Current Version: 0.5.3 (Released 17 Aug 2009)
Features:
unlimited number of stations
each station has its own filters
filter by train name, train direction, station platform
countdown for selected departure
shows if a train is late
kinetic scrolling
FAQ:
How do I use the filters?
You need to seperate them using a ";".
Why I can't see Train XYZ?
First make sure you selected the transports for this station.
Check that you set up the filters correctly.
The data the tool retrieves is only available for the next hour.
How to use the webservice?
This is currently tested by some friends and myself.
If it works well I might open it to all.
How can I add my country?
This is currently not possible but in a future version I will add plugins for other data sources.
It would be a great app for french users especially at the moment since we've got a rude strike lol
Bingoig11 said:
It would be a great app for french users especially at the moment since we've got a rude strike lol
Click to expand...
Click to collapse
Same here in Germany - crazy days
Is there a source where I could get this information from?
Deutsche Bahn has released an ultimate java tool for all trasportation in Germany (and possibly beyond) some time ago: DB Railnavigator. http://www.bahn.de/p/view/planen/reiseplanung/mobileservices/railnavigator.shtml
Great app! Specially for me that i travel a lot from Barcelona to Berlin, and i have to use the train to go from the airports to my place and viceversa.
I will use it for sure each time i travel to Germany.
What would make it perfect is the feature to calculate the arriving time to a place such as the airport (SXL-Schoenefeld) as some german or berliner web site does.
do you think is possible to include this feature in your planning? or too much difficult?
thanks a lot for this handy tool.
When trying to refresh the info.
i get this message:
An error occurred
No departures found
of course i have connection, and i've setup 4 stations and marked the transports
any ideas?
thanks in advance
fourcc said:
When trying to refresh the info.
i get this message:
An error occurred
No departures found
of course i have connection, and i've setup 4 stations and marked the transports
any ideas?
thanks in advance
Click to expand...
Click to collapse
Can you send me the content of your settings.xml in a private message?
Thanks
New version is out -> 0.2.0.1
See first post.
Using Departure now for two days and really enjoying its simplicity and usefulness.
Good job!
new release - check the first post
Does anyone know why the thread subject doesn't update even the subject for the first post is changed?
Wow, this is probably going to be the most usefull application on my new Touch HD!!!
Thanks a lot for the great program!
/Tommi
thomasschaz said:
Wow, this is probably going to be the most usefull application on my new Touch HD!!!
Thanks a lot for the great program!
/Tommi
Click to expand...
Click to collapse
Let me know how it works on a WVGA device. I never tested this.
Hi Marc,
I tested all functions and everything works perfect.
Only the list scrolling is a bit rusty but that does not affect the usability.
I had a look into your code for the KLIstControl and ctrlStationItem to compare to functionality with the fingerflick list I am currently writing
I had quite a speed improvement when I changed the rendering from not render every item everytime the list refreshes but instead copy the items that moved down/up to a 2nd buffer in a with a copyRect and only render the new items that appear on the top or bottom and the selected items. Perhaps you can integrate that too. Or if you have a better solution for speed up, let me know
/Tommi
thomasschaz said:
Hi Marc,
I tested all functions and everything works perfect.
Only the list scrolling is a bit rusty but that does not affect the usability.
I had a look into your code for the KLIstControl and ctrlStationItem to compare to functionality with the fingerflick list I am currently writing
I had quite a speed improvement when I changed the rendering from not render every item everytime the list refreshes but instead copy the items that moved down/up to a 2nd buffer in a with a copyRect and only render the new items that appear on the top or bottom and the selected items. Perhaps you can integrate that too. Or if you have a better solution for speed up, let me know
/Tommi
Click to expand...
Click to collapse
Using your method might be faster but I assume that it will consume more memory if you keep the already rendered items in a buffer.
Hi Marc,
sorry for my missleading explanation. I did not mean buffering every Item, but using a second buffer for the list (e.g. m_backBuffer2 in your case) and then copy the old items from the m_backBuffer to m_backBuffer2 to their new position after scrolling (in one copyrect) and then only render the new item/selected items to m_backBuffer2. Afterwards use the m_backBuffer2 to bring it to the usercontrol's graphics container.
/Tommi
thomasschaz said:
Hi Marc,
sorry for my missleading explanation. I did not mean buffering every Item, but using a second buffer for the list (e.g. m_backBuffer2 in your case) and then copy the old items from the m_backBuffer to m_backBuffer2 to their new position after scrolling (in one copyrect) and then only render the new item/selected items to m_backBuffer2. Afterwards use the m_backBuffer2 to bring it to the usercontrol's graphics container.
/Tommi
Click to expand...
Click to collapse
Now I got it.
If you want you can join the project. I am always open to get help.
MarcLandis said:
Now I got it.
If you want you can join the project. I am always open to get help.
Click to expand...
Click to collapse
Thanks for the offer! But unfortunately I am currently completely filled up with my own small projects and work, so I don't think I'd have much spare time to do a real contribution.
/Tommi
This also would be nice for your neighbour holland
I could do some dutch translation, and i think this is the site you would get your info from http://www.9292ov.nl.
(the iphone already got the app (with gps support), but they don't care about WM )
It would be great if you considder it
Greetz,
Re-Mi said:
This also would be nice for your neighbour holland
I could do some dutch translation, and i think this is the site you would get your info from http://www.9292ov.nl.
(the iphone already got the app (with gps support), but they don't care about WM )
It would be great if you considder it
Greetz,
Click to expand...
Click to collapse
Looking at that site I can't find an option to show just the departures of a train station.

Whats on my HD and Why - The Definitive List

So in an effort to contribute back everything that I have found int he month of using this wonderful Device... I would like to give back to the forum and go over.. everything I have got on my device and why.
Device is Touch HD on the AT&T network (Edge) in California, USA
[size=+1]Applications (in no particular order) :[/size]
ApptoDate : Keeps my applications up to date so I dont have to monitor the various threads to figure out if i have the latest version of the wonderful software that people here devleop. I think it is a SIN for people not to make their apps apptodate compatible.
Micorosft Office Communicator : For work
Alpha Facebook app : new facebbok app under development
CorePlayer : The only way to watch videos on the Touch HD
Flashlite 3.1 : Adds flash support to SOME websites, mainly YouTube
Google Maps : Get the 2.3 version, it also has Streetview
Gyrator2 : Once configured properly for inclusions and exclusions, a wonderful tool
Live Search : The new (beta) version will use cell tower signal to find my location and speech recognition is awesome... within 30 seconds i can open the app, have it locate me and say burger king and it will give me all the burger kings close to me on a map. AWESOME.. does movies, restaruants, flickr phots near me and lots of cool things. Definitely one of my daily use applications, with location services
MyMobiler : To get my phone screen on my desktop with the Touch HD skin
MusicID : Works very welll for identifying music that is playing. Definitely a crowd pleaser
Opera : Browser.. nuff said
PhoneAlarm : My must have app. This app does so much, but I only use it for automatic profile switching, location based, calendar based and time based.. so at night it goes to silent by tiself, when im in a meeting it vibrates itself and when i go to the mall it goes to super loud itself.. no user intevention... super useful. Also switches off bluetooth and wifi and push mail if battery goes down below 20%
Pocket Sportcenter : To keep tabs on my Sports
Registry Editor : for the times you need to edit registry
SKTools : Lots of cool utilities here for when you need them
SlingPlayer Mobile : Use this to watch stuff on my tivo when im away or travelling.
SpbTime : The most finger friendly and nice looking app for setting alarms and timers and stopwatch
Sprite Backup : Automatic backup scheduled for 4:0am on sundays. sweet
Total Commander : Useful utility to put files where they need to go, specially manila files
TouchOff : Gives me the option to soft reset when i i hold down the power button
WIMP : So i can track my phone. I send an SMS to it it locks a satellite and sends an sms back to me... for when it gets stolen or lost
S2U2 : Tricky. Not using it for the unlocking as it was absolutely KILLING my battery. Using it for the caller id feature which is very nice
Second Today : Need this to run phone alarm mainly
Homescreen++ : To measure how much battery is being drawn at any given time
MortScript : Script application which allows me to have an automatic wallpaper changer (among other things).
Schaps Advanced Config : Very cool lets me tweak a bunch of things :
HD Tweak : See above
Diamond TF3D Tweak : See above
JetCet Print : Ive used it and it actually does print to my shared printer. Cool for printing webpages, directions or emails
[size=+1]Visual Tweaks :[/size]
BackGround4Alltabs : While this is cool, it does give all the tabs a background of your choice, on the Touch HD it also has a bug where it messes up your manila screens, so your programs list, your stocks, music player all that will have a 160px transparent strip at the top, which beceoms very very annoying
Prophecy Glass Clock : Very nice glass clock
Darklord Battery meter : For the battery using percentage
Darklord Taskbar
LumOS : Because it is better than the stock one and it uses less battery
15 Tabs : Adds tabs for calendar, comm-manager, call history and sound profiles
TFL3DIcons V3 : Nice icons on the tabs in TF3D
NisseDilliaf's No curtains : Removes the top and bottom curtains for a much cleaner look and makes the homescreen look bigger
Panosha Black Dialer : Much improved Dialer
Panosha Clauclator Skin : MUCH improved calculator skin
noProgBK : This removes the ugly grey buttons from the programs tab and their icons. much cleaner look
[size=+1]Other Tweaks :[/size]
SD Tuneup : Makes for faster SD performance. Very useful
.net 3.5 : need this for certain apps. make sure you go in the registry and change 3.5 to be the default .net one. Apps run faster
(Im sure im missing stuff in this section)
[size=+1]Games :[/size]
Teeter : Very good use of the G-sensor
Resco Bubbles : Also good use of the G-sensor
Astraware Casino : Mainly for my Hold em Poker fix
Astraware boardgames : Chess, checkers, backgammon
I will keep eidintg this post as things that I forgot come to me and I will also try over the next few days to add links to threads and programs within this list, as well as more screenshots.
I would also be willing to take any questions if anyone had any about the above post.
Useful, thanks.
Quick q: which do you feel benefit in speed terms from being in internal memory?
Did lumos cause you any problems? I read that it interferes with some applications, specifically Opera. Thanks
i installed Darklord Battery meter but nothing happens, no change what so ever, even after a shot reset, am i doing something wrong?
arfster said:
Useful, thanks.
Quick q: which do you feel benefit in speed terms from being in internal memory?
Click to expand...
Click to collapse
This may not be the most scientific approach, but my decision factors on what to install to main memory are :
1) If the install size is below 50K, and is a phone related install and not an app... it goes to main memory
2) If its something I need in case my SD card crashes or gets lost... it goes to main memory (e.g total commander, registry editor)
3) If its something that my phone really needs in main memory as suggested by either the application or forums and research, it goes to main memory (.net 3.5)
michael_r said:
Did lumos cause you any problems? I read that it interferes with some applications, specifically Opera. Thanks
Click to expand...
Click to collapse
No problems that I can see so far, and not even in Opera
frostywrath said:
i installed Darklord Battery meter but nothing happens, no change what so ever, even after a shot reset, am i doing something wrong?
Click to expand...
Click to collapse
That is weird, did you also install the sdkcerts.cab file i dont know the process quite well yet, but I do know that was a required cab before doing icons and I beleive also the battery
A bit of a pain in the neck, but might be really useful if you had links to the sites to get the apps.
Okay, I'll bite. Here's my equivalent list (without repeating what's already posted):
SoftMaker Office 2008:
Replacement for Pocket Word/Excel. Pocket Word is okay for minor uses, but if you use spreadsheets as much as I do, Pocket Excel is comically inadequate (especially after the backward steps it has taken from WM5 to WM6).
PhatNotes:
I use textual notes/lists a lot, too, and the built in software in WM does not cut it for me.
SprintDB Pro:
Relational database. I find this to be the best way to maintain my movie lists.
BackCountry Navigator:
A GPS mapping/tracking software based on map downloads on the fly. It gives me peace of mind against getting lost when I'm hiking or mountain biking in the middle of nowhere (at least in those cases where I might have a network signal).
Pocket TOPO:
The pocket version of the National Geographic TOPO! topographic map software. Does route planning and GPS tracking as well. (Unlike BackCountry Navigator, only works with limited maps exported from its own desktop PC version.)
Pocket Stars:
Good sky guide. I can't say I'm even close to using it regularly. But it's still there for the rare occasion when I might need it.
TapBirds:
Bird identification field guide. Do you see a general "outdoors" theme here?
Pocket Player:
I use it mainly for audio books. It has a good resume feature and very good bookmarking capabilities.
AIDEM File Explorer:
Just a free File Explorer replacement that I find capable enough for my own needs, for those occasional cases where the original File Explorer is a bit too restrictive.
TomeRaider:
Book reader. It allows me to carry around with me a whole bookcase of books and reference sources, including an almost complete IMDB movie database and two (count 'em, two) offline full-text copies of Wikipedia. (One is slightly smaller and older than the other but includes images...)
Viigo:
Very decent RSS reader, though it's been diversifying into a ton of other useful features lately.
Calc98:
Much more capable free replacement for the built-in WM calculator. Good for some scientific calculation, base conversions, and unit conversions, too.
DirMap:
Utility for displaying directory subtree sizes. Also features graphic display of space usage. Very handy when trying to figure out what's taking up storage space.
FTP Client:
Very useful when I need to access some file that I don't have with me but is available on the FTP-accessible server I run at home.
Opera Mini:
Always a good idea to have additional browsers handy, for cases when one goes haywire or has specific incompatibilities with a particular website that another browser might handle just fine.
Pocket Gforce:
Poor man's vehicle dynamics analysis tool (G force measurement, acceleration/deceleration, 0-60 mph, etc.) I haven't gotten to play with it yet, but it might be a fun distraction during my next autocross event.
Resco Photo Viewer:
I had bought this for an earlier WM PDA, but it's still got more features than any photo viewing/slideshow software that comes with the Touch HD, so I still use it.
Pocket Streets:
My 2001 version still works with the Touch HD. It's still the most handy (virtually) free offline map software, if you ask me.
PocketLock:
File and directory encryption software. Quite strong encryption. I love how intuitive its integration is. (Double-clicking a file, first launches PocketLock to decrypt, than the host app to open the file. Closing the file automatically triggers PocketLock to ask you whether you want to encrypt it again.) I've been using this on every version of Windows Mobile since "Pocket PC 2002"!
Storage Tools:
I use this to fix storage card file system corruptions, and the occasional storage card defragmentation.
WMStopWatch:
At one point, this was the only free stopwatch program I could find for WM that would not stop when I turned off the device--a crucial requirement when you want to time anything longer than a few minutes.
vxIPConfig and vxUtil:
Some nice old-fashioned free networking utilities that I like keeping under my hand (trace route, port scanner, DNS lookup, ping, finger, whois, etc.).
Links? (for the lazy)
Electronic Program Guide (EPG)
Does anyone now if there is a EPG?
Especially for The Netherlands????
EPG, that would be a cracker, iPhone users have it, whay we cannot.
Dodger said:
Does anyone now if there is a EPG?
Especially for The Netherlands????
Click to expand...
Click to collapse
that is what i want as well but for UK and Poland.... anyone aware of software of this type please.... searched net but cannot locate anything really.
THX
Dodger said:
Does anyone now if there is a EPG?
Especially for The Netherlands????
Click to expand...
Click to collapse
Especially dutch:
http://www.breukelman.net/fbtv/index2.html
witch program u used to change the background of the main menu even as u switch tru all tabs like people, messages, music ect? and also if u could provide a link to it
taimoorhusain said:
Prophecy Glass Clock : Very nice glass clock
Click to expand...
Click to collapse
Here,
http://forum.xda-developers.com/showpost.php?p=2570674&postcount=8
Vanstra,
thanks for the FBTV tip, super!
What about battery life after all these?
taimoorhusain said:
So in an effort to contribute back everything that I have found int he month of using this wonderful Device... I would like to give back to the forum and go over.. everything I have got on my device and why.
Device is Touch HD on the AT&T network (Edge) in California, USA
[size=+1]Applications (in no particular order) :[/size]
ApptoDate : Keeps my applications up to date so I dont have to monitor the various threads to figure out if i have the latest version of the wonderful software that people here devleop. I think it is a SIN for people not to make their apps apptodate compatible.
Micorosft Office Communicator : For work
Alpha Facebook app : new facebbok app under development
CorePlayer : The only way to watch videos on the Touch HD
Flashlite 3.1 : Adds flash support to SOME websites, mainly YouTube
Google Maps : Get the 2.3 version, it also has Streetview
Gyrator2 : Once configured properly for inclusions and exclusions, a wonderful tool
Live Search : The new (beta) version will use cell tower signal to find my location and speech recognition is awesome... within 30 seconds i can open the app, have it locate me and say burger king and it will give me all the burger kings close to me on a map. AWESOME.. does movies, restaruants, flickr phots near me and lots of cool things. Definitely one of my daily use applications, with location services
MyMobiler : To get my phone screen on my desktop with the Touch HD skin
MusicID : Works very welll for identifying music that is playing. Definitely a crowd pleaser
Opera : Browser.. nuff said
PhoneAlarm : My must have app. This app does so much, but I only use it for automatic profile switching, location based, calendar based and time based.. so at night it goes to silent by tiself, when im in a meeting it vibrates itself and when i go to the mall it goes to super loud itself.. no user intevention... super useful. Also switches off bluetooth and wifi and push mail if battery goes down below 20%
Pocket Sportcenter : To keep tabs on my Sports
Registry Editor : for the times you need to edit registry
SKTools : Lots of cool utilities here for when you need them
SlingPlayer Mobile : Use this to watch stuff on my tivo when im away or travelling.
SpbTime : The most finger friendly and nice looking app for setting alarms and timers and stopwatch
Sprite Backup : Automatic backup scheduled for 4:0am on sundays. sweet
Total Commander : Useful utility to put files where they need to go, specially manila files
TouchOff : Gives me the option to soft reset when i i hold down the power button
WIMP : So i can track my phone. I send an SMS to it it locks a satellite and sends an sms back to me... for when it gets stolen or lost
S2U2 : Tricky. Not using it for the unlocking as it was absolutely KILLING my battery. Using it for the caller id feature which is very nice
Second Today : Need this to run phone alarm mainly
Homescreen++ : To measure how much battery is being drawn at any given time
MortScript : Script application which allows me to have an automatic wallpaper changer (among other things).
Schaps Advanced Config : Very cool lets me tweak a bunch of things :
HD Tweak : See above
Diamond TF3D Tweak : See above
JetCet Print : Ive used it and it actually does print to my shared printer. Cool for printing webpages, directions or emails
[size=+1]Visual Tweaks :[/size]
BackGround4Alltabs : While this is cool, it does give all the tabs a background of your choice, on the Touch HD it also has a bug where it messes up your manila screens, so your programs list, your stocks, music player all that will have a 160px transparent strip at the top, which beceoms very very annoying
Prophecy Glass Clock : Very nice glass clock
Darklord Battery meter : For the battery using percentage
Darklord Taskbar
LumOS : Because it is better than the stock one and it uses less battery
15 Tabs : Adds tabs for calendar, comm-manager, call history and sound profiles
TFL3DIcons V3 : Nice icons on the tabs in TF3D
NisseDilliaf's No curtains : Removes the top and bottom curtains for a much cleaner look and makes the homescreen look bigger
Panosha Black Dialer : Much improved Dialer
Panosha Clauclator Skin : MUCH improved calculator skin
noProgBK : This removes the ugly grey buttons from the programs tab and their icons. much cleaner look
[size=+1]Other Tweaks :[/size]
SD Tuneup : Makes for faster SD performance. Very useful
.net 3.5 : need this for certain apps. make sure you go in the registry and change 3.5 to be the default .net one. Apps run faster
(Im sure im missing stuff in this section)
[size=+1]Games :[/size]
Teeter : Very good use of the G-sensor
Resco Bubbles : Also good use of the G-sensor
Astraware Casino : Mainly for my Hold em Poker fix
Astraware boardgames : Chess, checkers, backgammon
I will keep eidintg this post as things that I forgot come to me and I will also try over the next few days to add links to threads and programs within this list, as well as more screenshots.
Click to expand...
Click to collapse
Hi,
I am wondering about the battery drain after installing all these, can you please enlighten me..... and links to those applications will be appreciated
phone alarm itself is a magical program for preserving battery life. I use it to turn off connections, bluetooth etc etc at various times of the day (don't need anything at night when I'm in bed but I still use the alarm so putting it into flight mode can save hours of battery life for example). I can get my battery to last 3 days or more using this piece of software.
First of all thanks taimoor for this thread good one,
and
twisted-pixel said:
phone alarm itself is a magical program for preserving battery life. I use it to turn off connections, bluetooth etc etc at various times of the day (don't need anything at night when I'm in bed but I still use the alarm so putting it into flight mode can save hours of battery life for example). I can get my battery to last 3 days or more using this piece of software.
Click to expand...
Click to collapse
thank you for this info i think i will intall that app

[Library] BobEngine - Easy to use 2D game engine for Android

Hello, XDA!
I have created my own 2D game engine that utilizes OpenGL and sports many features to help make programming 2D games for Android as quick and simple as possible. I created this engine for use in my own projects but then I thought why no make it open-source? I think other people could benefit from this and input from other developers could help fine tune this thing so it's as good as it can be.
So I gave my engine the name "BobEngine" after my online alias and uploaded the first public release called "BobEngine 1.0 Thingama" to GitHub. That was months ago and now I've finished working on the next update: BobEngine 2.0 Shishka.
I've got a post on my website detailing what's new in update: http://www.bobbyloujo.com/2015/01/bobengine-20-shishka-update.html
BobEngine uses a similar structure to GameMaker games so if you've ever used that you may be interested in BobEngine. BobEngine uses a specialized BobView to display the content of Rooms. Rooms are collections of GameObjects which each have a graphic and attributes such as x and y positions, width, height, angle, frame, etc... Rooms and GameObjects also have step, newpress, and released events built in. The step event happens each frame, the newpress event happens when a new pointer is touched on the screen, and the released event happens when a pointer is lifted from the screen.
There are many other tools included with BobEngine and the best way to start learning how to use them is have a look at the examples that are included! In the GitHub repository you'll find an Android Studio project called "BobEngine". This project contains the "bobEngine" library module that you'll need to include in your own projects if you want to use BobEngine. Also in the BobEngine project are modules for each of the included examples. Currently there are examples that demonstrate the structure of a BobEngine game, how to use input from the touch screen, and how to manipulate the camera. I'll be creating more examples in the future to show off all the things you can do with this engine!
All the methods and data members in BobEngine are internally documented and the examples include a lot of internal documentation to help you out as well.
I'll keep updating the library with new things as I think of them. If there is anything you think should be added go ahead and post about it in this thread.
Benjamin Blaszczak
a.k.a. Bobby Lou Jo
@Bobbyloujo on Twitter
Edit: Forgot the GitHub link: https://github.com/Bobbyloujo/BobEngine
@Bobbyloujo
Thanks man will try this today and welcome 2 xda :highfive:
Thanks sir...pls give us some game template made from your lib
Great job man. It looks great.
I will try as soon as possible
Sylvain
Thanks man. Will surely try it out. good work.
Awesome, just what I've been looking for. Thanks!
nice work, and thanks for putting your time and effort into it.
Could this be used to recreate "biomenace" for android?
Thanks everyone!
@berlyshells Anything you want to see in particular? I could probably throw together a Flappy Bird clone real quick or something...
@verbuyst It certainly looks doable if you put the time and effort into it.
Bobbyloujo said:
..
Click to expand...
Click to collapse
im not really looking for anything in particular..probably any game source with comments (of the functions/what for is this code etc..) inside the code would be nice haha i just requesting but its you're choice sir im sorry im just a newbie
TIA
A new example has been added to the repository per @berlyshells request. This example is called Jumpy Bug and it is a Flappy Bird clone. It demonstrates what a full game programmed with BobEngine looks like.
Bobbyloujo said:
....
Click to expand...
Click to collapse
thank you very much sir..you are indeed a good hearted person..this is what i really love on xda
While working on my most recent project I made a few changes to BobEngine. The changes have been uploaded to GitHub.
Changes:
The extra functionality provided by BobActivity has been moved to a new class - BobHelper. A BobHelper can be used by any activity. When using a BobHelper, be sure to call its onResume() method from your activity's onResume() method. BobActivity still functions the same way it did before. BobHelper is useful for when you want to use some other kind of activity has your application's main activity but still want the extra functions from BobActivity. For example, if you want to use BaseGameActivity from the BaseGameUtils library for Google Play services.
SplashActivity has been totally changed because, frankly, it sucked before It is now an abstract class. Create your own activity for showing splash screens and extend SplashActivity. Implement the setup() and end() methods. In the setup() method, call addSplash(R.layout.your_splash_layout, time_in_ms) to add a splash screen to show as defined by an xml layout. You can add up to 10 layouts. Add them in the order you want them to show. The end() method is called after the last splash screen has been shown. In the end() method, start an intent for your main activity and then call finish() to close the splash screen activity.
Other small changes.
How many games have made using library? Looks cool)
Thanks..I tried AndEngine and it failed to import on my Android Studio.
Marshal3 said:
How many games have made using library? Looks cool)
Click to expand...
Click to collapse
Uhm... about three. There's Plane Popper, Crazy Taxi Driver, and I just finished Bounce the Beach Ball. Other than that, I've made a few examples that you can find in the repository - including a Flappy Bird clone. Also, I've been working on a platformer.
basil2style said:
Thanks..I tried AndEngine and it failed to import on my Android Studio.
Click to expand...
Click to collapse
Let me know if you need any help with BobEngine!
Hello again, XDA!
I've updated BobEngine again. This update brings the following major additions:
Gamepad support! You can now get input from any standard gamepad using BobEngine. A new example has been added to the Android Studio project that shows and explains how to use this new gamepad support. The example is called controllerexample.
Multiple quads per GameObject. Up until now, a GameObject consisted of a single textured quad (well, two triangles that form a quad). Sometimes it is useful to have many quads grouped together. If you use this, note that all the quads for each GameObject must have the same graphic. This is a very niche feature that I added for a particular purpose but didn't end up using myself. If you'd like an example of what can be done with this, let me know and I'll make one.
Some other miscellaneous stuff has been changed as well. It's been so long since I posted an update that I forget everything I changed! One useful change I made was to the camera features. Rooms now have their own camera values, meaning if you change the camera in one room, then switch to another and change the camera there, then switch back to the first room the camera will be where you left it in the first room.
BobEngine can of course still be found here on GitHub: https://github.com/Bobbyloujo/BobEngine
Here's a video showing off gamepad support: https://youtu.be/vRdaaaJnqGk
As always, if you have any questions feel free to ask. Also, if you've made anything with BobEngine I would love to see it! Whether it's something big or something small I'd love to see how others have used my engine
If you haven't already, please follow me on Twitter. My handle is @Bobbyloujo and I post updates about the games and things I'm working on there pretty frequently. Right now I'm working on something pretty big!
Another new update today!
Changes:
* TextDisplay object added! TextDisplay is a GameObject that can be used to output text! Text can be centered, aligned left or right. A new example has been added to show how this new object can be used.
* A new 'visible' attribute has been added to GameObjects. Setting gameObject.visible to false will cause the object to be hidden so it isn't drawn.
* The getAngle() function in Room.java was broken. It has been fixed so now getAngle() and getAngleBetween() both work properly.
* The getRatioX() and getRatioY() functions sometimes would not work properly on some devices. This has been fixed.
* When using multiple quads per GameObject, the performance has been increased. This was done by collecting vertex data from the quads in a way that does not require the concatenation of many arrays.
As always, the repository can be found here: https://github.com/Bobbyloujo/BobEngine
It'll really help me out if you follow me on Twitter: https://twitter.com/Bobbyloujo
And like my Facebook page: https://www.facebook.com/BobbyLouJo
If you have any questions or would like to report a bug, please leave a message in this thread or PM me on XDA, Twitter, or Facebook.
Have a great week!!
Version 3.0 Bobsled
It's been a while, but in the time since my last update I've added a lot of new things to BobEngine. Since it's such a big update, I'm giving it a new version name: v3.0 Bobsled. Here goes:
RoomCache - In BobView.java you will find a new static class called RoomCache. As the name implies, RoomCache is used for storing and retrieving instances of Rooms. The nice thing about RoomCache is that you can call getRoom(Class roomType) with any class type that inherits Room and the function will return an instance of that room type, even if you haven't manually added a Room of that type to the cache. The function getRoom(...) will search the cache for an instance of roomType and return it if one is found OR it will create a new instance of roomType using reflection and return that. You'll also notice that there is a getRoom(Class roomType, Object... args) function. If you have created a room type that takes parameters other than (BobView view) like a default Room does, you can use this method to pass the required arguments to initialize a new instance of that room type if need be. The cache holds a specified max number of Rooms. When the cache is full and a new Room is added, the oldest Room is removed. You can make your own RoomCaches, but each BobView has it's own cache with an initial size of 3. To access it from your BobView, just call getRoomCache().
Along with RoomCache, BobView has received two new goToRoom overrides: goToRoom(Class roomType) and goToRoom(Class roomType, Object... args) for switching to rooms retrieved from the RoomCache.
Input events (newpress, released) are now handled on the main thread (same thread as step event). Handling game logic on the separate input thread was causing a lot strange glitches in my games when values were being changed when I was not expecting them to be changed. Now, input will be handled on the same thread just before the step event.
For even more convenience and even quicker game development, a new constructor has been added to GameObject: GameObject(Room room). This will automatically assign an instance ID number AND add the object to the room. What typically looked like this before:
Code:
GameObject object = new GameObject(room.nextInstance(), room);
room.addObject(object);
Now looks like this:
Code:
GameObject object = new GameObject(room);
So simple! The old constructor is still there and behaves the same way for those who want it and for backwards compatibility.
Setting GameObject.visible to false will now hide all Quads belonging to that GameObject. This will not change the Quad.visible field for any Quad. Also, similarly to GameObject, Quads are now added to the GameObject when initialized.
Animations can now be played once and looped for a limited number of times. animationFinished() will return true when an animation has finished playing.
Animation class - a new class has been added to GameObject.java. This class can be used to predefine animations with a start frame, end frame, fps, and loop times.
Previously, I was using 3 coordinates for each vertex. I learned it's possible to use only 2 in OpenGL. Since the 3rd vertex is not needed, I changed the code to use only 2 vertices. I'm not sure if this actually caused any performance improvement.
Graphic.Parameters class - A new class in Graphic.java allows you to predefine Graphic parameters to use with GameObject.setGraphic(Graphic.Parameters params). Useful for when you want to switch between graphics on a GameObject often.
A new method in the Graphic class called setDimensions(int width, int height) allows you to set the height and width of the DPI level image you want to use for setGraphic(Graphic g, int x, int y...). Previously, you would have to use setPreciseGraphic(...) if you had different sized images for different DPI levels that have multiple graphics on them.
Set the color intensity of all GameObjects on a specific layer using Room.setLayerColor(int layer, float r, float g, float b, float a).
Graphics management (this is a big one):
The Room, Graphic, and GraphicsHelper classes have been updated to improve and simplify management of graphics for large games. A new GraphicsHelper.cleanUp() method makes it easy to manage graphics. You can choose points in your game to call cleanUp(). When called, Graphics that have not been used recently will be unloaded and removed from the GraphicsHelper. Graphics have a new public field called 'persistent' which when set to true will cause the graphic to remain loaded when cleanUp() is called. All non-persistent Graphics will survive through a set number of cleanUp() calls before they are removed. If a Graphic is removed but then a GameObject tries to use it again, it will automatically be re-added to the GraphicsHelper and reloaded.
You can also manually call:
Graphic.load() to load a graphic after is has been added to the GraphicsHelper.
Graphic.unload() to unload a graphic
Graphic.remove() OR GraphicsHelper.removeGraphic(Graphic g) to unload and remove a Graphic from the GraphicsHelper.
OKAY, I think that's just about everything. I actually had to look through the changes in the GitHub commit to remember all the things I've changed xD There are a few other small changes but I didn't think they were important enough to list. Now I want to ask you guys something:
Is there any interest in a full-blown tutorial series for BobEngine?
I could start with the basics, then explain more advanced features like graphics management. I could also take requests for certain tutorials. I could even cover general game development topics and how to implement them with BobEngine. Doing this would be a lot of work so before I dive in I really want to gauge the level of interest in BobEngine. So far, it's been difficult to tell how many people are interested because I haven't gotten an overwhelming amount of replies here but every once in a while I get a PM or email asking for help. So if you're using BobEngine raise your hand!
And of course: if you've made anything with BobEngine I would love to see it! I've seen a few things and it makes me happy to see you guys using getting some use out of my engine.
Thanks for your time! If you have any questions, just ask. You find any issues with BobEngine, post them here or on GitHub and will fix them. Also don't forget to let me know if you're using BobEngine!
Once again, the repo can be found here: https://github.com/Bobbyloujo/BobEngine
Thanks again,
Ben a.k.a. Bobby Lou Jo
Twitter: https://twitter.com/Bobbyloujo
Facebook: https://www.facebook.com/BobbyLouJo
you are great and i should more from you
I am a new man in the electronic area, and you have developed your own staff, you set a good example for me.
Jackiefire said:
I am a new man in the electronic area, and you have developed your own staff, you set a good example for me.
Click to expand...
Click to collapse
Thanks! Your support means a lot.

Categories

Resources