Creating Animated Apps: Canvas與ImageSprite 靜宜大學資管系 楊子青

Slides:



Advertisements
Similar presentations
Games in Python – the easy way
Advertisements

Create a Simple Game in Scratch
Understanding an Apps Architecture ASFA Computer Science: Principles Fall 2013.
JustinMind: Dynamic Panels
Create a Simple Game in Scratch
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
Microsoft® Small Basic
Android architecture overview 1 CS 150. Android  A software stack for mobile devices developed and managed by Open Handset Alliance  Free software under.
Cosc 5/4730 Game Design. A short game design primer. A game or animation is built on an animation loop. – Instance variables of “objects” are updated.
Games in AppInventor ASFA Programming I November 14, 2012.
Microsoft® Small Basic
App Inventor Barb Ericson July 3, 2013.
Creating Mobile Apps with App Inventor! Day 4 Google search Kris Gordon Ludlow for links.
The Creative Art of Programming © Copyright 2014 Barbara Ann Walters. All Rights Reserved.
Sketchify Tutorial Graphics and Animation in Sketchify sketchify.sf.net Željko Obrenović
Quadratic Equation Solver Tutorial. Introduction We will be making an app to solve 2 nd level polynomials like ax 2 +bx+c. We will model our app upon.
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
CS 104 October 26, 2011 App Inventor. Agenda Discuss guest speakers Discuss quiz Finish Paint Pot Discuss concepts from Chapters 2 & 3 Mole Mash (if time.
Introduction to TouchDevelop
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
App Inventor MIT App Inventor.
Macromedia Dreamweaver 4.0 INTERFACE This presentation will run automatically.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
Game Maker Terminology
Exploring the Macromedia Flash Workspace – Lesson 2 1 Exploring the Macromedia Flash Workspace Lesson 2.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
CS COMPUTER GRAPHICS LABORATORY. LIST OF EXPERIMENTS 1.Implementation of Bresenhams Algorithm – Line, Circle, Ellipse. 2.Implementation of Line,
App Inventor for Android 唐健恒. Outline About App Inventor Getting started Tutorials Reference Documentation  Component Reference  Blocks Reference.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Paint Tutorial Created February 2006 Start Paint: Start>Programs>Accessories>Paint.
Lesson 5 – Repetition / Loops
®® Microsoft Windows 7 Windows Tutorial 7 Managing Multimedia Files.
Lesson 1 – Getting Started with App Inventor
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
App Inventor Chapter 17 – Creating Animated Apps.
Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist.
Title Subtitle. Statement #1 Delete this text box, and add a powerful image from your “Go Green” folder. Make the image fill the screen (and don’t place.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Introducing Macromedia Flash 8
Introduction to App Inventor 2 ASFA AP CS Principles
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
What is a Function Expression?
MOM! Phineas and Ferb are … Aims:
Scratch for Interactivity
Procedures, Simple Expressions
Inserting and Working with Images
Project Objectives Lay out Web pages Create layers
Visual Programming week # 02 APP (Application) Architecture.
Starburst.
Understanding an App’s Architecture
Graphics and Multimedia
Chapter 16 – Programming your App’s Memory
ISC440: Web Programming II Ch14: HTML5 Canvas
INSERT TITLE HERE.
Title Slide Subtitle.
Let’s begin our game!.
The coordinate system Susan Ibach | Technical Evangelist
Millennium High School Agenda Calendar
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Coding Video.
CSS290: Apps on Mobile Devices
Presentation transcript:

Creating Animated Apps: Canvas與ImageSprite 靜宜大學資管系 楊子青

1. Canvas Component A two-dimensional touch-sensitive rectangular panel on which drawing can be done and sprites can be moved. Any location on the Canvas can be specified as a pair of (X, Y) values, where X is the number of pixels away from the left edge of the Canvas Y is the number of pixels away from the top edge of the Canvas There are events to tell when and where a Canvas has been touched or a Sprite has been dragged.

The Canvas coordinate system

Adding a Canvas Component to App You can drag a Canvas component into your app from the Basic palette. specify the Canvas’s Width and Height. Often span the width of the device screen: “Fill parent” Height: 300

2. ImageSprite component is an animated object that is contained by a canvas can react to touches and drags, interact with other sprites (image sprites and other balls) and the edge of the canvas, and move according to its properties.

介面設計

介面內容 元件 屬性 屬性值 Screen1 Title Space Invaders Canvas1 Width Fill parent Height 300 pixels RocketSprite Picture rocket.png Y 230 Bullet (屬於Ball) PaitColor Green Radius 8 SaucerSprite saucer.png HorizontalArrangement1 AlignHorizontal Center Label1 Text Score: ScoreLabel ResetButton Reset Clock1 TimerInterval 3000

初始設定

2.1 Timer event One way to specify animation in App Inventor is to change an object in response to a timer event. Most commonly, you’ll move sprites to different locations on the canvas at set time intervals.

時間到,隨機移動SaucerSprite的X軸

2.2 拖曳RocketSprite,讓其水平移動