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

Programmatically scroll at ScrollView without animation
visual studio emulator dont run app and xaml page in xamarin
Xamarin Master Detail Page with Navigation
Prevent auto-scroll to top on orientation change in a XF ScrollView
Xamarin forms: Toast Notification in Android & IOS
Xamarin iOS delegate BaseType usage
Xamarin UITest REPL Query TableView elements
VS2015+Xamarin Does not recognize that emulator started
How to generate .apk for my cross platform application in visual studio 2015 (Xamarin)
In Xamarin application, what does catalog mean
suspend_thread suspend took 200 ms, which is more than the allowed 200 ms
Xamarin.Forms (Shared)
Image annotation in Xamarin.Forms
Internal Android Crash in Xamarin around SetSpan
How to show numbers on notification bar?
Android Google Analytics Unable to instantiate receiver com.google.analytics.tracking.android.CampaignTrackingReceiver

Categories

HOME
wso2-am
date
webpack
keras
fluentd
iterator
electron
spring-cloud-stream
ip
echarts
mouse
uber-api
pheatmap
slurm
slick-slider
windows-10-universal
handsontable
n-gram
remote-access
fortumo
lombok
systemc
pc
oracle-coherence
interop
django-cms
introduction
tapestry
tibco-mdm
p-value
compatibility
windows-server-2000
uisplitview
pdb
http-get
calibre
catch-all
openoffice.org
android-kernel
google-api-nodejs-client
bitbucket-pipelines
web-mining
theano.scan
document.write
cookiecutter-django
android-tabhost
node-gyp
estimote
angular-resource
appcompat
sage-one
tactic
arrow-keys
hittest
orthogonal
minimization
synchronous
watchconnectivity
parallel-data-warehouse
mongocsharpdriver
moveit
actionbardrawertoggle
teamcity-8.0
simple-framework
0xdbe
key-management
skos
device-orientation
fscommand
android-imagebutton
asp.net-web-api-odata
xojo
has-many-through
doskey
kgdb
didselectrowatindexpath
fmod
dexterity
web2py-modules
quartz-graphics
selected
gil
onsubmit
jquery-ui-layout
pydot
yetanotherforum
lang
asp.net-mvc-areas
.nettiers
database-management
putchar
scripting-languages
geneva-server
data-acquisition

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App