Download presentation
Presentation is loading. Please wait.
Published byHorace O’Brien’ Modified over 10 years ago
1
240-492 Java Games. Prelim/01 Games Programming with Java v Objective –to give some background on my part of the course 240-492, Special Topics in Comp. Eng. II Semester 1, 2002-2003 Who I am: Andrew Davison CoE, Info. Eng. Research Lab (Rm 101) dandrew@ratree.psu.ac.th 0. Preliminaries Please ask questions
2
240-492 Java Games. Prelim/02 Overview 1. Outline of the Course 2.Prerequistes 3.Main Topics 4. Meeting Times / Locations 5. Workload 6. Course Materials continued
3
240-492 Java Games. Prelim/03 7. Java Games Books 8.Other Games Books 9.Java Games URLs 10.Other Games URLs
4
240-492 Java Games. Prelim/04 1. Outline of the Course v Highlight techniques that make 2D games programming in Java easier and quicker –e.g. reusable game classes, standard gaming frameworks, notation and coding rules for game behaviour v Compare various game programming techniques. continued
5
240-492 Java Games. Prelim/05 v Develop arcade-style 'Alien Attack' games which illustrates these techniques. v Networking techniques for Java games –e.g. sequential vs. multi-threaded servers, threaded I/O, server-side shared data classes, N- person and 2-person network games v Develop a networked 'Chat' system, a paint program and a 'Tic Tac Toe' game which illustrate these techniques.
6
240-492 Java Games. Prelim/06 2. Prerequistes v Enrolment in 240-424 "Introduction to Java Programming" is required in this semester (semester 1) unless students have already done the course. v Why? continued
7
240-492 Java Games. Prelim/07 v This subject will use many features of Java: –classes, inheritance, threads, timers, 2D graphics, event listeners, GUI controls, layout managers, file manipulation –these will not be explained, or explained very briefly v Any student who does not enrol in 240-424 will be prevented from enrolling in this course.
8
240-492 Java Games. Prelim/08 3. Main Topics v Part 1.Weeks 1 - 5 –AI techniques: A*, neural networks, etc. –taught by Aj. Montri v Part 2.Weeks 6 - 16 (end of semester) –taught by Aj. Andrew –a total of 47 hours but only 10 weeks! u we must schedule some extra classes
9
240-492 Java Games. Prelim/09 Topics in Part 2 v 1. Preliminaries and Background (1 hour) v 2. Java Coding Style (2 hours) –the coding style used for applications/applets in part 2, summary of basic Java graphics, Java2D v 3. Basic Animations (3 hours) –two animation techniques: thread-based, timer- based, other approaches continued
10
240-492 Java Games. Prelim/010 v 4. Animation using Inheritance (2 hours) v 5. User Interaction (3 hours) –utilising keyboard and mouse input v 6. Image Sprites (4 hours) –cannons, molecules, pong v 7. Images Sprites (3 hours) –improving the sprite class in part 6 continued
11
240-492 Java Games. Prelim/011 v 8. Alien Attack v.1 (3 hours) v 9. Alien Attack v.2 (2 hours) v 10. More Complex Backgrounds (5 hours) –a background made up of ‘rooms’ –a background that scrolls behind the sprite –a dynamically generated background v 11. Racing round a 2D maze(2 hours) continued
12
240-492 Java Games. Prelim/012 v 12. Isometric (tile-based) Games(3 hours) –basic ideas: u tile layout, movement of background, drawing layers, no-go areas, obstacles, things to pickup –TileImagesSprite class (and subclasses) –the alien classes implement different behaviours: u pickup guarding, player chasing –pathfinding using A* continued
13
240-492 Java Games. Prelim/013 v 13. Full-screen Games(3 hours) –full-screen coding using Swing –full-screen coding using features of J2SDK 1.4 u full-screen exclusive mode, active rendering, and double buffering/page flipping –checking the capabilities of your OS/hardware –VolatileImages example continued
14
240-492 Java Games. Prelim/014 v 14. Networking Basics (3 hours) –client/server networking using TCP and UDP sockets, sequential and multi-threaded servers v 15. Networked Chat (3 hours) v 16. Networked Paint Program (2 hours) v 17. Networked Tic Tac Toe (3 hours)
15
240-492 Java Games. Prelim/015 4. Meeting Times / Locations v Monday10.00-11.00R201 v Friday10.00-11.00R201 v Friday13.00-14.00R201 v Times/locations may change if you ask Aj. Montri or Aj. Andrew.
16
240-492 Java Games. Prelim/016 5. Workload (% of total score) v Mid-tern Exam: 35% –?? (week 9, July 29th - August 4th); 2 hours v Project: 20%: arcade-style game –2 weeks; probably weeks 13-14 v Final Exam: 45% –?? (Sept. 23rd - Oct. 4th); 3 hours
17
240-492 Java Games. Prelim/017 Non-Attendence Penalty v I may take registration at the start of a class. v If someone is not there, they lose 1% (unless they have a good excuse). v A maximum of 10% can be lost –deducted from your final mark
18
240-492 Java Games. Prelim/018 6. Course Materials v I will hand out one copy of my slides –you should make copies of them v Slides, code examples, background information will be made available at: http://fivedots.coe.psu.ac.th/ Software.coe/Java%20Games/ –I’ll refer to this as the directory “Java Games/”
19
240-492 Java Games. Prelim/019 Software for this Course v The software tools we will be using are already here: ftp://ftp.coe.psu.ac.th/pub/java/ v Download (at least): –JDK 1.4 j2sdk-1_4_0-rc-win.exe –documentation j2sdk-1_4_0-rc-doc.zip –tutorial sun-java-tutorial.zip continued
20
240-492 Java Games. Prelim/020 v I have also made a copy of the main Java software onto a CD –see me if you want to borrow the CD
21
240-492 Java Games. Prelim/021 7. Java Games Books v Black Art of Java Game Programming Joel Fan, Eric Ries, Calin Tenitchi Waite Group Press, 1996 –very old: uses JDK 1.0 –coding techniques have changed since 1996 In the CoE library continued
22
240-492 Java Games. Prelim/022 –some nice ideas for games: JAVAroids, Daleks, NetOthello, WordQuest, Magic Squares, Internet MahJong, slider puzzle, worm –I used the first few chapters as a source of ideas for my examples
23
240-492 Java Games. Prelim/023 v Game for Java Khun Chawisnach Success Media, 2545 –written in Thai; 95 Baht –poorly coded, but uses JDK 1.3 –simple examples: u catch apples, sail a boat, UFO attack, photo hunt –code, comments available at http://www.successmedia.com/index/ bookcomment.asp?lngproductID=381 Available from me, or local book shops
24
240-492 Java Games. Prelim/024 v Teach Yourself Internet Game Programming With Java in 21 Days Michael Morrison Sams Publishing, September 1996 –very old, uses JDK 1.0 –discussion of game ideas is good continued
25
240-492 Java Games. Prelim/025 v The HTML version of the book is available online at a few places: –http://www.njnet.edu.cn/info/ebook/ java/javagame/ u but the images are missing –http://w3.softlookup.com/games/ u but lots of pop-up window ads v I have downloaded the source code from the book; it is in: –“Java Games/Background/ internetGames.zip”
26
240-492 Java Games. Prelim/026 8. Other Games Books v We have bought several other games books for the CoE library, which are not directly related to Java. v Most of them describe how to use MS Visual C++ with DirectX (v. 8.0) or OpenGL.
27
240-492 Java Games. Prelim/027 Game Programming Gems v We have volume 1 and 2 –edited by Mark DeLoura Charles River Media, 2000, 2001 –excellent techniques u maths, AI, geometry, display, audio, pixel effects, etc. –coded in C/C++; source on CD –some emphasis on DirectX and OpenGL
28
240-492 Java Games. Prelim/028 เขียนเกมอย่างมืออาชีพด้วย Visual C++ และ Direct X ผู้แต่ง นิรุธ อำนวยศิลป์ บรรณาธิการ สัจจะ จรัสรุ่งรวีวร http://www.infopress2000.com/update/ each.php?isbn=974-90142-9-4&type=book –a simple introduction; ~300 pages –some poor code, but mostly ok –no CD; I cannot find the source code online
29
240-492 Java Games. Prelim/029 v Four English titles: –The Zen of Direct3D Game Programming u explains basic windows programming, 2D, 3D maths –Multiplayer Game Programming u poorly written; good coding in DirectX –OpenGL Game Programming u well written; explains the basics first –Isometric Game Programming with DirectX 7.0 u very good; includes mazes, AI; hardly any 3D –very large: 800-900 pages each; includes CD
30
240-492 Java Games. Prelim/030 9. Java Games URLs v CSC 490-12 Computer Game Design and Programming –http://turing.sunyit.edu/dussauh/ csc490.htm –Heather Dussault, SUNY Institute of Tech. –Powerpoint slides, some code –spends a lot of time introducing Java
31
240-492 Java Games. Prelim/031 v JavaGaming.org –http://www.javagaming.org/ –sponsored by Sun Microsystems –news, a few tutorials, excellent links –code examples such as: isometric scroller u the games style used in Civilization, Sim City, etc –screenshots of commercial Java games in development
32
240-492 Java Games. Prelim/032 v Game Developers Java Users Group (GameJUG) –http://gamejug.org/ –areas covered include: arcade, archive, books, FAQ, sites, tutorials u the links to sites and tutorials are good
33
240-492 Java Games. Prelim/033 v Java Game Development Center (JGDC) –http://www.electricfunstuff.com/jgdc/ –sections include: tutorials, resources (e.g. books), mailing lists, galleries of Java games, links to useful sites. –good/ok tutorials: mazes, arcade games, basic animation, starfields, etc.
34
240-492 Java Games. Prelim/034 v I am collecting URLs to Java games and games engines (support code for building games). They are in: –Java Games/Background/gameColls.txt u pointers to game collections –Java Games/Background/gameEngines.txt u pointers to game engine sites –Java Games/Background/sourceForge.txt u pointers to game and game engines maintained at the SourceForge Web site
35
240-492 Java Games. Prelim/035 10. Other Games URLs v GameDev.net –http://www.gamedev.net –100’s of articles on games development u e.g. openGL, DirectX, networking, audio, AI –active forums –news, code samples, reviews, games dictionary
36
240-492 Java Games. Prelim/036 v Game Development Search Engine –http://www.gose.com –includes news and links to smaller game development sites v FlipCode –http://www.flipcode.com –news, articles
37
240-492 Java Games. Prelim/037 v Gamesutra –http://www.gamasutra.com –content from Game Developer Magazine and the Game Developer conference v OpenGL official site –http://www.opengl.org v DirectX official site –http://msdn.microsoft.com/directx
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.