xamarin


How can I achieve a scratchcard effect?


I want to achieve a scratchcard effect like the one in the video below.
But it seems quite hard to me (I'm a newbie when it comes to 2D graphics), and I would greatly appreciate a little help, if you have some snippets that could set alpha of the pixels of a CCSprite, or at least somewhere to start looking.
I'm using cocossharp v1.7.1.
https://www.youtube.com/watch?v=MWfihxUm-Q4
You can use tools like Clipper to substract a polygon (finger circle) from another polygon (your scratching area). Then use geometrynode to render the polygons. I'm currently doing exactly that in my game and it works fine.
Here is a blog post I wrote about (some of) it:
http://managedmonkey.blogspot.se/2015/08/using-textures-with-ccgeometrynode-in.html

Related Links

Opening a page by code in Xamarin.iOS
Xamarin Forms navigating to a MasterDetail Page after a Content Page
Xamarin: Mock Location Crashes
Xamarin UWP VSTS NuGet Package Restore Fails
HttpUtility.ParseQueryString Mono 4.8 Xamarin Mac Upgrade Issue
Resource.designer.cs won't update
iOS Httpclient cannot connect: {System.Threading.Tasks.TaskCanceledException}
How can I interact with a xamarin forms image in Android?
Can I test push notifications received for my app under test using Xamarin Test Recorder?
Why does setting a style for StackLayout result in a NullReferenceException?
xamarin JSON ICollection serialization issue
Blank page is coming when using PopAsync is used for go to previous page in Xamarin forms
Has anyone successfully built Xamarin.Forms with gitlab-ci?
Dynamically display image in IOS xamarin - nitWithContentsOfFile:' method returned nil
fetch data from server and send back to page using MessageCenter
SAPI voice on Xamarin

Categories

HOME
xamarin
pdf
image
jdo
netsuite
netbeans
cookies
zeromq
plone
relative-path
spagobi
xmpp
datastax-java-driver
onelogin
paradox
awesome-wm
qt-creator
leiningen
hapi
worldwind
text-rendering
openedx
viewport
swingx
immutable.js
tokenize
chromium-embedded
sqlcipher
tdd
traffic
replaceall
twilio-api
xquery-3.0
catch-all
framemaker
vsts-build-task
accelerate-framework
android-nestedscrollview
rotational-matrices
wallpaper
lto
ensembles
mapzen
pdf-reactor
grid.mvc
reportingservices-2005
galleria
auto-update
hibernate-tools
rails-routing
hendrix
ionicons
sage-one
tizen-native-app
statsd
kbuild
python-cryptography
mako
vtigercrm
mediaelement
angular-strap
setuptools
static-ip-address
google-feed-api
spring-android
passport-google-oauth
savon
intrusion-detection
py2app
django-debug-toolbar
player
whois
yaws
revolution-r
itextpdf
iad
ora-00900
intellij-14
metaclass
tmuxinator
interrupted-exception
mono-embedding
javax.mail
csquery
system.reflection
googlemock
google-reader
navigationservice
doskey
java.nio.file
prettify
jsctypes
buster.js
sqlperformance
flashvars
kyotocabinet
distutils
browser-detection
chuck
gil
google-email-migration
jspinclude
enter
transactionscope
adk
boost-filesystem
locate
sproutcore-2
vc90
ext3
firefox4
zend-tool
premature-optimization

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App