Crystal Space
Welcome, Guest. Please login or register.
October 24, 2014, 08:27:00 am

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8809 Members
Latest Member: Kaciejacobs
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  How to make a 2D game?
« previous next »
Pages: [1] Print
Author Topic: How to make a 2D game?  (Read 3131 times)
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« on: April 29, 2006, 07:35:00 am »

I need to make a small 2D game. So I don't need iGraphics3D. But how will I create iView? It needs csView which is initialized with iObjectRegistry and iGraphics3D.
Thanks.
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: April 30, 2006, 09:29:07 pm »

I need to make a small 2D game. So I don't need iGraphics3D. But how will I create iView? It needs csView which is initialized with iObjectRegistry and iGraphics3D.
Thanks.

If you are going to do 2D graphics then why do you need an iView?

Greetings,
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #2 on: May 01, 2006, 01:18:01 pm »

How will I see anything without camera?
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: May 01, 2006, 03:24:44 pm »

How will I see anything without camera?

The camera and view are only needed for 3D applications. For 2D you don't need that. What exactly do you want to do? What kind of 2D graphics.

Greetings,
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #4 on: May 01, 2006, 03:29:08 pm »

I need to make a 2D game constituted of a chess board and draughts on it.
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #5 on: May 01, 2006, 03:30:50 pm »

I need to make a 2D game constituted of a chess board and draughts on it.

The easiest way for you to make this is using CEL and the billboard manager. In CEL there is an example boulderbash game (made with XML but you can do this in C++ too). With CS this is also possible but you most certainly don't need a camera or view (as those are 3D only). The way to do 2D is to manually create your meshes and draw them using DrawSimpleMesh. This is a bit complicated so the billboard manager in CEL makes this a lot easier.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 1.143 seconds with 13 queries.