Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > [gamedev] Reading level data problem
2005-10-03 18:43
Bastet

Registered: Jul 2005
Posts: 88
[gamedev] Reading level data problem

Hi Folks!

I try to code something in asm, and as i like them its going to be a simple RPG.
But now i have a little problem, how to read the map data?
I have this, hardcoded for now, testdungeon in my programm:
party: ;X first and then Y
!byte $01,$02

dungeon1: ;16x16 grid of map data
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$01,$01,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$01,$00,$01,$00,$01,$00,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$01,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$01,$01,$01,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
!byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

As i am used to do high level programming, i cant figure out how to get something from there with the party coordinates.
I hope somebody can give at least a hint how to get an address out of x and y.

 
... 19 posts hidden. Click here to view all posts....
 
2005-10-10 14:30
Bastet

Registered: Jul 2005
Posts: 88
@Oswald:
I find it funny, lets see when this cant be optimized any further.

@White Flame:
Cool, with this i can trow away the multiplication table for 16x16 maps.
BTW: In wich dimeonsions is that code working?
Can i easily switch to 32x32 with it?
2005-10-10 14:56
Ben
Account closed

Registered: Feb 2003
Posts: 163
Quote: @Oswald:
I find it funny, lets see when this cant be optimized any further.

@White Flame:
Cool, with this i can trow away the multiplication table for 16x16 maps.
BTW: In wich dimeonsions is that code working?
Can i easily switch to 32x32 with it?


@Bastet: RMFP.. Read my friggin post :) the 4 times asl is multiplying by 16 so go figure :)

@Oswald.. I did not want to go there either, but Honesty seduced me to :)
2005-10-12 22:26
Bastet

Registered: Jul 2005
Posts: 88
Messaging system: Done! (was easy)
Beginning of scripting engine: Done! (Not that easy ;) )

http://www.nachtkatzen.de/c64/dc.zip
(From my space as FileAnchor is down :-/ )
Now i need to find out a way to load data trough kernel (should be easy) and write a frigging map editor (PC-Based...). Hard mapmaking when working with !byte lines *g*
2005-10-13 14:57
Ben
Account closed

Registered: Feb 2003
Posts: 163

When do I get to kiss the princess?
2005-10-13 20:14
Bastet

Registered: Jul 2005
Posts: 88
You mean the generic story of rescuing the dragon, slaying the princess and saving the treasure?
Naa, i wont do this ;) It will me more like Morrowind but with a party this time.
You versus the evil Drow-god.
(Drows are Dark Elves)
2005-10-14 05:10
JackAsser

Registered: Jun 2002
Posts: 2014
Fascinating to see a port of Morrowind (highend 3D game for PC) converted to C64. :D Oh right!, you meant the gameplay and story right? Not the gfx? =D


(also, Drow stuff rules, I've always had a fetish on Drow amoury, weapons, spells etc. in RPGs, especially in the Eye of the Beholder series)
2005-10-14 23:55
Bastet

Registered: Jul 2005
Posts: 88
Gameplay, yes.
I wont steal the Elder Scroll storyline.
And if you donate a SCPU to me ill try my hands at some 3D. Unless that happens you all are stuck with old scool 8-bit console gfx. (Which is better in my opinion anyways *g* )
As said somewhere else, if someone wants to donate GFX or, better, some fantasy SID Tunes (Adventure, Battle and Shop) or some SID effects (Sword slashes, firing a bow or fireball, .... whatever happens to fit to fantasy) ill be happy and very thankfully for it.
RIght now i am working on a loading routine as i cant trow roughly 500 kbyte of mapdata in a onefiler ;)
(Not talking about savegames..........)
2005-10-15 08:16
drake
Account closed

Registered: Dec 2002
Posts: 207
the first elder scrolls. sigh(!)
that was the ultimate game for me for a long time.
and i always got lost somewhere in the game :-)

will this be a game with 16 disksides?
2005-10-15 10:25
Bastet

Registered: Jul 2005
Posts: 88
If you want to torture yourself playing this on 1541, then probelary yes, but i wont support that.
You will need some kind of Harddisk or a nice and shiney 1581. ;)

EDIT: If PTV can make a game for SuckerCPU i can make a game that wont run on 1541, right? ;)
2005-10-15 10:41
Nafcom

Registered: Apr 2002
Posts: 588
Quote: If you want to torture yourself playing this on 1541, then probelary yes, but i wont support that.
You will need some kind of Harddisk or a nice and shiney 1581. ;)

EDIT: If PTV can make a game for SuckerCPU i can make a game that wont run on 1541, right? ;)


A 1581 is fine for me! :)
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Sokrates
Knut Clausen/SHAPE/F..
E$G/HF ⭐ 7
chromemag
Guests online: 81
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.041 sec.