Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 127 users online: 7 members, 89 guests and 31 bots. Members: 16aroth6, ACagliano, gbl08ma, shkaboinka, shundra9. Bots: VoilaBot (1), Spinn3r (1), MSN/Bing (1), Magpie Crawler (4), VoilaBot (1), Googlebot (20), MSN/Bing (3).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 20 Jan 2011 11:51:27 pm Post subject: [CALCnet] Obliterate, a Scorched-Earth Multiplayer Game 20 Jan 2011 |
|
|
Since CALCnet2.2 was featured across the geekiest places on the internet, globalCALCnet started broadcasting across the globe, and Doors CS 7.1.1 is making its way to new calculators, I decided to start a small project for CALCnet that I've been meaning to attempt for quite some time. Objectively, it's a complex project, but with the magic of CALCnet and Doors CS' GUI system, I actually managed to bang out the main menu including calculator communication, About screen, username changing, and quitting within three hours last night. It's been roughly 24 hours since I've started, and since then I've also added terrain generation, terrain propagation across the connected calculators, assignment of turn-taking order, placement of tanks, and (almost) correct falling of tanks when terrain is removed.
Still to come is most of the gameplay, including turn-triggering, game-over detection, input for setting power and angle, tank turret display (I'll need to punt on some angle-to-line algorithms), display of the username of the calc currently playing, and a few other goodies. I'll leave you with some screenies.
Edit: And just to be clear, these are real screenshots, not renderings or mockups. I'm not promising you features that I may implement; these are what are implemented.  _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 20 Jan 2011 11:57:25 pm Post subject: |
|
|
This looks awesome. I can't wait to see more. Will you have different kinds of terrain? _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 20 Jan 2011 11:59:09 pm Post subject: |
|
|
| merthsoft wrote: | | This looks awesome. I can't wait to see more. Will you have different kinds of terrain? | Right now I'm randomizing a second derivative of the slope to {-1,0,1} and integrating, which is producing what you see there; I'd be open to trying the first derivative for jaggier, less abrupt mountains or some different constants or randomization ranges. I'm not planning specifically on that now, though; I would prefer to have different terrain engines, if they were to exist, to be randomly selected rather than be a user choice. _________________
 |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
Posted: 21 Jan 2011 12:00:31 am Post subject: |
|
|
I am curious how you did checking for clicking on the words. Was it a DCS GUI thing, or was it a group of "check if in box" calls? _________________ http://tanner.myserverathome.com
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 12:01:39 am Post subject: |
|
|
| _player1537 wrote: | | I am curious how you did checking for clicking on the words. Was it a DCS GUI thing, or was it a group of "check if in box" calls? | The DCS GUI lets you assign random hotspots that, when clicked, direct execution to a specific label (think of them like Menu() in TI-BASIC). You'll also notice I used GUIRMouseCursor areas to subtly change the cursor to P, U, A, or Q when over the options. _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 21 Jan 2011 12:02:30 am Post subject: |
|
|
I suggest talking to Michael Angel (_Auron_ on #tcpa). I'm pretty sure he's the one who was making Tankies back when Maxcoderz was big, and he had some cool terrain generation stuff. _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 12:03:16 am Post subject: |
|
|
| merthsoft wrote: | | I suggest talking to Michael Angel (_Auron_ on #tcpa). I'm pretty sure he's the one who was making Tankies back when Maxcoderz was big, and he had some cool terrain generation stuff. | Ah yes, I'm Facebook friends with him; I'll he to poke him at some point. Thanks for the good idea, Merth. _________________
 |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 12:08:44 am Post subject: |
|
|
| _player1537 wrote: | | How do you check where/when it is done "falling"? | For the terrain, I have a 96-byte array of coordinates, so that the terrain can be thought of us 96 lines extending from the bottom of the screen up to some coordinate. I find the tallest of the eight vertical lines under each tank, add one, and set the bottom-left corner of the tank to that value.  _________________
 |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
Posted: 21 Jan 2011 12:10:21 am Post subject: |
|
|
Ah, I wouldn't have even thought of that. Props. I would've done something like: move down, pixeltest all spots below you, if none are dark, repeat. _________________ http://tanner.myserverathome.com
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 12:11:30 am Post subject: |
|
|
| _player1537 wrote: | | Ah, I wouldn't have even thought of that. Props. I would've done something like: move down, pixeltest all spots below you, if none are dark, repeat. | That was my original plan, and how it works in my BASIC scorched-earth game Scarth v1.0. Luckily, having this nice little array made me realize that no pixel-testing would be necessary. _________________
 |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
Posted: 21 Jan 2011 12:12:18 am Post subject: |
|
|
What about the map, do you redraw that every time, or do you save it somewhere, like safe ram? _________________ http://tanner.myserverathome.com
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 12:14:02 am Post subject: |
|
|
| _player1537 wrote: | | What about the map, do you redraw that every time, or do you save it somewhere, like safe ram? | I don't bother saving it anywhere, partly because I don't have too many 768-byte buffers left after CALCnet, the GUI API, my variables, the per-game known calculator list, etc, and partly because 96 fastline calls using the MOS compatibility libraries in Doors CS take a trivial amount of time. It would be harder to figure out which lines to specifically redraw after a shot is fired (which I haven't designed at all yet) and fix a saved image than to just draw the 96 lines, to boot. _________________
 |
|
| Back to top |
|
|
souvik1997

Guru-in-Training

Joined: 19 Apr 2010 Posts: 2870
|
|
| Back to top |
|
|
graphmastur
Power User

Joined: 27 Jul 2010 Posts: 464
|
Posted: 21 Jan 2011 07:10:35 am Post subject: |
|
|
| I've always wondered this, but what is the thing in the bottom left hand corner. I saw it in Chat, too. |
|
| Back to top |
|
|
souvik1997

Guru-in-Training

Joined: 19 Apr 2010 Posts: 2870
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 11:24:48 am Post subject: |
|
|
| souvik1997 wrote: | | It is a debug indicator to show that CALCnet is working. | First 8 pixels are a run indicator for the interrupt, next 8 pixels are receive, next 8 pixels are transmit. Rightmost 8 pixels in the bottom row flash on collisions. There is a one-byte flag in the Cn2.2 safeRAM that you can use to toggle the display of the indicators on and off; I'll turn it off for Chat and Obliterate before 1.0 for each. _________________
 |
|
| Back to top |
|
|
elfprince13

OVER NINE THOUSAND!

Joined: 23 May 2005 Posts: 10234 Location: A galaxy far far away......
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55770 Location: Earth, Sol, Milky Way
|
Posted: 21 Jan 2011 04:23:45 pm Post subject: |
|
|
| elfprince13 wrote: | | Very cool looking! Nice speed coding =) On the note of terrain generation, I am reminded that I should give you the stratcon source for your terrain generation work on CivSim II. | Thanks, Elfprince. I have tank display repaired, tank turret display working, building the interface to aim and set firing power, next is the message-passing to orchestrate taking turns. _________________
 |
|
| Back to top |
|
|
qazz42

Vampire Killer

Joined: 07 Apr 2010 Posts: 4177
|
Posted: 21 Jan 2011 04:41:32 pm Post subject: |
|
|
NSPIRE TESTING MAN! AAAAAWWWWWWAAAAAYYYYYY!
whene this gets released, I call playing/testing it! _________________
 |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.044850 seconds.
|